de.xabsl.jxabsl.expression.enumerated
Class EnumeratedValue

java.lang.Object
  extended by de.xabsl.jxabsl.expression.enumerated.EnumeratedExpression
      extended by de.xabsl.jxabsl.expression.enumerated.EnumeratedValue

public class EnumeratedValue
extends EnumeratedExpression

Represents a literal enumerated value.


Field Summary
protected  java.lang.Object value
           
 
Fields inherited from class de.xabsl.jxabsl.expression.enumerated.EnumeratedExpression
debug, enumeration
 
Constructor Summary
EnumeratedValue(Enumeration enumeration, InputSource input, Symbols symbols, DebugMessages debug)
          Constructor.
EnumeratedValue(Enumeration enumeration, java.lang.Object element, DebugMessages debug)
           
 
Method Summary
 java.lang.Object getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class de.xabsl.jxabsl.expression.enumerated.EnumeratedExpression
create, elementFromIntermediateCode, enumerationFromIntermediateCode, getEnumeration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected java.lang.Object value
Constructor Detail

EnumeratedValue

public EnumeratedValue(Enumeration enumeration,
                       java.lang.Object element,
                       DebugMessages debug)
Parameters:
enumeration - The enumeration which is the domain of this expression. May not be null.
element - The enumerated value.
debug -

EnumeratedValue

public EnumeratedValue(Enumeration enumeration,
                       InputSource input,
                       Symbols symbols,
                       DebugMessages debug)
                throws IntermediateCodeMalformedException
Constructor. Creates the value.

Parameters:
enumeration - The enumeration which is the domain of this expression. May be null, then no check is performed.
input - An input source for the intermediate code. It must be opened and read until a position where the value starts. The enum element name has to be given in the form "Enumeration.EnumElement"
debug - For debugging output
Throws:
IntermediateCodeMalformedException
Method Detail

getValue

public java.lang.Object getValue()
Specified by:
getValue in class EnumeratedExpression

toString

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