public abstract class SimpleNode extends Object implements Node, Serializable, EJBQLExpression
| Constructor and Description |
|---|
SimpleNode(int id) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getName() |
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(String text) |
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.
|
public String getText()
EJBQLExpressiongetText in interface EJBQLExpressionpublic boolean isNegated()
EJBQLExpressionisNegated 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)
EJBQLExpressiongetChild in interface EJBQLExpressionpublic int getChildrenCount()
EJBQLExpressiongetChildrenCount in interface EJBQLExpressionpublic String getName()
public void jjtOpen()
Nodepublic void jjtClose()
Nodepublic void jjtSetParent(Node parent)
NodejjtSetParent in interface Nodepublic Node jjtGetParent()
jjtGetParent in interface Nodepublic void jjtAddChild(Node n, int i)
NodejjtAddChild in interface Nodepublic Node jjtGetChild(int i)
NodejjtGetChild in interface Nodepublic int jjtGetNumChildren()
NodejjtGetNumChildren in interface Nodepublic void setText(String text)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.