Class BooleanValue
java.lang.Object
svm.value.Value
svm.value.BooleanValue
- Author:
- S-Port: Definition of S-code, Øystein Myhre Andersen
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault ConstructorprivateBooleanValue(boolean value) Construct a new BooleanValue -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of: this value and other valuebooleanCompare this Value with the given Value according to the given relation.voidemit(DataSegment dseg) Add this value to the given DataSegmentReturns the result of: this value eqv other valueReturns the result of: this value imp other valuestatic BooleanValueof(boolean value) Create an Object to represent a boolean value. true: new BooleanValue, otherwise nullReturns the result of: this value or other valuestatic BooleanValueread(AttributeInputStream inpt) Reads a BooleanValue from the given input.toString()voidwrite(AttributeOutputStream oupt) Writes this Value to the given output.Returns the result of: this value xor other value
-
Field Details
-
value
public boolean valueThe value
-
-
Constructor Details
-
BooleanValue
public BooleanValue()Default Constructor -
BooleanValue
private BooleanValue(boolean value) Construct a new BooleanValue- Parameters:
value- true or false
-
-
Method Details
-
of
Create an Object to represent a boolean value. true: new BooleanValue, otherwise null- Parameters:
value- true or false- Returns:
- the newly created BooleanValue
-
emit
Description copied from class:ValueAdd this value to the given DataSegment -
and
-
or
Description copied from class:ValueReturns the result of: this value or other value -
xor
Description copied from class:ValueReturns the result of: this value xor other value -
imp
Description copied from class:ValueReturns the result of: this value imp other value -
eqv
Description copied from class:ValueReturns the result of: this value eqv other value -
compare
Description copied from class:ValueCompare this Value with the given Value according to the given relation. -
toString
-
write
Description copied from class:ValueWrites this Value to the given output.- Overrides:
writein classValue- Parameters:
oupt- the output stream- Throws:
IOException- if IOException occur
-
read
Reads a BooleanValue from the given input.- Parameters:
inpt- the AttributeInputStream- Returns:
- the BooleanValue read
- Throws:
IOException- if IOException occur
-