org.apache.jdo.jdoql.tree
Class AbstractNodeVisitor

java.lang.Object
  extended byorg.apache.jdo.jdoql.tree.AbstractNodeVisitor
All Implemented Interfaces:
NodeVisitor
Direct Known Subclasses:
FilterExpressionDumper, MemoryQuery

public abstract class AbstractNodeVisitor
extends java.lang.Object
implements NodeVisitor

This class provides a default implementation for the node visitor pattern. Methods having derived nodes as arguments delegate to those methods having least derived nodes as arguments. As some visitors do not need to know each specific operations, they do not need to provide code for those operations. In addition to methods defined in the interface NodeVisitor this class defines protected methods taking non-leaf nodes in terms of the node hierarchy of interfaces.

Author:
Michael Watzek

Constructor Summary
AbstractNodeVisitor()
           
 
Method Summary
 void arrive(AndExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(AscendingOrderingExpression node)
          This method delegates to arrive casting the argument node to OrderingExpression.
protected  void arrive(BinaryExpression node)
          This method delegates to arrive casting the argument node to Expression.
 void arrive(BooleanLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
 void arrive(ByteLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
 void arrive(CandidateClass node)
          This method delegates to arrive casting the argument node to Node.
 void arrive(CastExpression node)
          This method delegates to arrive casting the argument node to Expression.
 void arrive(CharLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
 void arrive(ComplementExpression node)
          This method delegates to arrive casting the argument node to UnaryExpression.
 void arrive(ConditionalAndExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(ConditionalOrExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(ConstantExpression node)
          This method delegates to arrive casting the argument node to Expression.
 void arrive(ContainsCallExpression node)
          This method delegates to arrive casting the argument node to MethodCallExpression.
protected  void arrive(Declaration node)
          This method delegates to arrive casting the argument node to Node.
 void arrive(DescendingOrderingExpression node)
          This method delegates to arrive casting the argument node to OrderingExpression.
 void arrive(DivideExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(DoubleLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
 void arrive(EndsWithCallExpression node)
          This method delegates to arrive casting the argument node to MethodCallExpression.
 void arrive(EqualsExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
protected  void arrive(Expression node)
          This method delegates to arrive casting the argument node to Node.
 void arrive(FieldAccessExpression node)
          This method delegates to arrive casting the argument node to IdentifierExpression.
 void arrive(FloatLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
 void arrive(GreaterThanEqualsExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(GreaterThanExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(IdentifierExpression node)
          This method delegates to arrive casting the argument node to Expression.
 void arrive(IntLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
 void arrive(IsEmptyCallExpression node)
          This method delegates to arrive casting the argument node to MethodCallExpression.
 void arrive(LessThanEqualsExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(LessThanExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(LongLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
protected  void arrive(MethodCallExpression node)
          This method delegates to arrive casting the argument node to Expression.
 void arrive(MinusExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
protected  void arrive(Node node)
          This method defines the default implementation for all arrive methods: It immediately returns without executing any other instruction.
 void arrive(NotEqualsExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(NotExpression node)
          This method delegates to arrive casting the argument node to UnaryExpression.
protected  void arrive(OrderingExpression node)
          This method delegates to arrive casting the argument node to Node.
 void arrive(OrExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(ParameterAccessExpression node)
          This method delegates to arrive casting the argument node to IdentifierExpression.
 void arrive(ParameterDeclaration node)
          This method delegates to arrive casting the argument node to Declaration.
 void arrive(PlusExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(QueryTree node)
          This method delegates to arrive casting the argument node to Node.
 void arrive(ShortLiteralExpression node)
          This method delegates to arrive casting the argument node to ConstantExpression.
 void arrive(StartsWithCallExpression node)
          This method delegates to arrive casting the argument node to MethodCallExpression.
 void arrive(StaticFieldAccessExpression node)
          This method delegates to arrive casting the argument node to FieldAccessExpression.
 void arrive(ThisExpression node)
          This method delegates to arrive casting the argument node to IdentifierExpression.
 void arrive(TimesExpression node)
          This method delegates to arrive casting the argument node to BinaryExpression.
 void arrive(Type node)
          This method delegates to arrive casting the argument node to Node.
protected  void arrive(UnaryExpression node)
          This method delegates to arrive casting the argument node to Expression.
 void arrive(UnaryMinusExpression node)
          This method delegates to arrive casting the argument node to UnaryExpression.
 void arrive(UnaryPlusExpression node)
          This method delegates to arrive casting the argument node to UnaryExpression.
 void arrive(VariableAccessExpression node)
          This method delegates to arrive casting the argument node to IdentifierExpression.
 void arrive(VariableDeclaration node)
          This method delegates to arrive casting the argument node to Declaration.
 java.lang.Object leave(AndExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(AscendingOrderingExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to OrderingExpression.
protected  java.lang.Object leave(BinaryExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Expression.
 java.lang.Object leave(BooleanLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
 java.lang.Object leave(ByteLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
 java.lang.Object leave(CandidateClass node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Node.
 java.lang.Object leave(CastExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Expression.
 java.lang.Object leave(CharLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
 java.lang.Object leave(ComplementExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to UnaryExpression.
 java.lang.Object leave(ConditionalAndExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(ConditionalOrExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(ConstantExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Expression.
 java.lang.Object leave(ContainsCallExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to MethodCallExpression.
protected  java.lang.Object leave(Declaration node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Node.
 java.lang.Object leave(DescendingOrderingExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to OrderingExpression.
 java.lang.Object leave(DivideExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(DoubleLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
 java.lang.Object leave(EndsWithCallExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to MethodCallExpression.
 java.lang.Object leave(EqualsExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
protected  java.lang.Object leave(Expression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Node.
 java.lang.Object leave(FieldAccessExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to IdentifierExpression.
 java.lang.Object leave(FloatLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
 java.lang.Object leave(GreaterThanEqualsExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(GreaterThanExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(IdentifierExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Expression.
 java.lang.Object leave(IntLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
 java.lang.Object leave(IsEmptyCallExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to MethodCallExpression.
 java.lang.Object leave(LessThanEqualsExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(LessThanExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(LongLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
protected  java.lang.Object leave(MethodCallExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Expression.
 java.lang.Object leave(MinusExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
protected  java.lang.Object leave(Node node, java.lang.Object[] results)
          This method defines the default implementation for all leave methods: It immediately returns null without executing any other instruction.
 java.lang.Object leave(NotEqualsExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(NotExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to UnaryExpression.
protected  java.lang.Object leave(OrderingExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Node.
 java.lang.Object leave(OrExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(ParameterAccessExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to IdentifierExpression.
 java.lang.Object leave(ParameterDeclaration node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Declaration.
 java.lang.Object leave(PlusExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(QueryTree node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Node.
 java.lang.Object leave(ShortLiteralExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to ConstantExpression.
 java.lang.Object leave(StartsWithCallExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to MethodCallExpression.
 java.lang.Object leave(StaticFieldAccessExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to FieldAccessExpression.
 java.lang.Object leave(ThisExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to IdentifierExpression.
 java.lang.Object leave(TimesExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to BinaryExpression.
 java.lang.Object leave(Type node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Node.
protected  java.lang.Object leave(UnaryExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Expression.
 java.lang.Object leave(UnaryMinusExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to UnaryExpression.
 java.lang.Object leave(UnaryPlusExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to UnaryExpression.
 java.lang.Object leave(VariableAccessExpression node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to IdentifierExpression.
 java.lang.Object leave(VariableDeclaration node, java.lang.Object[] results)
          This method delegates to leave casting the argument node to Declaration.
 boolean walkNextChild(AndExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(AscendingOrderingExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to OrderingExpression.
protected  boolean walkNextChild(BinaryExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Expression.
 boolean walkNextChild(CastExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Expression.
 boolean walkNextChild(ComplementExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to UnaryExpression.
 boolean walkNextChild(ConditionalAndExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(ConditionalOrExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(ContainsCallExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to MethodCallExpression.
 boolean walkNextChild(DescendingOrderingExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to OrderingExpression.
 boolean walkNextChild(DivideExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(EndsWithCallExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to MethodCallExpression.
 boolean walkNextChild(EqualsExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
protected  boolean walkNextChild(Expression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Node.
 boolean walkNextChild(FieldAccessExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to IdentifierExpression.
 boolean walkNextChild(GreaterThanEqualsExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(GreaterThanExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
protected  boolean walkNextChild(IdentifierExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Expression.
 boolean walkNextChild(IsEmptyCallExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to MethodCallExpression.
 boolean walkNextChild(LessThanEqualsExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(LessThanExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
protected  boolean walkNextChild(MethodCallExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Expression.
 boolean walkNextChild(MinusExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
protected  boolean walkNextChild(Node node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method defines the default implementation for all walkNextChild methods: It immediately returns true without executing any other instruction.
 boolean walkNextChild(NotEqualsExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(NotExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to UnaryExpression.
protected  boolean walkNextChild(OrderingExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Node.
 boolean walkNextChild(OrExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(PlusExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
 boolean walkNextChild(QueryTree node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Node.
 boolean walkNextChild(StartsWithCallExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to MethodCallExpression.
 boolean walkNextChild(StaticFieldAccessExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to FieldAccessExpression.
 boolean walkNextChild(TimesExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to BinaryExpression.
protected  boolean walkNextChild(UnaryExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to Expression.
 boolean walkNextChild(UnaryMinusExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to UnaryExpression.
 boolean walkNextChild(UnaryPlusExpression node, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
          This method delegates to walkNextChild casting the argument node to UnaryExpression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNodeVisitor

public AbstractNodeVisitor()
Method Detail

arrive

protected void arrive(BinaryExpression node)
This method delegates to arrive casting the argument node to Expression.

Parameters:
node - the node to be walked

arrive

protected void arrive(Declaration node)
This method delegates to arrive casting the argument node to Node.

Parameters:
node - the node to be walked

arrive

protected void arrive(Expression node)
This method delegates to arrive casting the argument node to Node.

Parameters:
node - the node to be walked

arrive

protected void arrive(MethodCallExpression node)
This method delegates to arrive casting the argument node to Expression.

Parameters:
node - the node to be walked

arrive

protected void arrive(OrderingExpression node)
This method delegates to arrive casting the argument node to Node.

Parameters:
node - the node to be walked

arrive

protected void arrive(Node node)
This method defines the default implementation for all arrive methods: It immediately returns without executing any other instruction.

Parameters:
node - the node to be walked

arrive

protected void arrive(UnaryExpression node)
This method delegates to arrive casting the argument node to Expression.

Parameters:
node - the node to be walked

leave

protected java.lang.Object leave(BinaryExpression node,
                                 java.lang.Object[] results)
This method delegates to leave casting the argument node to Expression. It returns the value of that method.

Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

protected java.lang.Object leave(Declaration node,
                                 java.lang.Object[] results)
This method delegates to leave casting the argument node to Node. It returns the value of that method.

Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

protected java.lang.Object leave(Expression node,
                                 java.lang.Object[] results)
This method delegates to leave casting the argument node to Node. It returns the value of that method.

Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

protected java.lang.Object leave(MethodCallExpression node,
                                 java.lang.Object[] results)
This method delegates to leave casting the argument node to Expression. It returns the value of that method.

Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

protected java.lang.Object leave(OrderingExpression node,
                                 java.lang.Object[] results)
This method delegates to leave casting the argument node to Node. It returns the value of that method.

Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

protected java.lang.Object leave(Node node,
                                 java.lang.Object[] results)
This method defines the default implementation for all leave methods: It immediately returns null without executing any other instruction.

Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
null

leave

protected java.lang.Object leave(UnaryExpression node,
                                 java.lang.Object[] results)
This method delegates to leave casting the argument node to Expression. It returns the value of that method.

Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

walkNextChild

protected boolean walkNextChild(BinaryExpression node,
                                java.lang.Object resultOfPreviousChild,
                                int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Expression. It returns the value of that method.

Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

protected boolean walkNextChild(Expression node,
                                java.lang.Object resultOfPreviousChild,
                                int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Node. It returns the value of that method.

Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

protected boolean walkNextChild(IdentifierExpression node,
                                java.lang.Object resultOfPreviousChild,
                                int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Expression. It returns the value of that method.

Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

protected boolean walkNextChild(MethodCallExpression node,
                                java.lang.Object resultOfPreviousChild,
                                int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Expression. It returns the value of that method.

Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

protected boolean walkNextChild(Node node,
                                java.lang.Object resultOfPreviousChild,
                                int indexOfNextChild)
This method defines the default implementation for all walkNextChild methods: It immediately returns true without executing any other instruction.

Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
true

walkNextChild

protected boolean walkNextChild(OrderingExpression node,
                                java.lang.Object resultOfPreviousChild,
                                int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Node. It returns the value of that method.

Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

protected boolean walkNextChild(UnaryExpression node,
                                java.lang.Object resultOfPreviousChild,
                                int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Expression. It returns the value of that method.

Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

arrive

public void arrive(AndExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(AscendingOrderingExpression node)
This method delegates to arrive casting the argument node to OrderingExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(BooleanLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ByteLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(CandidateClass node)
This method delegates to arrive casting the argument node to Node.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(CastExpression node)
This method delegates to arrive casting the argument node to Expression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(CharLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ComplementExpression node)
This method delegates to arrive casting the argument node to UnaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ConditionalAndExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ConditionalOrExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ConstantExpression node)
This method delegates to arrive casting the argument node to Expression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ContainsCallExpression node)
This method delegates to arrive casting the argument node to MethodCallExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(DescendingOrderingExpression node)
This method delegates to arrive casting the argument node to OrderingExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(DivideExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(DoubleLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(EqualsExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(EndsWithCallExpression node)
This method delegates to arrive casting the argument node to MethodCallExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(FieldAccessExpression node)
This method delegates to arrive casting the argument node to IdentifierExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(FloatLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(GreaterThanEqualsExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(GreaterThanExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(IdentifierExpression node)
This method delegates to arrive casting the argument node to Expression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(IntLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(IsEmptyCallExpression node)
This method delegates to arrive casting the argument node to MethodCallExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(LessThanEqualsExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(LessThanExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(LongLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(MinusExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(NotEqualsExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(NotExpression node)
This method delegates to arrive casting the argument node to UnaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(OrExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ParameterAccessExpression node)
This method delegates to arrive casting the argument node to IdentifierExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ParameterDeclaration node)
This method delegates to arrive casting the argument node to Declaration.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(PlusExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(QueryTree node)
This method delegates to arrive casting the argument node to Node.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ShortLiteralExpression node)
This method delegates to arrive casting the argument node to ConstantExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(StartsWithCallExpression node)
This method delegates to arrive casting the argument node to MethodCallExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(StaticFieldAccessExpression node)
This method delegates to arrive casting the argument node to FieldAccessExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(ThisExpression node)
This method delegates to arrive casting the argument node to IdentifierExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(TimesExpression node)
This method delegates to arrive casting the argument node to BinaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(Type node)
This method delegates to arrive casting the argument node to Node.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(UnaryMinusExpression node)
This method delegates to arrive casting the argument node to UnaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(UnaryPlusExpression node)
This method delegates to arrive casting the argument node to UnaryExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(VariableAccessExpression node)
This method delegates to arrive casting the argument node to IdentifierExpression.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

arrive

public void arrive(VariableDeclaration node)
This method delegates to arrive casting the argument node to Declaration.

Specified by:
arrive in interface NodeVisitor
Parameters:
node - the node to be walked

leave

public java.lang.Object leave(AndExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(AscendingOrderingExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to OrderingExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(BooleanLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ByteLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(CandidateClass node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Node. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(CastExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Expression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(CharLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ComplementExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ConditionalAndExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ConditionalOrExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ConstantExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Expression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ContainsCallExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(DescendingOrderingExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to OrderingExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(DivideExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(DoubleLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(EndsWithCallExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(EqualsExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(FieldAccessExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to IdentifierExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(FloatLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(GreaterThanEqualsExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(GreaterThanExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(IdentifierExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Expression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(IntLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(IsEmptyCallExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(LessThanEqualsExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(LessThanExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(LongLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(MinusExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(NotEqualsExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(NotExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(OrExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ParameterAccessExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to IdentifierExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ParameterDeclaration node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Declaration. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(PlusExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(QueryTree node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Node. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ShortLiteralExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to ConstantExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(StartsWithCallExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(StaticFieldAccessExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to FieldAccessExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(ThisExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to IdentifierExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(TimesExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(Type node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Node. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(UnaryMinusExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(UnaryPlusExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(VariableAccessExpression node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to IdentifierExpression. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

leave

public java.lang.Object leave(VariableDeclaration node,
                              java.lang.Object[] results)
This method delegates to leave casting the argument node to Declaration. It returns the value of that method.

Specified by:
leave in interface NodeVisitor
Parameters:
node - the node having been walked
results - the results of walking the node's children
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(AndExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(AscendingOrderingExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to OrderingExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(CastExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Expression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(ComplementExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(ConditionalAndExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(ConditionalOrExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(ContainsCallExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(DescendingOrderingExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to OrderingExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(DivideExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(EndsWithCallExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(EqualsExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(FieldAccessExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to IdentifierExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(GreaterThanEqualsExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(GreaterThanExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(IsEmptyCallExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(LessThanEqualsExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(LessThanExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(MinusExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(NotEqualsExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(NotExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(OrExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(PlusExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(QueryTree node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to Node. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(StartsWithCallExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to MethodCallExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(StaticFieldAccessExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to FieldAccessExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(TimesExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to BinaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(UnaryMinusExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call

walkNextChild

public boolean walkNextChild(UnaryPlusExpression node,
                             java.lang.Object resultOfPreviousChild,
                             int indexOfNextChild)
This method delegates to walkNextChild casting the argument node to UnaryExpression. It returns the value of that method.

Specified by:
walkNextChild in interface NodeVisitor
Parameters:
node - the parent node of the children currently walked
resultOfPreviousChild - the result of walking the node's previous child
indexOfNextChild - the index of the next child to be walked
Returns:
the result of the delegation call


Copyright © 2005 Apache Software Foundation. All Rights Reserved.