de.xabsl.jxabsl.expression.bool
Class BooleanValue

java.lang.Object
  extended by de.xabsl.jxabsl.expression.bool.BooleanExpression
      extended by de.xabsl.jxabsl.expression.bool.BooleanValue

public class BooleanValue
extends BooleanExpression

Represents a literal boolean value.


Field Summary
 
Fields inherited from class de.xabsl.jxabsl.expression.bool.BooleanExpression
debug
 
Constructor Summary
BooleanValue(boolean value, DebugMessages debug)
          Constructor.
BooleanValue(InputSource input, DebugMessages debug)
          Constructor.
 
Method Summary
 boolean getValue()
          Returns the value of the boolean expression.
 java.lang.String toString()
           
 
Methods inherited from class de.xabsl.jxabsl.expression.bool.BooleanExpression
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanValue

public BooleanValue(boolean value,
                    DebugMessages debug)
Constructor. Creates an expression for a fixed boolean value

Parameters:
value - The boolean value
debug - 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
Method Detail

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