org.apache.velocity.runtime.parser.node
Class ASTNumberLiteral
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTNumberLiteral
- All Implemented Interfaces:
- Node
- public class ASTNumberLiteral
- extends SimpleNode
Field Summary |
private java.lang.Integer |
value
|
Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode |
childrenAccept, dump, evaluate, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
private java.lang.Integer value
ASTNumberLiteral
public ASTNumberLiteral(int id)
ASTNumberLiteral
public ASTNumberLiteral(Parser p,
int id)
jjtAccept
public java.lang.Object jjtAccept(ParserVisitor visitor,
java.lang.Object data)
- Accept the visitor.
- Specified by:
jjtAccept
in interface Node
- Overrides:
jjtAccept
in class SimpleNode
init
public java.lang.Object init(InternalContextAdapter context,
java.lang.Object data)
throws java.lang.Exception
- Initialization method - doesn't do much but do the object
creation. We only need to do it once.
- Specified by:
init
in interface Node
- Overrides:
init
in class SimpleNode
- Throws:
java.lang.Exception
value
public java.lang.Object value(InternalContextAdapter context)
- Specified by:
value
in interface Node
- Overrides:
value
in class SimpleNode
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.