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

public Interface LoadClass

Known Direct Implementers
com.sun.org.apache.bcel.internal.generic.MULTIANEWARRAY, com.sun.org.apache.bcel.internal.generic.NEW, com.sun.org.apache.bcel.internal.generic.ANEWARRAY, com.sun.org.apache.bcel.internal.generic.CHECKCAST, com.sun.org.apache.bcel.internal.generic.FieldOrMethod, com.sun.org.apache.bcel.internal.generic.INSTANCEOF

Denotes that an instruction may start the process of loading and resolving the referenced class in the Virtual Machine.

Method Summary

Modifier and TypeMethod and Description
public ObjectType

Returns:

object type that may be loaded or null if a primitive is referenced
getLoadClassType
(ConstantPoolGen
A ConstantPoolGen
cpg
)

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

public Type

Returns:

the type associated with this instruction.
getType
(ConstantPoolGen
A ConstantPoolGen
cpg
)

Returns the type associated with this instruction.

Method Detail

getLoadClassTypeback to summary
public ObjectType getLoadClassType(ConstantPoolGen cpg)

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

getTypeback to summary
public Type getType(ConstantPoolGen cpg)

Returns the type associated with this instruction. LoadClass instances are always typed, but this type does not always refer to the type of the class or interface that it possibly forces to load. For example, GETFIELD would return the type of the field and not the type of the class where the field is defined. If no class is forced to be loaded, null is returned. An example for this is an NEWARRAY instruction that creates an int[][].

Parameters
cpg:ConstantPoolGen

A ConstantPoolGen

Returns:Type

the type associated with this instruction.

See Also
getLoadClassType(ConstantPoolGen)