java.io.Serializable
, java.lang.Cloneable
, ExceptionThrower
, IndexedInstruction
, LoadClass
, StackConsumer
, StackProducer
, TypedInstruction
public class CHECKCAST extends CPInstruction implements LoadClass, ExceptionThrower, StackProducer, StackConsumer
Stack: ..., objectref -> ..., objectref
index
length, opcode
Constructor | Description |
---|---|
CHECKCAST(int index) |
Check whether object is of given type
|
Modifier and Type | Method | Description |
---|---|---|
void |
accept(Visitor v) |
Call corresponding visitor method(s).
|
java.lang.Class[] |
getExceptions() |
|
ObjectType |
getLoadClassType(ConstantPoolGen cpg) |
Returns the ObjectType of the referenced class or interface
that may be loaded and resolved.
|
dump, getIndex, getType, initFromFile, setIndex, toString, toString
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
consumeStack
produceStack
public CHECKCAST(int index)
index
- index to class in constant poolpublic java.lang.Class[] getExceptions()
getExceptions
in interface ExceptionThrower
public ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClass
getLoadClassType
in interface LoadClass
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object