Package com.strobel.assembler.ir
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
-
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) 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()
-
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
-
accept
-
compareTo
- Specified by:
compareToin interfaceComparable<Instruction>
-