Class Instruction
java.lang.Object
com.strobel.assembler.ir.Instruction
- All Implemented Interfaces:
Comparable<Instruction>
User: Mike Strobel
Date: 1/6/13
Time: 1:31 AM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Labelprivate Instructionprivate intprivate OpCodeprivate Objectprivate Instructionprivate static final intprivate static final intprivate static final intprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionInstruction(int offset, OpCode opCode) Instruction(OpCode opCode) Instruction(OpCode opCode, Object operand) Instruction(OpCode opCode, Object... operands) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(InstructionVisitor visitor) private static booleancheckOperand(OperandType operandType, int value) private static booleancheckOperand(OperandType operandType, DynamicCallSite callSite) private static booleancheckOperand(OperandType operandType, FieldReference field) private static booleancheckOperand(OperandType operandType, MethodReference method) private static booleancheckOperand(OperandType operandType, TypeReference type) clone()final intstatic Instructionstatic Instructionstatic Instructionstatic Instructionstatic Instructionstatic Instructionstatic Instructioncreate(OpCode opCode, Instruction target) static Instructioncreate(OpCode opCode, DynamicCallSite callSite) static Instructioncreate(OpCode opCode, FieldReference field) static Instructioncreate(OpCode opCode, MethodReference method) static Instructioncreate(OpCode opCode, SwitchInfo switchInfo) static Instructioncreate(OpCode opCode, TypeReference type) static Instructioncreate(OpCode opCode, TypeReference type, int operand) static Instructioncreate(OpCode opCode, VariableReference variable) static Instructioncreate(OpCode opCode, VariableReference variable, int operand) intgetLabel()getNext()int<T> TgetOperand(int index) intintgetSize()booleanhasLabel()booleanbooleanvoidvoidsetNext(Instruction next) voidsetOffset(int offset) voidvoidsetOperand(Object operand) voidsetPrevious(Instruction previous) toString()
-
Field Details
-
_offset
private int _offset -
_opCode
-
_operand
-
_label
-
_previous
-
_next
-
U1_MIN_VALUE
private static final int U1_MIN_VALUE- See Also:
-
U1_MAX_VALUE
private static final int U1_MAX_VALUE- See Also:
-
U2_MIN_VALUE
private static final int U2_MIN_VALUE- See Also:
-
U2_MAX_VALUE
private static final int U2_MAX_VALUE- See Also:
-
-
Constructor Details
-
Instruction
-
Instruction
-
Instruction
-
Instruction
-
-
Method Details
-
hasOffset
public boolean hasOffset() -
hasOperand
public boolean hasOperand() -
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
getEndOffset
public int getEndOffset() -
getOpCode
-
setOpCode
-
getOperandCount
public int getOperandCount() -
getOperand
public <T> T getOperand(int index) -
setOperand
-
hasLabel
public boolean hasLabel() -
getLabel
-
setLabel
-
getPrevious
-
setPrevious
-
getNext
-
setNext
-
clone
-
toString
-
getSize
public int getSize() -
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
checkOperand
-
checkOperand
-
checkOperand
-
checkOperand
-
checkOperand
-
accept
-
compareTo
- Specified by:
compareToin interfaceComparable<Instruction>
-