Class: com.sun.org.apache.bcel.internal.generic.ANEWARRAY
- public class ANEWARRAY
- extends CPInstruction
- implements LoadClass, AllocationInstruction, ExceptionThrower, StackProducer
ANEWARRAY - Create new array of references
Stack: ..., count -> ..., arrayref
Inheritance
Superclass tree:- java.lang.Object
- com.sun.org.apache.bcel.internal.generic.Instruction
- com.sun.org.apache.bcel.internal.generic.CPInstruction
- com.sun.org.apache.bcel.internal.generic.ANEWARRAY
Methods
-
ANEWARRAYtop
ANEWARRAY()Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise. -
ANEWARRAYtop
public ANEWARRAY(int index) -
accepttop
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.- Override hierarchy:
- accept from Instruction
-
getExceptionstop
public Class[] getExceptions()- Specified by:
- getExceptions from ExceptionThrower
-
getLoadClassTypetop
public ObjectType getLoadClassType(ConstantPoolGen cpg)Returns the ObjectType of the referenced class or interface that may be loaded and resolved.- Specified by:
- getLoadClassType from LoadClass
