public class ClassInstruction extends TypedInstruction
anewarray, checkcast, instance, anew, etc.| Modifier and Type | Method and Description |
|---|---|
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. |
boolean |
equalsInstruction(Instruction other)
ClassInstructions are equal if the type they reference is the same or
unset and if their opcodes are equal.
|
int |
getStackChange()
Return the number of stack positions this instruction pushes
or pops during its execution.
|
int |
getTypeIndex()
Return the
ConstantPool index of the
ClassEntry describing the class for this instruction. |
java.lang.String |
getTypeName()
Return the type name for this instruction.
|
TypedInstruction |
setType(java.lang.String type)
Set the type of this instruction.
|
ClassInstruction |
setTypeIndex(int index)
Set the
ConstantPool index of the
ClassEntry describing the class for this instruction. |
getType, getTypeBC, setType, setTypegetByteIndex, getClassLoader, getCode, getLineNumber, getLogicalStackChange, getName, getOpcode, getPool, getProject, isValidpublic int getStackChange()
InstructiongetStackChange in class Instructionpublic int getTypeIndex()
ConstantPool index of the
ClassEntry describing the class for this instruction.public ClassInstruction setTypeIndex(int index)
ConstantPool index of the
ClassEntry describing the class for this instruction.public java.lang.String getTypeName()
TypedInstructiongetTypeName in class TypedInstructionpublic TypedInstruction setType(java.lang.String type)
TypedInstructionsetType in class TypedInstructionpublic boolean equalsInstruction(Instruction other)
equalsInstruction in class Instructionpublic 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 InstructionCopyright © 2002-2013. All Rights Reserved.