public abstract class InstrMutableAction extends Instruction implements MutableStructure
InstrAction
.parseErrorCause, 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, toDebugString
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toImmutable
getVersion, toDebugString
public boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public String toString()
toString
in class Instruction
public 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)
Instruction
Instruction.toString()
, but
subclasses are free to override this behavior.toDebugString
in class Instruction
indent
- the number of spaces with which to prefix each lineCopyright © 2015. All Rights Reserved.