public abstract class InstrMutableAction extends Instruction implements MutableStructure
InstrAction.version| Modifier and Type | Method and Description |
|---|---|
InstrMutableAction |
addAction(Action action)
Adds the specified action to this instruction.
|
String |
toDebugString(int indent)
Returns a string representation useful for debugging.
|
String |
toString() |
protected abstract void |
validateActions()
Subclasses should validate the actions, and silently return
if all is well.
|
boolean |
writable()
Returns true if this mutable object is still writable.
|
getInstructionType, getTotalLength, toDebugStringgetVersion, hex, hex, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoImmutablegetVersion, toDebugStringpublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
toString in class Instructionpublic InstrMutableAction addAction(Action action)
action - the action to addInvalidMutableException - if this instance is no longer writableNullPointerException - if action is nullprotected abstract void validateActions()
ValidationException - if a problem with the actionspublic String toDebugString(int indent)
InstructionInstruction.toString(), but
subclasses are free to override this behavior.toDebugString in class Instructionindent - the number of spaces with which to prefix each lineCopyright © 2014. All Rights Reserved.