|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.ejb21.sql.EjbqlAbstractVisitor
public class EjbqlAbstractVisitor
Base class with visitor utility class and default implementation of visit methods Created on Sep 12, 2002
| Nested Class Summary | |
|---|---|
protected class |
EjbqlAbstractVisitor.IdValue
Values associated with each declared identifiers |
protected class |
EjbqlAbstractVisitor.VisitorException
Runtime Exception used to wrap exceptions thrown in visit methods |
| Constructor Summary | |
|---|---|
EjbqlAbstractVisitor()
|
|
| Method Summary | |
|---|---|
protected String[] |
basePath(String[] path)
merge the first tokens into a dot separated path. |
protected boolean |
endsWith(String[] path,
String suffix)
|
protected String |
mergePath(String[] path)
|
protected String |
mergePath(String[] path,
int begin,
int length)
|
protected String[] |
splitPath(String path)
split a dot separated path into tokens |
Object |
visit(ASTAbstractSchemaName node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTAggregateSelectExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTArithmeticExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTArithmeticFactor node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTArithmeticLiteral node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTArithmeticTerm node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTBetweenExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTBooleanExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTBooleanLiteral node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTCmpPathExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTCollectionMemberDeclaration node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTCollectionMemberExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTCollectionValuedPathExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTComparisonExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTConditionalExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTConditionalFactor node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTConditionalTerm node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTDatetimeExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTEJBQL node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTEmptyCollectionComparisonExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTEntityBeanExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTFloatingPointLiteral node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTFromClause node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTFunctionsReturningNumerics node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTFunctionsReturningStrings node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTIdentificationVariable node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTIdentifier node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTInExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTInputParameter node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTIntegerLiteral node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTLikeExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTLimitClause node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTLimitExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTLiteral node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTNullComparisonExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTOrderByClause node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTOrderByItem node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTPath node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTRangeVariableDeclaration node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTSelectClause node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTSelectExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTSingleValuedCmrPathExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTSingleValuedPathExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTStringExpression node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTStringLiteral node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(ASTWhereClause node,
Object data)
null implementation of the visit method for the corresponding parameter type |
Object |
visit(SimpleNode node)
Visit method to call from constructor. |
Object |
visit(SimpleNode node,
Object data)
Generic visit method that traverses all child nodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EjbqlAbstractVisitor()
| Method Detail |
|---|
protected String[] splitPath(String path)
path - the input path
protected String mergePath(String[] path,
int begin,
int length)
path - the input pathbegin - the beginning indexlength - the length
protected String mergePath(String[] path)
path - the input path
protected boolean endsWith(String[] path,
String suffix)
path - the input pathsuffix - the input suffix
protected String[] basePath(String[] path)
path - the input path
public Object visit(SimpleNode node)
throws Exception
java.util.Stack as data parameter.
node - the node to visit
Exception - any nested exception thrown from other visit method
public Object visit(SimpleNode node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTEJBQL node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTFromClause node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTCollectionMemberDeclaration node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTRangeVariableDeclaration node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTSingleValuedPathExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTCmpPathExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTSingleValuedCmrPathExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTCollectionValuedPathExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTSelectClause node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTSelectExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTAggregateSelectExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTOrderByClause node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTOrderByItem node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTLimitClause node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTLimitExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTWhereClause node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTConditionalExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTConditionalTerm node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTConditionalFactor node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTBetweenExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTInExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTLikeExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTNullComparisonExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTEmptyCollectionComparisonExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTCollectionMemberExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTComparisonExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTArithmeticExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTIntegerLiteral node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTFloatingPointLiteral node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTArithmeticTerm node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTArithmeticFactor node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTStringExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTDatetimeExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTBooleanExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTEntityBeanExpression node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTFunctionsReturningStrings node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTFunctionsReturningNumerics node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTAbstractSchemaName node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTIdentificationVariable node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTIdentifier node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTPath node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTLiteral node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTStringLiteral node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTArithmeticLiteral node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTBooleanLiteral node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
public Object visit(ASTInputParameter node,
Object data)
visit in interface EJBQLVisitornode - the node to visitdata - the current stack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||