|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserp.bytecode.Instruction
serp.bytecode.TypedInstruction
serp.bytecode.NewArrayInstruction
public class NewArrayInstruction
The newarray instruction, which is used to create new
arrays of primitive types.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class serp.bytecode.TypedInstruction |
|---|
getType, getTypeBC, setType, setType |
| Methods inherited from class serp.bytecode.Instruction |
|---|
getByteIndex, getClassLoader, getCode, getLineNumber, getLogicalStackChange, getName, getOpcode, getPool, getProject, getStackChange, isValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getTypeName()
TypedInstruction
getTypeName in class TypedInstructionpublic TypedInstruction setType(String type)
TypedInstruction
setType 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 Instruction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||