org.apache.bcel.generic
public class CHECKCAST extends CPInstruction implements LoadClass, ExceptionThrower, StackProducer, StackConsumer
Stack: ..., objectref -> ..., objectref
Version: $Id: CHECKCAST.java 386056 2006-03-15 11:31:56Z tcurdt $
| Constructor Summary | |
|---|---|
| CHECKCAST()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). | |
| 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