Class SimpleNode
java.lang.Object
com.mayam.wf.attributes.shared.expr.SimpleNode
- All Implemented Interfaces:
Node
,Serializable
- Direct Known Subclasses:
AdditiveExpressionSequence
,AndExpressionSequence
,ArrayLiteral
,ComparisonExpressionSequence
,CompleteExpression
,CompositeReference
,ConditionalExpression
,Elision
,FunctionCallParameters
,Identifier
,Literal
,MultiplicativeExpressionSequence
,Operator
,OrExpressionSequence
,PropertyIdentifierReference
,PropertyValueReference
,UnaryExpression
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchildrenAccept
(ExpressionVisitor visitor, Object data) Accept the visitor.void
protected void
dumpString
(String s) int
getId()
jjtAccept
(ExpressionVisitor visitor, Object data) Accept the visitor.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.jjtGetChild
(int i) This method returns a child node.int
void
jjtOpen()
This method is called after the node has been made the current node.void
jjtSetFirstToken
(Token token) void
jjtSetLastToken
(Token token) void
jjtSetParent
(Node n) Set the parent node of this nodevoid
jjtSetValue
(Object aValue) toString()
-
Field Details
-
parent
-
children
-
id
protected int id -
value
-
parser
-
firstToken
-
lastToken
-
-
Constructor Details
-
SimpleNode
public SimpleNode(int i)
-
-
Method Details
-
jjtOpen
public void jjtOpen()Description copied from interface:Node
This method is called after the node has been made the current node. It indicates that child nodes can now be added to it. -
jjtClose
public void jjtClose()Description copied from interface:Node
This method is called after all the child nodes have been added. -
jjtGetParent
- Specified by:
jjtGetParent
in interfaceNode
- Returns:
- parent node
-
jjtGetChild
Description copied from interface:Node
This method returns a child node. The children are numbered from zero, left to right.- Specified by:
jjtGetChild
in interfaceNode
- Parameters:
i
- zero-baeed child index
-
jjtGetNumChildren
public int jjtGetNumChildren()- Specified by:
jjtGetNumChildren
in interfaceNode
- Returns:
- the number of children the node has. Always ≥ 0.
-
jjtSetValue
-
jjtGetValue
-
jjtGetFirstToken
-
jjtGetLastToken
-
toString
-
toString
-
dumpString
-
dump
-
getId
public int getId()
-