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()
EJBQLExpression
getText
in interface EJBQLExpression
public boolean isNegated()
EJBQLExpression
isNegated
in interface EJBQLExpression
public void visit(EJBQLExpressionVisitor visitor)
visit
in interface EJBQLExpression
protected boolean visitNode(EJBQLExpressionVisitor visitor)
protected boolean visitChild(EJBQLExpressionVisitor visitor, int childIndex)
public EJBQLExpression getChild(int index)
EJBQLExpression
getChild
in interface EJBQLExpression
public int getChildrenCount()
EJBQLExpression
getChildrenCount
in interface EJBQLExpression
public String getName()
public void jjtOpen()
Node
public void jjtClose()
Node
public void jjtSetParent(Node parent)
Node
jjtSetParent
in interface Node
public Node jjtGetParent()
jjtGetParent
in interface Node
public void jjtAddChild(Node n, int i)
Node
jjtAddChild
in interface Node
public Node jjtGetChild(int i)
Node
jjtGetChild
in interface Node
public int jjtGetNumChildren()
Node
jjtGetNumChildren
in interface Node
public void setText(String text)
Copyright © 2001–2017 Apache Cayenne. All rights reserved.