de.xabsl.jxabsl.expression.enumerated
Class EnumeratedValue
java.lang.Object
de.xabsl.jxabsl.expression.enumerated.EnumeratedExpression
de.xabsl.jxabsl.expression.enumerated.EnumeratedValue
public class EnumeratedValue
- extends EnumeratedExpression
Represents a literal enumerated value.
Field Summary |
protected java.lang.Object |
value
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
protected java.lang.Object value
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
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