Package org.apache.velocity.runtime.parser.node

Interface Summary
Node This file describes the interface between the Velocity code and the JavaCC generated code.
 

Class Summary
AbstractExecutor Abstract class that is used to execute an arbitrary method that is in introspected.
ASTAddNode  
ASTAndNode Please look at the Parser.jjt file which is what controls the generation of this class.
ASTAssignment  
ASTBlock  
ASTComment Represents all comments...
ASTDirective This class is responsible for handling the pluggable directives in VTL.
ASTDivNode Handles number division of nodes

Please look at the Parser.jjt file which is what controls the generation of this class.
ASTElseIfStatement This class is responsible for handling the ElseIf VTL control statement.
ASTElseStatement This class is responsible for handling the Else VTL control statement.
ASTEQNode Handles arg1 == arg2 This operator requires that the LHS and RHS are both of the same Class OR both are subclasses of java.lang.Number
ASTEscape This class is responsible for handling Escapes in VTL.
ASTEscapedDirective This class is responsible for handling EscapedDirectives in VTL.
ASTExpression  
ASTFalse  
ASTFloatingPointLiteral Handles floating point numbers.
ASTGENode Handles arg1 >= arg2

Only subclasses of Number can be compared.

Please look at the Parser.jjt file which is what controls the generation of this class.
ASTGTNode Handles arg1 > arg2

Only subclasses of Number can be compared.

Please look at the Parser.jjt file which is what controls the generation of this class.
ASTIdentifier ASTIdentifier.java Method support for identifiers : $foo mainly used by ASTRefrence Introspection is now moved to 'just in time' or at render / execution time.
ASTIfStatement  
ASTIncludeStatement  
ASTIntegerLiteral Handles integer numbers.
ASTIntegerRange handles the range 'operator' [ n ..
ASTLENode Handles arg1 <= arg2

Only subclasses of Number can be compared.

Please look at the Parser.jjt file which is what controls the generation of this class.
ASTLTNode Handles arg1 < arg2

Only subclasses of Number can be compared.

Please look at the Parser.jjt file which is what controls the generation of this class.
ASTMap AST Node for creating a map / dictionary.
ASTMethod ASTMethod.java Method support for references : $foo.method() NOTE : introspection is now done at render time.
ASTMethod.MethodCacheKey Internal class used as key for method cache.
ASTModNode  
ASTMulNode Handles multiplication

Please look at the Parser.jjt file which is what controls the generation of this class.
ASTNENode Handles arg1 != arg2 This operator requires that the LHS and RHS are both of the same Class OR both are subclasses of java.lang.Number
ASTNotNode  
ASTObjectArray  
ASTOrNode Please look at the Parser.jjt file which is what controls the generation of this class.
ASTParameters  
ASTprocess  
ASTReference This class is responsible for handling the references in VTL ($foo).
ASTSetDirective Node for the #set directive
ASTStop This class is responsible for handling the #stop directive Please look at the Parser.jjt file which is what controls the generation of this class.
ASTStringLiteral ASTStringLiteral support.
ASTSubtractNode Handles subtraction of nodes (in #set() )

Please look at the Parser.jjt file which is what controls the generation of this class.
ASTText  
ASTTrue  
ASTVariable  
ASTWord  
BooleanPropertyExecutor Handles discovery and valuation of a boolean object property, of the form public boolean is when executed.
GetExecutor Executor that simply tries to execute a get(key) operation.
MapGetExecutor GetExecutor that is smart about Maps.
MapSetExecutor SetExecutor that is smart about Maps.
MathUtils Utility-class for all arithmetic-operations.

All operations (+ - / *) return a Number which type is the type of the bigger argument.
Example:
add ( new Integer(10), new Integer(1)) will return an Integer-Object with the value 11
add ( new Long(10), new Integer(1)) will return an Long-Object with the value 11
add ( new Integer(10), new Float(1)) will return an Float-Object with the value 11

Overflow checking:
For integral values (byte, short, int) there is an implicit overflow correction (the next "bigger" type will be returned).
NodeUtils Utilities for dealing with the AST node structure.
PropertyExecutor Returned the value of object property when executed.
PutExecutor Executor that simply tries to execute a put(key, value) operation.
SetExecutor Abstract class that is used to execute an arbitrary method that is in introspected.
SetPropertyExecutor Executor for looking up property names in the passed in class This will try to find a set<foo>(key, value) method
SimpleNode  
 



Copyright © 2000-2007 The Apache Software Foundation. All Rights Reserved.