rasmus.interpreter.parser
Class ScriptElement

java.lang.Object
  extended by rasmus.interpreter.parser.ScriptElement

public class ScriptElement
extends java.lang.Object


Field Summary
static int TYPE_ASSIGNMENT
           
static int TYPE_BODY
           
static int TYPE_CALL
           
static int TYPE_IDENTIFIER
           
static int TYPE_NUMBER
           
static int TYPE_PARAMETER
           
static int TYPE_STRING
           
static int TYPE_UNIT
           
 
Constructor Summary
ScriptElement(int type)
           
ScriptElement(int type, java.lang.Object value)
           
 
Method Summary
 void add(ScriptElement element)
           
 java.util.List<ScriptElement> getElements()
           
 int getType()
           
 java.lang.Object getValue()
           
 java.lang.String toString()
           
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_BODY

public static final int TYPE_BODY
See Also:
Constant Field Values

TYPE_ASSIGNMENT

public static final int TYPE_ASSIGNMENT
See Also:
Constant Field Values

TYPE_CALL

public static final int TYPE_CALL
See Also:
Constant Field Values

TYPE_PARAMETER

public static final int TYPE_PARAMETER
See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
See Also:
Constant Field Values

TYPE_NUMBER

public static final int TYPE_NUMBER
See Also:
Constant Field Values

TYPE_IDENTIFIER

public static final int TYPE_IDENTIFIER
See Also:
Constant Field Values

TYPE_UNIT

public static final int TYPE_UNIT
See Also:
Constant Field Values
Constructor Detail

ScriptElement

public ScriptElement(int type,
                     java.lang.Object value)

ScriptElement

public ScriptElement(int type)
Method Detail

getElements

public java.util.List<ScriptElement> getElements()

getValue

public java.lang.Object getValue()

getType

public int getType()

add

public void add(ScriptElement element)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toXML

public java.lang.String toXML()