java.lang.Object
com.tripi.asp.DefaultNode
com.tripi.asp.NumberNode
- All Implemented Interfaces:
- Node
- public class NumberNode
- extends DefaultNode
NumberNode class represents a number parsed from the ASP source file.
Usually contains either the Integer class or the Double class.
- Version:
- 0.9
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
number
java.lang.Object number
- Number this node contains
NumberNode
public NumberNode(java.lang.Object number)
- Constructor.
getNumber
public java.lang.Object getNumber()
- Get the number this node contains.
dump
public void dump()
- Dumps this node's string representation.
- Specified by:
dump in interface Node- Overrides:
dump in class DefaultNode
execute
public java.lang.Object execute(AspContext context)
- Executes this node within the specified context. This class evaluates
to the number this class contains.
- Specified by:
execute in interface Node- Overrides:
execute in class DefaultNode
fromDoubleToken
public static NumberNode fromDoubleToken(java.lang.String str)
- Create a number node from a decimal string.
fromHexToken
public static NumberNode fromHexToken(java.lang.String str)
- Create a number node from a hex string.