|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zuss.metainfo.FunctionDefinition
public class FunctionDefinition
Represents a function definition.
Constructor Summary | |
---|---|
FunctionDefinition(NodeInfo parent,
java.lang.String name,
ArgumentDefinition[] args,
Expression expr,
int lineno)
|
|
FunctionDefinition(NodeInfo parent,
java.lang.String name,
ArgumentDefinition[] args,
java.lang.reflect.Method mtd,
int lineno)
|
Method Summary | |
---|---|
void |
appendChild(NodeInfo child)
Append a child |
ArgumentDefinition[] |
getArgumentDefinitions()
Returns the argument definitions. |
java.util.List<NodeInfo> |
getChildren()
Returns a readonly list of children. |
Expression |
getExpression()
Returns the expression, or null if this is a method ( getMethod() ). |
int |
getLine()
Returns the line number of this info. |
java.lang.reflect.Method |
getMethod()
Returns the method, or null if this is an expression ( getExpression() ). |
java.lang.String |
getName()
Returns the name of this function definition. |
NodeInfo |
getParent()
Returns the parent, or null if it is the root. |
boolean |
removeChild(NodeInfo child)
Removes a child. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FunctionDefinition(NodeInfo parent, java.lang.String name, ArgumentDefinition[] args, Expression expr, int lineno)
public FunctionDefinition(NodeInfo parent, java.lang.String name, ArgumentDefinition[] args, java.lang.reflect.Method mtd, int lineno)
Method Detail |
---|
public java.lang.String getName()
public Expression getExpression()
getMethod()
).
public java.lang.reflect.Method getMethod()
getExpression()
).
public ArgumentDefinition[] getArgumentDefinitions()
public java.lang.String toString()
toString
in class java.lang.Object
public int getLine()
NodeInfo
getLine
in interface NodeInfo
public NodeInfo getParent()
NodeInfo
getParent
in interface NodeInfo
public java.util.List<NodeInfo> getChildren()
NodeInfo
Note: the returned list is readonly. To modify, please use
NodeInfo.appendChild(org.zkoss.zuss.metainfo.NodeInfo)
and NodeInfo.removeChild(org.zkoss.zuss.metainfo.NodeInfo)
instead.
getChildren
in interface NodeInfo
public void appendChild(NodeInfo child)
NodeInfo
appendChild
in interface NodeInfo
public boolean removeChild(NodeInfo child)
NodeInfo
removeChild
in interface NodeInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |