|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
JJTree interface for AST nodes, as modified to handle the AribaExpr operations getValue and setValue. JJTree's original comment: All AST nodes must implement this interface. It provides basic machinery for constructing the parent and child relationships between nodes.
Method Summary | |
---|---|
void |
accept(ASTNodeVisitor visitor)
|
TypeInfo |
getTypeInfo()
|
java.lang.Object |
getValue(ExprContext context,
java.lang.Object source)
Extracts the value from the given source object that is appropriate for this node within the given context. |
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's list of children. |
void |
jjtClose()
This method is called after all the child nodes have been added. |
Node |
jjtGetChild(int i)
This method returns a child node. |
int |
jjtGetNumChildren()
Return the number of children the node has. |
Node |
jjtGetParent()
|
void |
jjtOpen()
This method is called after the node has been made the current node. |
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent. |
void |
setTypeInfo(TypeInfo typeInfo)
|
void |
setValue(ExprContext context,
java.lang.Object target,
java.lang.Object value)
Sets the given value in the given target as appropriate for this node within the given context. |
Method Detail |
---|
void jjtOpen()
void jjtClose()
void jjtSetParent(Node n)
Node jjtGetParent()
void jjtAddChild(Node n, int i)
Node jjtGetChild(int i)
int jjtGetNumChildren()
java.lang.Object getValue(ExprContext context, java.lang.Object source) throws ExprException
ExprException
void setValue(ExprContext context, java.lang.Object target, java.lang.Object value) throws ExprException
ExprException
TypeInfo getTypeInfo()
void setTypeInfo(TypeInfo typeInfo)
void accept(ASTNodeVisitor visitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |