de.xabsl.jxabsl.expression.bool
Class BooleanValue
java.lang.Object
de.xabsl.jxabsl.expression.bool.BooleanExpression
de.xabsl.jxabsl.expression.bool.BooleanValue
public class BooleanValue
- extends BooleanExpression
Represents a literal boolean value.
Method Summary |
boolean |
getValue()
Returns the value of the boolean expression. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BooleanValue
public BooleanValue(boolean value,
DebugMessages debug)
- Constructor. Creates an expression for a fixed boolean value
- Parameters:
value
- The boolean valuedebug
- For debugging output
BooleanValue
public BooleanValue(InputSource input,
DebugMessages debug)
throws IntermediateCodeMalformedException
- Constructor. Creates the value
- Parameters:
input
- An input source for the intermediate code. It must be opened
and read until A position where a value starts.debug
- For debugging output
- Throws:
IntermediateCodeMalformedException
getValue
public boolean getValue()
- Description copied from class:
BooleanExpression
- Returns the value of the boolean expression.
- Specified by:
getValue
in class BooleanExpression
- Returns:
- the value of the boolean expression
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object