Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class NumberNode  view NumberNode download NumberNode.java

java.lang.Object
  extended bycom.tripi.asp.DefaultNode
      extended bycom.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

Field Summary
(package private)  java.lang.Object number
          Number this node contains
 
Constructor Summary
NumberNode(java.lang.Object number)
          Constructor.
 
Method Summary
 void dump()
          Dumps this node's string representation.
 java.lang.Object execute(AspContext context)
          Executes this node within the specified context.
static NumberNode fromDoubleToken(java.lang.String str)
          Create a number node from a decimal string.
static NumberNode fromHexToken(java.lang.String str)
          Create a number node from a hex string.
 java.lang.Object getNumber()
          Get the number this node contains.
 
Methods inherited from class com.tripi.asp.DefaultNode
prepare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

java.lang.Object number
Number this node contains

Constructor Detail

NumberNode

public NumberNode(java.lang.Object number)
Constructor.

Method Detail

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.