public class ILOCInstruction extends Object implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
ILOCInstruction.Form
Possible forms of an ILOC instruction
|
| Modifier and Type | Field and Description |
|---|---|
String |
comment
Optional human-readable comment for this instruction
|
ILOCInstruction.Form |
form
Instruction form
|
ILOCOperand[] |
operands
Instruction operands
|
String |
variableName
Debug information for data flow analysis
|
| Constructor and Description |
|---|
ILOCInstruction(ILOCInstruction.Form form,
ILOCOperand[] operands)
Create a new instruction
|
ILOCInstruction(ILOCInstruction.Form form,
ILOCOperand[] operands,
String comment)
Create a new instruction
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Create a *deep copy* of this instruction.
|
List<ILOCOperand> |
getReadOperands()
Returns a list of ILOCOperands read by this instruction.
|
List<ILOCOperand> |
getReadOperands(boolean includeLiterals)
Returns a list of ILOCOperands read by this instruction.
|
ILOCOperand |
getWriteOperand()
Returns a single ILOCOperands written by this instruction.
|
List<ILOCOperand> |
getWriteOperands()
Returns a list of ILOCOperands written by this instruction.
|
String |
toString()
Builds a standardized string representation of an ILOC instruction
|
String |
toString(boolean showComments)
Builds a standardized string representation of an ILOC instruction
|
public String variableName
public ILOCInstruction.Form form
public ILOCOperand[] operands
public String comment
public ILOCInstruction(ILOCInstruction.Form form, ILOCOperand[] operands)
form - Instruction formoperands - Instruction operandspublic ILOCInstruction(ILOCInstruction.Form form, ILOCOperand[] operands, String comment)
form - Instruction formoperands - Instruction operandscomment - Human-readable commentpublic Object clone() throws CloneNotSupportedException
ILOCOperand
ID info interferes with the renumbering.clone in class ObjectCloneNotSupportedExceptionpublic List<ILOCOperand> getReadOperands()
public List<ILOCOperand> getReadOperands(boolean includeLiterals)
includeLiterals - Return literal operands as wellpublic List<ILOCOperand> getWriteOperands()
public ILOCOperand getWriteOperand()
public String toString()
public String toString(boolean showComments)
showComments - Include commentsCopyright © 2019. All rights reserved.