org.onemind.jxp
Class JxpProcessor

java.lang.Object
  extended by org.onemind.jxp.JxpProcessor
All Implemented Interfaces:
JxpParserVisitor

public class JxpProcessor
extends java.lang.Object
implements JxpParserVisitor

The jxp processor

Author:
TiongHiang Lee (thlee@onemindsoft.org)

Nested Class Summary
private  class JxpProcessor.JxpUserDefinedFunction
          Represents a user defined function
 
Field Summary
private  boolean _checkFunctionArgumentType
          whether to check function argument type
private  JxpContext _context
          the jxp page source *
private  org.onemind.commons.java.datastructure.ThreadLocalStack _contextLocal
          a context local keep tracks of current processing context *
private static java.util.logging.Logger _logger
          the logger *
private  org.onemind.commons.java.util.Counter _methodStats
          the method statistic counter
private  boolean doMethodStats
          whether do method status
private static java.lang.Integer ONE
          represent ONE *
private static java.util.Map PRIMITIVE_DEFAULTS
          contains zero values for primitive
 
Constructor Summary
JxpProcessor(JxpContext context)
          Constructor
 
Method Summary
protected  java.lang.Object assign(SimpleNode node, java.lang.Object value)
          Assign the value assignable target node to the value
protected  java.lang.Object assignVariable(java.lang.String name, java.lang.Object value)
          Assign a variable in a current nametable stack to the value
protected  java.lang.Object callFunction(java.lang.String methodName, java.lang.Object[] args)
          Call the function of the processor.
 void declareFunctionLocals(java.lang.String functionName, SimpleNode params, java.lang.Object[] args)
          Create the function environment
 void flush()
          Flush the writer
private  ProcessingException generateProcessingException(java.lang.Throwable e, SimpleNode node)
          Throws the exception
 JxpContext getContext()
          Get the source
 JxpProcessingContext getCurrentContext()
          Get the current processing context
 java.util.Map getEnvironment()
          Get current environment
 org.onemind.commons.java.util.Counter getMethodStats()
          Get the method stats
protected  java.lang.Object includeCall(java.lang.String id)
          Include another page as a part of current page and process it
protected  java.lang.Object instantiate(java.lang.Class type, java.lang.Object[] args)
          Instantiate an instance of class type using the arguments
protected  java.lang.Object invokeMethod(java.lang.Object obj, java.lang.String methodName, java.lang.Object[] args)
          Invoke the method of object obj with given argument
protected  boolean isCheckFunctionArgumentType()
          Return the checkFunctionArgumentType
protected  java.lang.Object lookupVariable(java.lang.String variableName)
          Look up a variable in current nametable stack
static void main(java.lang.String[] args)
          process a file
protected  void print(java.lang.Object o)
          print the object by printing o.toString() using writer of current context.
protected  void print(java.lang.String s)
          Print the string using writer of current context
protected  void println(java.lang.Object o)
          print the object with the line delimiter "\n"
protected  void println(java.lang.String s)
          print the object with the line delimiter "\n"
protected  java.lang.Object process(java.lang.String id, JxpProcessingContext context)
          Processing a page identified by id in current context
 java.lang.Object process(java.lang.String id, java.io.Writer writer)
          Process a page with empty environment
 java.lang.Object process(java.lang.String id, java.io.Writer writer, java.util.Map env)
          process the page identified by id with the context given
protected  java.lang.Object processCall(java.lang.String id)
          Process a page identified by id in current context
protected  java.lang.Object[] resolveArguments(AstArguments node, JxpProcessingContext context)
          Resolve the arguments for function or method call
protected  int[] resolveArrayDims(AstArrayDims node, JxpProcessingContext context)
          Resolve the array dimensions needed
protected  Assignable resolveAssignmentTarget(SimpleNode node, boolean throwException)
          Resolve the assignment target.
protected  java.lang.Class resolveClass(java.lang.String className)
          Resolve the class.
protected  java.lang.Object resolveField(java.lang.Object obj, java.lang.String fieldName)
          Resolve the field on and object.
protected  java.lang.Object resolveName(java.util.List l)
          Resolve a object given the name in current processing context.
protected  void setCheckFunctionArgumentType(boolean checkFunctionArgumentType)
          Set the checkFunctionArgumentType
 void setDoMethodStats(boolean flag)
           
private  java.lang.String toDottedName(AstName name)
          Concat the ASTName to a dotted name notation
 java.lang.Object visit(AstArguments node, java.lang.Object data)
           
 java.lang.Object visit(AstArrayAllocationExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstArrayDims node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstArrayInitializer node, java.lang.Object data)
           
 java.lang.Object visit(AstArrayReference node, java.lang.Object data)
           
 java.lang.Object visit(AstAssertStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstBitwiseAndAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstBitwiseAndExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstBitwiseComplementExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstBitwiseOrAssignExpression node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstBitwiseOrExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstBitwiseXOrAssignExpression node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstBitwiseXOrExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstBlock node, java.lang.Object data)
           
 java.lang.Object visit(AstBreakStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstCase node, java.lang.Object data)
           
 java.lang.Object visit(AstCastExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstCatchBlock node, java.lang.Object data)
          
 java.lang.Object visit(AstConditionalAndExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstConditionalOrExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstContent node, java.lang.Object data)
           
 java.lang.Object visit(AstContinueStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstDivideAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstDivideExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstDoStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstEmptyStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstEnhancedForStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstEQExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstExitStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstFieldDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(AstField node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstFieldReference node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstFinallyBlock node, java.lang.Object data)
          
 java.lang.Object visit(AstForInit node, java.lang.Object data)
           
 java.lang.Object visit(AstFormalParameter node, java.lang.Object data)
           
 java.lang.Object visit(AstFormalParameters node, java.lang.Object data)
           
 java.lang.Object visit(AstForStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstForUpdate node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstFunctionDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(AstFunctionDeclarator node, java.lang.Object data)
           
 java.lang.Object visit(AstGEExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstGTExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstHookExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstIfStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstImportDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(AstIncludeDirective node, java.lang.Object data)
           
 java.lang.Object visit(AstInstanceOfExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstIsEmptyExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstJxpDocument node, java.lang.Object data)
           
 java.lang.Object visit(AstLabeledStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstLEExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstLiteral node, java.lang.Object data)
           
 java.lang.Object visit(AstLogicalComplementExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstLShiftAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstLShiftExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstLTExpression node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstMethodCall node, java.lang.Object data)
           
 java.lang.Object visit(AstMethodInvocation node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstMinusAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstMinusExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstMultiplyAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstMultiplyExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstNamedArgument node, java.lang.Object data)
           
 java.lang.Object visit(AstNameList node, java.lang.Object data)
           
 java.lang.Object visit(AstName node, java.lang.Object data)
           
 java.lang.Object visit(AstNEExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstObjectAllocationExpression node, java.lang.Object data)
          (non-Javadoc)
 java.lang.Object visit(AstPageDirective node, java.lang.Object data)
           
 java.lang.Object visit(AstPlusAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstPlusExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstPostDecrementExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstPostIncrementExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstPreDecrementExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstPreIncrementExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstPrimaryExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstPrimarySuffix node, java.lang.Object data)
           
 java.lang.Object visit(AstPrimitiveType node, java.lang.Object data)
           
 java.lang.Object visit(AstPrintStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstRemainderExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstRemAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstReturnStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstRSignedShiftAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstRSignedShiftExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstRUnsignedShiftAssignExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstRUnsignedShiftExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstStatementExpressionList node, java.lang.Object data)
           
 java.lang.Object visit(AstStaticImportDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstSwitchStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstSynchronizedStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstThrowStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstTryStatement node, java.lang.Object data)
           
 java.lang.Object visit(AstType node, java.lang.Object data)
          
 java.lang.Object visit(AstUnaryMinusExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstUnaryPlusExpression node, java.lang.Object data)
           
 java.lang.Object visit(AstVariableDeclaratorId node, java.lang.Object data)
          
 java.lang.Object visit(AstVariableDeclarator node, java.lang.Object data)
           
 java.lang.Object visit(AstVariableParameters node, java.lang.Object data)
          
 java.lang.Object visit(AstWhileStatement node, java.lang.Object data)
           
 java.lang.Object visit(SimpleNode node, java.lang.Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

private static final java.util.logging.Logger _logger
the logger *


ONE

private static final java.lang.Integer ONE
represent ONE *


PRIMITIVE_DEFAULTS

private static final java.util.Map PRIMITIVE_DEFAULTS
contains zero values for primitive


_contextLocal

private org.onemind.commons.java.datastructure.ThreadLocalStack _contextLocal
a context local keep tracks of current processing context *


_context

private JxpContext _context
the jxp page source *


doMethodStats

private boolean doMethodStats
whether do method status


_checkFunctionArgumentType

private boolean _checkFunctionArgumentType
whether to check function argument type


_methodStats

private final org.onemind.commons.java.util.Counter _methodStats
the method statistic counter

Constructor Detail

JxpProcessor

public JxpProcessor(JxpContext context)
Constructor

Parameters:
source - the page source
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
process a file

Parameters:
args - the arguments
Throws:
java.lang.Exception - if exception

getContext

public final JxpContext getContext()
Get the source

Returns:
the source

assign

protected java.lang.Object assign(SimpleNode node,
                                  java.lang.Object value)
                           throws ProcessingException
Assign the value assignable target node to the value

Parameters:
node - the assignable target
value - the value to assign
Returns:
the value assinged
Throws:
ProcessingException - if the node is not an assignable

assignVariable

protected java.lang.Object assignVariable(java.lang.String name,
                                          java.lang.Object value)
Assign a variable in a current nametable stack to the value

Parameters:
name - the variable name
value - the value
Returns:
the value assigned

callFunction

protected java.lang.Object callFunction(java.lang.String methodName,
                                        java.lang.Object[] args)
                                 throws java.lang.Exception
Call the function of the processor. Call predefined print or println if the method name matched. Otherwise, reflection will be used on the processor to invoke method

Parameters:
methodName - the method name
args - the arguments
Returns:
the value returned by the method call
Throws:
java.lang.Exception - if there's problem calling method

declareFunctionLocals

public void declareFunctionLocals(java.lang.String functionName,
                                  SimpleNode params,
                                  java.lang.Object[] args)
                           throws java.lang.Exception
Create the function environment

Parameters:
params - the parameters
args - the arguments
Throws:
java.lang.Exception

generateProcessingException

private ProcessingException generateProcessingException(java.lang.Throwable e,
                                                        SimpleNode node)
Throws the exception

Parameters:
e - the throwable
node - the node that the exception current
Returns:
will not return since exception will always be thrown

includeCall

protected java.lang.Object includeCall(java.lang.String id)
                                throws java.lang.Exception
Include another page as a part of current page and process it

Parameters:
id - the id
Returns:
the object
Throws:
java.lang.Exception - if there's exception

instantiate

protected java.lang.Object instantiate(java.lang.Class type,
                                       java.lang.Object[] args)
                                throws java.lang.Exception
Instantiate an instance of class type using the arguments

Parameters:
type - the type to instantiate
args - the arguments
Returns:
the object instantiated
Throws:
java.lang.Exception - if there's problem in the instantiation

invokeMethod

protected java.lang.Object invokeMethod(java.lang.Object obj,
                                        java.lang.String methodName,
                                        java.lang.Object[] args)
                                 throws java.lang.Exception
Invoke the method of object obj with given argument

Parameters:
obj - the object
methodName - the method name
args - the arguments
Returns:
the value return by the method invoked
Throws:
java.lang.Exception - if there's problem invoking the method

lookupVariable

protected java.lang.Object lookupVariable(java.lang.String variableName)
                                   throws java.lang.NoSuchFieldException
Look up a variable in current nametable stack

Parameters:
variableName - the variable name
Returns:
the value of the variable
Throws:
java.lang.NoSuchFieldException - the the variable cannot be found

print

protected void print(java.lang.Object o)
              throws java.io.IOException
print the object by printing o.toString() using writer of current context. If the object is null, "null" will be printed.

Parameters:
o - the object
Throws:
java.io.IOException - if there's problem doing the printing

print

protected void print(java.lang.String s)
              throws java.io.IOException
Print the string using writer of current context

Parameters:
s - the string
Throws:
java.io.IOException - if there's io problem TODO: make to flag IOException to avoid call writes again

println

protected void println(java.lang.Object o)
                throws java.io.IOException
print the object with the line delimiter "\n"

Parameters:
o - the object
Throws:
java.io.IOException - if there's problem doing the printing

println

protected void println(java.lang.String s)
                throws java.io.IOException
print the object with the line delimiter "\n"

Parameters:
s - the string
Throws:
java.io.IOException - if there's problem doing the printing

process

public java.lang.Object process(java.lang.String id,
                                java.io.Writer writer)
                         throws java.lang.Exception
Process a page with empty environment

Throws:
java.lang.Exception

process

public java.lang.Object process(java.lang.String id,
                                java.io.Writer writer,
                                java.util.Map env)
                         throws java.lang.Exception
process the page identified by id with the context given

Parameters:
id - the id
env - the environment
Returns:
value return by this page
Throws:
java.lang.Exception - if there's problem doing the printing

process

protected java.lang.Object process(java.lang.String id,
                                   JxpProcessingContext context)
                            throws java.lang.Exception
Processing a page identified by id in current context

Parameters:
id - the id
Returns:
the value return by the processing
Throws:
java.lang.Exception - if there's problem doing the printing

getCurrentContext

public JxpProcessingContext getCurrentContext()
Get the current processing context

Returns:
the current processing context

processCall

protected java.lang.Object processCall(java.lang.String id)
                                throws java.lang.Exception
Process a page identified by id in current context

Parameters:
id - the id
Returns:
the value return by the page
Throws:
java.lang.Exception - if there's problem doing the printing

resolveArguments

protected java.lang.Object[] resolveArguments(AstArguments node,
                                              JxpProcessingContext context)
                                       throws java.lang.Exception
Resolve the arguments for function or method call

Parameters:
node - the node
context - the context
Returns:
object array containing the resolved argument values
Throws:
java.lang.Exception - if there's problem

resolveArrayDims

protected int[] resolveArrayDims(AstArrayDims node,
                                 JxpProcessingContext context)
                          throws java.lang.Exception
Resolve the array dimensions needed

Parameters:
node - the ArrayDims node
context - the processing context
Returns:
the int array containing the dimensions info
Throws:
java.lang.Exception - if there's problem resolving the dimension

resolveAssignmentTarget

protected Assignable resolveAssignmentTarget(SimpleNode node,
                                             boolean throwException)
                                      throws ProcessingException
Resolve the assignment target. Exception will be thrown if the node is not assignable and throwExcpetion is true. Otherwise null will be return if the node cannot be resolved to assignment target.

Parameters:
node - the simple node or the target
throwException - whether to throw exception
Returns:
the target
Throws:
ProcessingException - if the target cannot be resolved

resolveClass

protected final java.lang.Class resolveClass(java.lang.String className)
Resolve the class. Call the current context for resolving since the imports in context specific

Parameters:
className - the class name
Returns:
the class

resolveField

protected java.lang.Object resolveField(java.lang.Object obj,
                                        java.lang.String fieldName)
                                 throws java.lang.Exception
Resolve the field on and object. Also resolve the array length field

Parameters:
obj - the object
fieldName - the field name
Returns:
the field value
Throws:
java.lang.Exception - if the field cannot be resolved

resolveName

protected java.lang.Object resolveName(java.util.List l)
                                throws java.lang.Exception
Resolve a object given the name in current processing context. It cound be variable, or class

Parameters:
l - containing series of identifier
Returns:
the object associated with the name
Throws:
java.lang.Exception - if there's problem resolving the name

toDottedName

private java.lang.String toDottedName(AstName name)
Concat the ASTName to a dotted name notation

Parameters:
name - the ASTName object
Returns:
the dotted name string

visit

public java.lang.Object visit(AstArguments node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstArguments, java.lang.Object)

visit

public java.lang.Object visit(AstArrayAllocationExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstArrayAllocationExpression, java.lang.Object)

visit

public java.lang.Object visit(AstArrayDims node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstArrayDims, java.lang.Object)

visit

public java.lang.Object visit(AstArrayInitializer node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstArrayInitializer, java.lang.Object)

visit

public java.lang.Object visit(AstArrayReference node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstArrayReference, java.lang.Object)

visit

public java.lang.Object visit(AstAssertStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstAssertStatement, java.lang.Object)

visit

public java.lang.Object visit(AstAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBitwiseAndAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstAndAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBitwiseAndExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstBitAndExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBitwiseComplementExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstTildeUnaryExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBitwiseOrAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstBitwiseOrAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBitwiseOrExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstInclusiveOrExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBitwiseXOrAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstBitwiseXOrAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBitwiseXOrExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstExclusiveOrExpression, java.lang.Object)

visit

public java.lang.Object visit(AstBlock node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstBlock, java.lang.Object)

visit

public java.lang.Object visit(AstBreakStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstBreakStatement, java.lang.Object)

visit

public java.lang.Object visit(AstCase node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstCase, java.lang.Object)

visit

public java.lang.Object visit(AstCastExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstCastExpression, java.lang.Object)

visit

public java.lang.Object visit(AstCatchBlock node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstConditionalAndExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstConditionalAndExpression, java.lang.Object)

visit

public java.lang.Object visit(AstConditionalOrExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstConditionalOrExpression, java.lang.Object)

visit

public java.lang.Object visit(AstContent node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstContent, java.lang.Object)

visit

public java.lang.Object visit(AstContinueStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstContinueStatement, java.lang.Object)

visit

public java.lang.Object visit(AstDivideAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstSlashAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstDivideExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstSlashExpression, java.lang.Object)

visit

public java.lang.Object visit(AstDoStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstDoStatement, java.lang.Object)

visit

public java.lang.Object visit(AstEmptyStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstEmptyStatement, java.lang.Object)

visit

public java.lang.Object visit(AstEQExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
org.onemind.jxp.parser.JxpParserVisitor#visit(jxp.parser.AstEQExpression, java.lang.Object)

visit

public java.lang.Object visit(AstField node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstField, java.lang.Object)

visit

public java.lang.Object visit(AstFieldDeclaration node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstFieldDeclaration, java.lang.Object)

visit

public java.lang.Object visit(AstFieldReference node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstFieldReference, java.lang.Object)

visit

public java.lang.Object visit(AstFinallyBlock node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstForInit node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstForInit, java.lang.Object)

visit

public java.lang.Object visit(AstFormalParameter node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstFormalParameter, java.lang.Object)

visit

public java.lang.Object visit(AstFormalParameters node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstFormalParameters, java.lang.Object)

visit

public java.lang.Object visit(AstForStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstForStatement, java.lang.Object)

visit

public java.lang.Object visit(AstForUpdate node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstForUpdate, java.lang.Object)

visit

public java.lang.Object visit(AstGEExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstGEExpression, java.lang.Object)

visit

public java.lang.Object visit(AstGTExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstGTExpression, java.lang.Object)

visit

public java.lang.Object visit(AstHookExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstHookExpression, java.lang.Object)

visit

public java.lang.Object visit(AstIfStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstIfStatement, java.lang.Object)

visit

public java.lang.Object visit(AstImportDeclaration node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstImportDeclaration, java.lang.Object)

visit

public java.lang.Object visit(AstInstanceOfExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstInstanceOfExpression, java.lang.Object)

visit

public java.lang.Object visit(AstJxpDocument node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstJxpDocument, java.lang.Object)

visit

public java.lang.Object visit(AstLabeledStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstLabeledStatement, java.lang.Object)

visit

public java.lang.Object visit(AstLEExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstLEExpression, java.lang.Object)

visit

public java.lang.Object visit(AstLiteral node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstLiteral, java.lang.Object)

visit

public java.lang.Object visit(AstLogicalComplementExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstBangUnaryExpression, java.lang.Object)

visit

public java.lang.Object visit(AstLShiftAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstLShiftAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstLShiftExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstLShiftExpression, java.lang.Object)

visit

public java.lang.Object visit(AstLTExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstLTExpression, java.lang.Object)

visit

public java.lang.Object visit(AstMethodCall node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstMethodCall, java.lang.Object)

visit

public java.lang.Object visit(AstFunctionDeclaration node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstMethodDeclaration, java.lang.Object)

visit

public java.lang.Object visit(AstFunctionDeclarator node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstMethodDeclarator, java.lang.Object)

visit

public java.lang.Object visit(AstMethodInvocation node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstMethodInvocation, java.lang.Object)

visit

public java.lang.Object visit(AstMinusAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstMinusAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstMinusExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstMinusExpression, java.lang.Object)

visit

public java.lang.Object visit(AstMultiplyAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstStarAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstMultiplyExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstMultiplyExpression, java.lang.Object)

visit

public java.lang.Object visit(AstName node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstName, java.lang.Object)

visit

public java.lang.Object visit(AstNameList node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstNameList, java.lang.Object)

visit

public java.lang.Object visit(AstNEExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstNEExpression, java.lang.Object)

visit

public java.lang.Object visit(AstObjectAllocationExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
(non-Javadoc)

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstObjectAllocationExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPlusAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPlusAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPlusExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPlusExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPostDecrementExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPostfixDecrementExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPostIncrementExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPostfixIncrementExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPreDecrementExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPreDecrementExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPreIncrementExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPreIncrementExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPrimaryExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPrimaryExpression, java.lang.Object)

visit

public java.lang.Object visit(AstPrimarySuffix node,
                              java.lang.Object data)
                       throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPrimarySuffix, java.lang.Object)

visit

public java.lang.Object visit(AstPrimitiveType node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPrimitiveType, java.lang.Object)

visit

public java.lang.Object visit(AstPrintStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstPrintStatement, java.lang.Object)

visit

public java.lang.Object visit(AstRemainderExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstRemainderExpression, java.lang.Object)

visit

public java.lang.Object visit(AstRemAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstRemAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstReturnStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstReturnStatement, java.lang.Object)

visit

public java.lang.Object visit(AstRSignedShiftAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstRSignedShiftAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstRSignedShiftExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstRSignedShiftExpression, java.lang.Object)

visit

public java.lang.Object visit(AstRUnsignedShiftAssignExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstRUnsignedShiftAssignExpression, java.lang.Object)

visit

public java.lang.Object visit(AstRUnsignedShiftExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstRUnsignedShiftExpression, java.lang.Object)

visit

public java.lang.Object visit(AstStatementExpressionList node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstStatementExpressionList, java.lang.Object)

visit

public java.lang.Object visit(AstSwitchStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstSwitchStatement, java.lang.Object)

visit

public java.lang.Object visit(AstSynchronizedStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstSynchronizedStatement, java.lang.Object)

visit

public java.lang.Object visit(AstThrowStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstThrowStatement, java.lang.Object)

visit

public java.lang.Object visit(AstTryStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstTryStatement, java.lang.Object)

visit

public java.lang.Object visit(AstUnaryMinusExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstUnaryMinusExpression, java.lang.Object)

visit

public java.lang.Object visit(AstUnaryPlusExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstUnaryPlusExpression, java.lang.Object)

visit

public java.lang.Object visit(AstVariableDeclarator node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstVariableDeclarator, java.lang.Object)

visit

public java.lang.Object visit(AstWhileStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.AstWhileStatement, java.lang.Object)

visit

public java.lang.Object visit(SimpleNode node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception
See Also:
jxp.parser.JxpParserVisitor#visit(jxp.parser.SimpleNode, java.lang.Object)

flush

public void flush()
           throws java.io.IOException
Flush the writer

Throws:
java.io.IOException - if there's io exception

visit

public java.lang.Object visit(AstType node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

getMethodStats

public org.onemind.commons.java.util.Counter getMethodStats()
Get the method stats

Returns:
the method stats

visit

public java.lang.Object visit(AstVariableDeclaratorId node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstExitStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstStaticImportDeclaration node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstVariableParameters node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstEnhancedForStatement node,
                              java.lang.Object data)
                       throws java.lang.Exception

Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

setDoMethodStats

public void setDoMethodStats(boolean flag)

visit

public java.lang.Object visit(AstNamedArgument node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

getEnvironment

public java.util.Map getEnvironment()
Get current environment

Returns:
the environment

isCheckFunctionArgumentType

protected final boolean isCheckFunctionArgumentType()
Return the checkFunctionArgumentType

Returns:
the checkFunctionArgumentType.

setCheckFunctionArgumentType

protected final void setCheckFunctionArgumentType(boolean checkFunctionArgumentType)
Set the checkFunctionArgumentType

Parameters:
checkFunctionArgumentType - The checkFunctionArgumentType to set.

visit

public java.lang.Object visit(AstPageDirective node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstIncludeDirective node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception

visit

public java.lang.Object visit(AstIsEmptyExpression node,
                              java.lang.Object data)
                       throws java.lang.Exception
Specified by:
visit in interface JxpParserVisitor
Throws:
java.lang.Exception