Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.generic

public Class INSTANCEOF

extends CPInstruction
implements LoadClass, ExceptionThrower, StackProducer, StackConsumer
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.generic.StackConsumer, com.sun.org.apache.bcel.internal.generic.StackProducer, com.sun.org.apache.bcel.internal.generic.ExceptionThrower, com.sun.org.apache.bcel.internal.generic.LoadClass
Imports
com.sun.org.apache.bcel.internal.ExceptionConst

INSTANCEOF - Determine if object is of given type
Stack: ..., objectref -> ..., result

Field Summary

Inherited from com.sun.org.apache.bcel.internal.generic.CPInstruction:
index

Constructor Summary

AccessConstructor and Description
pack-priv
INSTANCEOF()

Empty constructor needed for Instruction.readInstruction.

public
INSTANCEOF(final int index)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract com.sun.org.apache.bcel.internal.generic.Instruction.accept.

Call corresponding visitor method(s).
public Class<?>[]
public ObjectType
getLoadClassType(final ConstantPoolGen
A ConstantPoolGen
cpg
)

Implements com.sun.org.apache.bcel.internal.generic.LoadClass.getLoadClassType.

Returns the ObjectType of the referenced class or interface that may be loaded and resolved.
Inherited from com.sun.org.apache.bcel.internal.generic.CPInstruction:
dumpgetIndexgetTypeinitFromFilesetIndextoStringtoString

Constructor Detail

INSTANCEOFback to summary
pack-priv INSTANCEOF()

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

INSTANCEOFback to summary
public INSTANCEOF(final int index)

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.generic.Instruction.accept.

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.

Parameters
v:Visitor

Visitor object

Annotations
@Override
getExceptionsback to summary
public Class<?>[] getExceptions()

Implements com.sun.org.apache.bcel.internal.generic.ExceptionThrower.getExceptions.

Annotations
@Override
getLoadClassTypeback to summary
public ObjectType getLoadClassType(final ConstantPoolGen cpg)

Implements com.sun.org.apache.bcel.internal.generic.LoadClass.getLoadClassType.

Doc from com.sun.org.apache.bcel.internal.generic.LoadClass.getLoadClassType.

Returns the ObjectType of the referenced class or interface that may be loaded and resolved.

Parameters
cpg:ConstantPoolGen

A ConstantPoolGen

Returns:ObjectType

object type that may be loaded or null if a primitive is referenced

Annotations
@Override