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
           
 
Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
children, first, id, info, invalid, last, parent, parser, rsvc, state
 
Constructor Summary
ASTNumberLiteral(int id)
           
ASTNumberLiteral(Parser p, int id)
           
 
Method Summary
 java.lang.Object init(InternalContextAdapter context, java.lang.Object data)
          Initialization method - doesn't do much but do the object creation.
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 java.lang.Object value(InternalContextAdapter context)
           
 
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, registerNatives, toString, wait, wait, wait
 

Field Detail

value

private java.lang.Integer value
Constructor Detail

ASTNumberLiteral

public ASTNumberLiteral(int id)

ASTNumberLiteral

public ASTNumberLiteral(Parser p,
                        int id)
Method Detail

jjtAccept

public java.lang.Object jjtAccept(ParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.
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.
Overrides:
init in class SimpleNode

value

public java.lang.Object value(InternalContextAdapter context)
Overrides:
value in class SimpleNode


Copyright © 2003 Apache Software Foundation. All Rights Reserved.