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. |
String |
getTypeName()
Return the type name for this instruction.
|
TypedInstruction |
setType(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, setType
getByteIndex, getClassLoader, getCode, getLineNumber, getLogicalStackChange, getName, getOpcode, getPool, getProject, isValid
public int getStackChange()
Instruction
getStackChange
in class Instruction
public 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 String getTypeName()
TypedInstruction
getTypeName
in class TypedInstruction
public TypedInstruction setType(String type)
TypedInstruction
setType
in class TypedInstruction
public boolean equalsInstruction(Instruction other)
equalsInstruction
in class Instruction
public void acceptVisit(BCVisitor visit)
VisitAcceptor
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.acceptVisit
in interface VisitAcceptor
acceptVisit
in class Instruction
Copyright © 2002–2019. All rights reserved.