org.apache.bcel.generic
public class CHECKCAST extends CPInstruction implements LoadClass, ExceptionThrower, StackProducer, StackConsumer
Stack: ..., objectref -> ..., objectref
Constructor Summary | |
---|---|
CHECKCAST(int index) Check whether object is of given type |
Method Summary | |
---|---|
void | accept(Visitor v)
Call corresponding visitor method(s). |
Class[] | getExceptions() |
ObjectType | getLoadClassType(ConstantPoolGen cpg) |
Parameters: index index to class in constant pool
Parameters: v Visitor object
Returns: exceptions this instruction may cause