|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.ejbql.parser.SimpleNode
public abstract class SimpleNode
A base node for the EJBQL concrete nodes that satisfies JJTree requirements.
| Constructor Summary | |
|---|---|
SimpleNode(int id)
|
|
| Method Summary | |
|---|---|
EJBQLExpression |
getChild(int index)
Returns a child expression node at the specified index. |
int |
getChildrenCount()
Returns a number of child operands of this expression node. |
java.lang.String |
getName()
|
java.lang.String |
getText()
Returns a text property of the node. |
boolean |
isNegated()
Returns an optional boolean flag that negates the value of the expression. |
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 parent)
This pair of methods are used to inform the node of its parent. |
void |
setText(java.lang.String text)
|
java.lang.String |
toString()
|
void |
visit(EJBQLExpressionVisitor visitor)
A recursive visit method that passes a visitor to this node and all its children, depth first. |
protected boolean |
visitChild(EJBQLExpressionVisitor visitor,
int childIndex)
Recursively visits a child at the specified index. |
protected boolean |
visitNode(EJBQLExpressionVisitor visitor)
Visits this node without recursion. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleNode(int id)
| Method Detail |
|---|
public java.lang.String getText()
EJBQLExpression
getText in interface EJBQLExpressionpublic boolean isNegated()
EJBQLExpression
isNegated in interface EJBQLExpressionpublic void visit(EJBQLExpressionVisitor visitor)
visit in interface EJBQLExpressionprotected boolean visitNode(EJBQLExpressionVisitor visitor)
protected boolean visitChild(EJBQLExpressionVisitor visitor,
int childIndex)
public EJBQLExpression getChild(int index)
EJBQLExpression
getChild in interface EJBQLExpressionpublic int getChildrenCount()
EJBQLExpression
getChildrenCount in interface EJBQLExpressionpublic java.lang.String getName()
public void jjtOpen()
Node
jjtOpen in interface Nodepublic void jjtClose()
Node
jjtClose in interface Nodepublic void jjtSetParent(Node parent)
Node
jjtSetParent in interface Nodepublic Node jjtGetParent()
jjtGetParent in interface Node
public void jjtAddChild(Node n,
int i)
Node
jjtAddChild in interface Nodepublic Node jjtGetChild(int i)
Node
jjtGetChild in interface Nodepublic int jjtGetNumChildren()
Node
jjtGetNumChildren in interface Nodepublic void setText(java.lang.String text)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||