Class ASTFloatingPointLiteral
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTFloatingPointLiteral
- All Implemented Interfaces:
Node,Renderable
Handles floating point numbers. The value will be either a Double
or a BigDecimal.
- Since:
- 1.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninit(InternalContextAdapter context, Object data) Initialization method - doesn't do much but do the object creation.jjtAccept(ParserVisitor visitor, Object data) value(InternalContextAdapter context) Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, dump, evaluate, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toString
-
Field Details
-
value
-
-
Constructor Details
-
ASTFloatingPointLiteral
public ASTFloatingPointLiteral(int id) - Parameters:
id-
-
ASTFloatingPointLiteral
- Parameters:
p-id-
-
-
Method Details
-
jjtAccept
- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- 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- Returns:
- The node value.
- See Also:
-