Class TextValue
java.lang.Object
svm.value.Value
svm.value.TextValue
- Author:
- S-Port: Definition of S-code, Øystein Myhre Andersen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidemit(DataSegment dseg) Add this value to the given DataSegmentemitChars(DataSegment dseg) Emit the characters of this TextValuestatic TextValueofScode()Scans the remaining S-Code belonging to this TextValue.static TextValueread(AttributeInputStream inpt) Reads a TextValue from the given input.toString()voidwrite(AttributeOutputStream oupt) Writes this Value to the given output.
-
Field Details
-
textValue
The text value string
-
-
Constructor Details
-
TextValue
public TextValue()Default Constructor -
TextValue
Construct a new TextValue with the given parameter string- Parameters:
textValue- the textValue value string
-
-
Method Details
-
ofScode
Scans the remaining S-Code belonging to this TextValue. Then construct a new TextValue instance.- Returns:
- that TextValue instance.
-
emitChars
Emit the characters of this TextValue- Parameters:
dseg- the DataSegment to receive the chars- Returns:
- the address of the emitted value
-
emit
Description copied from class:ValueAdd this value to the given DataSegment -
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 TextValue from the given input.- Parameters:
inpt- the AttributeInputStream- Returns:
- the TextValue read
- Throws:
IOException- if IOException occur
-