Class GeneralAddress
java.lang.Object
svm.value.Value
svm.value.GeneralAddress
- Author:
- S-Port: Definition of S-code, Øystein Myhre Andersen
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorGeneralAddress(ObjectAddress base, int ofst) Construct a new GeneralAddress with the given base and offset -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of: this value + other valuebooleanCompare this Value with the given Value according to the given relation.static GeneralAddressofScode()Scans the remaining S-Code (if any) belonging to this GeneralAddress Value.static GeneralAddressread(AttributeInputStream inpt) Reads a GeneralAddress from the given input.toString()voidwrite(AttributeOutputStream oupt) Writes this Value to the given output.
-
Field Details
-
base
Base Object address -
ofst
public int ofstThe offset
-
-
Constructor Details
-
GeneralAddress
public GeneralAddress()Default Constructor -
GeneralAddress
Construct a new GeneralAddress with the given base and offset- Parameters:
base- the Base Object addressofst- The offset
-
-
Method Details
-
ofScode
Scans the remaining S-Code (if any) belonging to this GeneralAddress Value. Then construct a new GeneralAddress instance.- Returns:
- that GeneralAddress instance.
-
compare
Description copied from class:ValueCompare this Value with the given Value according to the given relation. -
add
-
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 GeneralAddress from the given input.- Parameters:
inpt- the AttributeInputStream- Returns:
- the GeneralAddress read
- Throws:
IOException- if IOException occur
-