public class NewArrayInstruction extends TypedInstruction
newarray instruction, which is used to create new
arrays of primitive types.| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisit(BCVisitor visit)
Accept a visit from a
BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one. |
boolean |
equalsInstruction(Instruction other)
NewArray instructions are equal if the array type is the same,
of if the array type of either is unset.
|
int |
getTypeCode()
Return the array code used in the lowlevel bytecode, or -1 if unset.
|
String |
getTypeName()
Return the type name for this instruction.
|
TypedInstruction |
setType(String type)
Set the type of this instruction.
|
NewArrayInstruction |
setTypeCode(int code)
Set the array code used in the lowlevel bytecode.
|
getType, getTypeBC, setType, setTypegetByteIndex, getClassLoader, getCode, getLineNumber, getLogicalStackChange, getName, getOpcode, getPool, getProject, getStackChange, isValidpublic String getTypeName()
TypedInstructiongetTypeName in class TypedInstructionpublic TypedInstruction setType(String type)
TypedInstructionsetType in class TypedInstructionpublic int getTypeCode()
public NewArrayInstruction setTypeCode(int code)
public boolean equalsInstruction(Instruction other)
equalsInstruction in class Instructionpublic void acceptVisit(BCVisitor visit)
VisitAcceptorBCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one.acceptVisit in interface VisitAcceptoracceptVisit in class InstructionCopyright © 2002–2015. All rights reserved.