|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserp.bytecode.Instruction
serp.bytecode.TypedInstruction
serp.bytecode.LocalVariableInstruction
serp.bytecode.WideInstruction
public class WideInstruction
The wide instruction, which is used to allow other
instructions to index values beyond what they can normally index baed
on the length of their arguments.
| Method Summary | |
|---|---|
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one. |
WideInstruction |
aload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
astore()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
dload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
dstore()
Set the type of instruction this wide instruction modifies. |
boolean |
equalsInstruction(Instruction other)
WideInstructions are equal if the instruction they augment is the same or unset. |
WideInstruction |
fload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
fstore()
Set the type of instruction this wide instruction modifies. |
int |
getIncrement()
Return the increment for this instruction if it augments IINC, or -1 if unset. |
int |
getInstruction()
Return the opcode of the instruction to modify; this will return one of the constants defined in Constants. |
int |
getLogicalStackChange()
Return the logical number of stack positions changed by this instruction. |
int |
getStackChange()
Return the number of stack positions this instruction pushes or pops during its execution. |
String |
getTypeName()
Return the type name for this instruction. |
WideInstruction |
iinc()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
iload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
istore()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
lload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
lstore()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
ret()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
setIncrement(int val)
Set the increment on this instruction if it augments IINC. |
WideInstruction |
setInstruction(Instruction ins)
Set the type of instruction this wide instruction modifies. |
WideInstruction |
setInstruction(int opcode)
Set the type of instruction this wide instruction modifies. |
TypedInstruction |
setType(String type)
Set the type of this instruction. |
| Methods inherited from class serp.bytecode.LocalVariableInstruction |
|---|
getLocal, getLocalVariable, getParam, setLocal, setLocalVariable, setParam |
| Methods inherited from class serp.bytecode.TypedInstruction |
|---|
getType, getTypeBC, setType, setType |
| Methods inherited from class serp.bytecode.Instruction |
|---|
getByteIndex, getClassLoader, getCode, getLineNumber, getName, getOpcode, getPool, getProject, isValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getStackChange()
Instruction
getStackChange in class Instructionpublic int getLogicalStackChange()
Instruction
getLogicalStackChange in class Instructionpublic String getTypeName()
TypedInstruction
getTypeName in class LocalVariableInstructionpublic TypedInstruction setType(String type)
TypedInstruction
setType in class LocalVariableInstructionpublic int getInstruction()
Constants.
public WideInstruction setInstruction(Instruction ins)
public WideInstruction setInstruction(int opcode)
public WideInstruction iinc()
public WideInstruction ret()
public WideInstruction iload()
public WideInstruction fload()
public WideInstruction aload()
public WideInstruction lload()
public WideInstruction dload()
public WideInstruction istore()
public WideInstruction fstore()
public WideInstruction astore()
public WideInstruction lstore()
public WideInstruction dstore()
public int getIncrement()
public WideInstruction setIncrement(int val)
public boolean equalsInstruction(Instruction other)
equalsInstruction in class LocalVariableInstructionpublic void acceptVisit(BCVisitor visit)
VisitAcceptorBCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one.
acceptVisit in interface VisitAcceptoracceptVisit in class Instruction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||