|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.kilim.description.TemplateElementImpl
org.objectweb.kilim.description.InlinedElement
org.objectweb.kilim.description.TpMethod
| Field Summary | |
private boolean |
isStatic
|
private java.lang.String |
methodName
|
private java.util.List |
parameters
|
private java.lang.Object |
resultValue
|
private BasicElement |
support
|
| Fields inherited from class org.objectweb.kilim.description.InlinedElement |
|
| Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl |
|
| Constructor Summary | |
TpMethod(BasicElement aSupport,
java.lang.String aMethodName,
boolean jStatic,
boolean isP,
boolean isT,
TemplateDescription aTemplate)
public constructor of a descriptor for a method used in a kilim template. |
|
| Method Summary | |
void |
addParameter(Parameter aParam)
adds a new parameter. |
private boolean |
checkParameterUnicity(Parameter aParam)
|
int |
getKind()
returns the element kind. |
java.lang.String |
getMethodName()
returns the method name. |
Parameter |
getParameter(int aPosition)
returns the parameter of a given position. |
int |
getParameterNumber()
returns the parameter number. |
java.util.Iterator |
getParameters()
returns as an iterator the parameters of the method. |
BasicElement |
getSupport()
|
void |
insertParameter(Parameter aParam,
int position)
inserts a parameter at a given position. |
boolean |
isStatic()
, |
void |
isStatic(boolean jStatic)
|
void |
removeParameter(Parameter aParam)
removes a parameter. |
void |
setMethodName(java.lang.String aMethodName)
sets the method name. |
void |
setSupport(BasicElement aSupport)
sets the support of the method i.e. |
| Methods inherited from class org.objectweb.kilim.description.InlinedElement |
getLocalName, getStatus, isEventSource, performsAction, providesValue, setLocalName, setStatus |
| Methods inherited from class org.objectweb.kilim.description.TemplateElementImpl |
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.kilim.description.TemplateElement |
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate |
| Field Detail |
private BasicElement support
private java.lang.String methodName
private boolean isStatic
private java.util.List parameters
private java.lang.Object resultValue
| Constructor Detail |
public TpMethod(BasicElement aSupport,
java.lang.String aMethodName,
boolean jStatic,
boolean isP,
boolean isT,
TemplateDescription aTemplate)
throws KilimException
aSupport - : the element on which the method will be invoked.aMethodName - : the name of the method.jStatic - : true if the method is static.isP - : true if the method can be used as a provider.isT - : true if the method can be used as a transformer.aTemplate - : the template in which the method is declared.
KilimException - : generated if aSupport, aMethodName or aTemplate is null.| Method Detail |
public int getKind()
BasicElement
BasicElement.getKind()public boolean isStatic()
org.objectweb.kilim.description.libs.MethodAction#isStatic()
public void isStatic(boolean jStatic)
throws KilimException
KilimExceptionorg.objectweb.kilim.description.libs.FieldAction#isStatic(boolean)public BasicElement getSupport()
org.objectweb.kilim.description.libs.MethodAction#getSupport()
public void setSupport(BasicElement aSupport)
throws KilimException
aSupport - : the element to be used as a support.
KilimException - ; generated if aSupport is nullpublic java.lang.String getMethodName()
public void setMethodName(java.lang.String aMethodName)
throws KilimException
KilimExceptionpublic int getParameterNumber()
public void addParameter(Parameter aParam)
throws KilimException
aParam - : the parameter to be added
KilimException - : generated if aParam is null or if if its name clashes with an existing one.
public void insertParameter(Parameter aParam,
int position)
throws KilimException
aParam - : the parameter to be inserted.position - : the position
KilimException - : generated if aParam is null, if its name clashes with existing parameters
public void removeParameter(Parameter aParam)
throws KilimException
aParam - : the parameter to be removed.
KilimException - : generated if aParam is null or is unknown
public Parameter getParameter(int aPosition)
throws KilimException
aPosition - : the position
KilimException - : generated if the position has an illegal value.public java.util.Iterator getParameters()
private boolean checkParameterUnicity(Parameter aParam)
throws KilimException
KilimException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||