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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(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:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in 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:
init
in interfaceNode
- Overrides:
init
in classSimpleNode
- Parameters:
context
-data
-- Returns:
- The data object.
- Throws:
TemplateInitException
- See Also:
-
value
- Specified by:
value
in interfaceNode
- Overrides:
value
in classSimpleNode
- Parameters:
context
-- Returns:
- The node value.
- See Also:
-
evaluate
- Specified by:
evaluate
in interfaceNode
- Overrides:
evaluate
in classSimpleNode
- Parameters:
context
-- Returns:
- The evaluation result.
- See Also:
-