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, setType
getByteIndex, getClassLoader, getCode, getLineNumber, getLogicalStackChange, getName, getOpcode, getPool, getProject, getStackChange, isValid
public String getTypeName()
TypedInstruction
getTypeName
in class TypedInstruction
public TypedInstruction setType(String type)
TypedInstruction
setType
in class TypedInstruction
public int getTypeCode()
public NewArrayInstruction setTypeCode(int code)
public boolean equalsInstruction(Instruction other)
equalsInstruction
in class Instruction
public void acceptVisit(BCVisitor visit)
VisitAcceptor
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.acceptVisit
in interface VisitAcceptor
acceptVisit
in class Instruction
Copyright © 2002–2019. All rights reserved.