public class CHECKCAST extends CPInstruction implements LoadClass, ExceptionThrower, StackProducer, StackConsumer
Stack: ..., objectref -> ..., objectref
indexlength, opcode| Constructor and Description |
|---|
CHECKCAST()
Empty constructor needed for Instruction.readInstruction.
|
CHECKCAST(int index)
Check whether object is of given type
|
| Modifier and Type | Method and 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, toStringconsumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, setLength, setOpcode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitproduceStackconsumeStackCHECKCAST()
public CHECKCAST(int index)
index - index to class in constant poolpublic java.lang.Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClassgetLoadClassType in interface LoadClasspublic void accept(Visitor v)
accept in class Instructionv - Visitor object