Class ASTFloatingPointLiteral
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTFloatingPointLiteral
- All Implemented Interfaces:
Cloneable,Node,Renderable
Handles floating point numbers. The value will be either a Double
or a BigDecimal.
- Since:
- 1.5
- Author:
- Will Glass-Husain
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(InternalContextAdapter context) init(InternalContextAdapter context, Object data) Initialization method - doesn't do much but do the object creation.jjtAccept(StandardParserVisitor visitor, Object data) value(InternalContextAdapter context) Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, cleanupParserAndTokens, clone, clone, dump, dump, dump, 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
-
ASTFloatingPointLiteral
public ASTFloatingPointLiteral(int id) - Parameters:
id-
-
ASTFloatingPointLiteral
- Parameters:
p-id-
-
-
Method Details
-
jjtAccept
- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor-data-- Returns:
- The Node execution result object.
- See Also:
-
init
Initialization method - doesn't do much but do the object creation. We only need to do it once.- Specified by:
initin interfaceNode- Overrides:
initin classSimpleNode- Parameters:
context-data-- Returns:
- The data object.
- Throws:
TemplateInitException- See Also:
-
value
- Specified by:
valuein interfaceNode- Overrides:
valuein classSimpleNode- Parameters:
context-- Returns:
- The node value.
- See Also:
-
evaluate
- Specified by:
evaluatein interfaceNode- Overrides:
evaluatein classSimpleNode- Parameters:
context-- Returns:
- The evaluation result.
- See Also:
-