org.apache.bcel.generic
Class INSTANCEOF
- Cloneable, ExceptionThrower, IndexedInstruction, LoadClass, Serializable, StackConsumer, StackProducer, TypedInstruction
INSTANCEOF - Determine if object is of given type
Stack: ..., objectref -> ..., result
$Id: INSTANCEOF.java 386056 2006-03-15 11:31:56Z tcurdt $
INSTANCEOF() - Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
INSTANCEOF(int index)
|
accept , className , consumeStack , copy , dispose , dump , equals , getComparator , getLength , getName , getOpcode , initFromFile , produceStack , readInstruction , setComparator , setOpcode , toString , toString , toString |
INSTANCEOF
(package private) INSTANCEOF()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). Not to be used otherwise.
INSTANCEOF
public INSTANCEOF(int index)
accept
public void accept(Visitor v)
Call corresponding visitor method(s). The order is:
Call visitor methods of implemented interfaces first, then
call methods according to the class hierarchy in descending order,
i.e., the most specific visitXXX() call comes last.
- accept in interface Instruction
getLoadClassType
public ObjectType getLoadClassType(ConstantPoolGen cpg)
Returns the ObjectType of the referenced class or interface
that may be loaded and resolved.
- getLoadClassType in interface LoadClass
- object type that may be loaded or null if a primitive is
referenced