Class ASTIntegerRange
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTIntegerRange
- All Implemented Interfaces:
Cloneable
,Node
,Renderable
handles the range 'operator' [ n .. m ]
Please look at the Parser.jjt file which is
what controls the generation of this class.
- Author:
- Geir Magnusson Jr.
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninit
(InternalContextAdapter context, Object data) jjtAccept
(StandardParserVisitor visitor, Object data) value
(InternalContextAdapter context) does the real work.Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, cleanupParserAndTokens, clone, clone, dump, dump, dump, evaluate, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getParser, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString
-
Constructor Details
-
ASTIntegerRange
public ASTIntegerRange(int id) - Parameters:
id
-
-
ASTIntegerRange
- Parameters:
p
-id
-
-
-
Method Details
-
jjtAccept
- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
-data
-- Returns:
- The Node execution result object.
- See Also:
-
value
does the real work. Creates an Vector of Integers with the right value range- Specified by:
value
in interfaceNode
- Overrides:
value
in classSimpleNode
- Parameters:
context
- app context used if Left or Right of .. is a ref- Returns:
- Object array of Integers
- Throws:
MethodInvocationException
- See Also:
-
init
- Specified by:
init
in interfaceNode
- Overrides:
init
in classSimpleNode
- Parameters:
context
-data
-- Returns:
- The init result.
- Throws:
TemplateInitException
- See Also:
-