public class NEW extends CPInstruction implements LoadClass, AllocationInstruction, ExceptionThrower, StackProducer
Stack: ... -> ..., objectref
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
indexlength, opcode| Constructor and Description |
|---|
NEW()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
NEW(int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
java.lang.Class<?>[] |
getExceptions() |
ObjectType |
getLoadClassType(ConstantPoolGen cpg)
Returns the ObjectType of the referenced class or interface
that may be loaded and resolved.
|
dump, getIndex, getType, initFromFile, setIndex, toString, toStringconsumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, hashCode, produceStack, readInstruction, setComparator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitproduceStackprivate static final long serialVersionUID
NEW()
public NEW(int index)
public java.lang.Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClassgetLoadClassType in interface LoadClasspublic void accept(Visitor v)
accept in class Instructionv - Visitor object