org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor Class Reference

Inherits org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Inheritance diagram for org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EjbqlVariableVisitor (ASTEJBQL ejbql, DeploymentDescEjb2 dd, QueryBuilder qb) throws Exception
Map getFields ()
void traceIds (HashMap idsM)
Object visit (ASTFromClause node, Object data)
Object visit (ASTCollectionMemberDeclaration node, Object data)
Object visit (ASTRangeVariableDeclaration node, Object data)
Object visit (ASTCollectionValuedPathExpression node, Object data)
Object visit (ASTAbstractSchemaName node, Object data)
Object visit (ASTIdentifier node, Object data)
Object visit (ASTPath node, Object data)
Object visit (ASTSelectClause node, Object data)
Object visit (ASTSelectExpression node, Object data)
Object visit (ASTAggregateSelectExpression node, Object data)
Object visit (ASTIdentificationVariable node, Object data)
Object visit (ASTSingleValuedPathExpression node, Object data)
Object visit (ASTSingleValuedCmrPathExpression node, Object data)
Object visit (ASTCmpPathExpression node, Object data)
Object visit (ASTWhereClause node, Object data)
Object visit (ASTConditionalExpression node, Object data)
Object visit (ASTConditionalTerm node, Object data)
Object visit (ASTConditionalFactor node, Object data)
Object visit (ASTBetweenExpression node, Object data)
Object visit (ASTInExpression node, Object data)
Object visit (ASTLikeExpression node, Object data)
Object visit (ASTNullComparisonExpression node, Object data)
Object visit (ASTEmptyCollectionComparisonExpression node, Object data)
Object visit (ASTCollectionMemberExpression node, Object data)
Object visit (ASTComparisonExpression node, Object data)
Object visit (ASTArithmeticExpression node, Object data)
Object visit (ASTArithmeticTerm node, Object data)
Object visit (ASTArithmeticFactor node, Object data)
Object visit (ASTStringExpression node, Object data)
Object visit (ASTDatetimeExpression node, Object data)
Object visit (ASTBooleanExpression node, Object data)
Object visit (ASTEntityBeanExpression node, Object data)
Object visit (ASTFunctionsReturningStrings node, Object data)
Object visit (ASTFunctionsReturningNumerics node, Object data)
Object visit (ASTOrderByClause node, Object data)
Object visit (ASTOrderByItem node, Object data)

Detailed Description

Implementation of a visitor that creates a map of pairs [name,QueryTreeField] for all defined identifiers of the query.
Author:
Christophe Ney [cney@batisseurs.com] Initial developper

Helene Joanin:

Definition at line 110 of file EjbqlVariableVisitor.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.EjbqlVariableVisitor ASTEJBQL  ejbql,
DeploymentDescEjb2  dd,
QueryBuilder  qb
throws Exception
 

constructor

Parameters:
ejbql root of the lexical tree
dd Deployment Descriptor
qb query builder used to navigate paths
Exceptions:
Exception when error parsing

Definition at line 147 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.getJormManager(), and org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:


Member Function Documentation

Map org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.getFields  ) 
 

get the Map that was built from visiting the lexical query tree This map allows to get the org.objectweb.medor.api.Field from its name (ident or path).

Returns:
the Fields map

Definition at line 206 of file EjbqlVariableVisitor.java.

void org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.traceIds HashMap  idsM  ) 
 

Trace the given ids structure

Parameters:
idsM identifiocators Map

Definition at line 214 of file EjbqlVariableVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTOrderByItem  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 638 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTOrderByClause  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 623 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTFunctionsReturningNumerics  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 612 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTFunctionsReturningStrings  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 602 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTEntityBeanExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 592 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTBooleanExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 582 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTDatetimeExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 572 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTStringExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 562 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTArithmeticFactor  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 552 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTArithmeticTerm  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 542 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTArithmeticExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 532 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTComparisonExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 522 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTCollectionMemberExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 508 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTEmptyCollectionComparisonExpression  node,
Object  data
 

visit child nodes and see if it's IS EMPTY or IS NOT EMPTY

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 494 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTNullComparisonExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 484 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTLikeExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 474 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTInExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 464 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTBetweenExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 454 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTConditionalFactor  node,
Object  data
 

Visit child nodes and count the number of the unary operator NOT.

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 444 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTConditionalTerm  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 434 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTConditionalExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 424 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTWhereClause  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 409 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTCmpPathExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 398 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTSingleValuedCmrPathExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 388 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTSingleValuedPathExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 378 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTIdentificationVariable  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 368 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTAggregateSelectExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 358 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTSelectExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 348 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTSelectClause  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 333 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTPath  node,
Object  data
 

Push the Node to the stack

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 306 of file EjbqlVariableVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTIdentifier  node,
Object  data
 

Store the pair identifier,Node from the Stack in HashMap

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 287 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.splitPath().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTAbstractSchemaName  node,
Object  data
 

Push the Node to the stack

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 276 of file EjbqlVariableVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTCollectionValuedPathExpression  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 266 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTRangeVariableDeclaration  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 256 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTCollectionMemberDeclaration  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 246 of file EjbqlVariableVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit ASTFromClause  node,
Object  data
 

visit child nodes

Parameters:
node the node to visit
data the current stack
Returns:
the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 236 of file EjbqlVariableVisitor.java.

Referenced by org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.EjbqlVariableVisitor(), and org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.visit().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:12:04 2005 for JOnAS by  doxygen 1.3.9.1