|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectserp.bytecode.Instruction
serp.bytecode.FieldInstruction
public abstract class FieldInstruction
Instruction that takes as an argument a field to operate
on. Examples include getfield, getstatic, setfield, setstatic
.
Method Summary | |
---|---|
boolean |
equalsInstruction(Instruction other)
FieldInstructions are equal if the field they reference is the same, or if the field of either is unset. |
BCField |
getField()
Return the field this instruction operates on, or null if not set. |
BCClass |
getFieldDeclarerBC()
Return the declaring class of the field this instruction operates on, or null if not set. |
String |
getFieldDeclarerName()
Return the declaring class of the field this instruction operates on, or null if not set. |
Class |
getFieldDeclarerType()
Return the declaring class of the field this instruction operates on, or null if not set. |
int |
getFieldIndex()
Return the index in the class ConstantPool of the
ComplexEntry describing the field to operate on. |
String |
getFieldName()
Return the name of the field this instruction operates on, or null if not set. |
Class |
getFieldType()
Return the type of the field this instruction operates on, or null if not set. |
BCClass |
getFieldTypeBC()
Return the type of the field this instruction operates on, or null if not set. |
String |
getFieldTypeName()
Return the type of the field this instruction operates on, or null if not set. |
FieldInstruction |
setField(BCClass dec,
String name,
BCClass type)
Set the field this instruction operates on. |
FieldInstruction |
setField(BCField field)
Set the field this instruction operates on. |
FieldInstruction |
setField(Class dec,
String name,
Class type)
Set the field this instruction operates on. |
FieldInstruction |
setField(Field field)
Set the field this instruction operates on. |
FieldInstruction |
setField(String name,
BCClass type)
Set the field this instruction operates on, for fields that are declared by the current class. |
FieldInstruction |
setField(String name,
Class type)
Set the field this instruction operates on, for fields that are declared by the current class. |
FieldInstruction |
setField(String name,
String type)
Set the field this instruction operates on, for fields that are declared by the current class. |
FieldInstruction |
setField(String dec,
String name,
String type)
Set the field this instruction operates on. |
FieldInstruction |
setFieldDeclarer(BCClass type)
Set the declaring class of the field this instruction operates on. |
FieldInstruction |
setFieldDeclarer(Class type)
Set the declaring class of the field this instruction operates on. |
FieldInstruction |
setFieldDeclarer(String type)
Set the declaring class of the field this instruction operates on. |
FieldInstruction |
setFieldIndex(int index)
Set the index in the class ConstantPool of the
ComplexEntry describing the field to operate on. |
FieldInstruction |
setFieldName(String name)
Set the name of the field this instruction operates on. |
FieldInstruction |
setFieldType(BCClass type)
Set the type of the field this instruction operates on. |
FieldInstruction |
setFieldType(Class type)
Set the type of the field this instruction operates on. |
FieldInstruction |
setFieldType(String type)
Set the type of the field this instruction operates on. |
Methods inherited from class serp.bytecode.Instruction |
---|
acceptVisit, 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 int getFieldIndex()
ConstantPool
of the
ComplexEntry
describing the field to operate on.
public FieldInstruction setFieldIndex(int index)
ConstantPool
of the
ComplexEntry
describing the field to operate on.
public BCField getField()
public FieldInstruction setField(BCField field)
public FieldInstruction setField(Field field)
public FieldInstruction setField(String dec, String name, String type)
dec
- the full class name of the field's declaring classname
- the field nametype
- the full class name of the field type
public FieldInstruction setField(String name, String type)
name
- the field nametype
- the full class name of the field type
public FieldInstruction setField(Class dec, String name, Class type)
dec
- the field's declaring classname
- the field nametype
- the class of the field type
public FieldInstruction setField(String name, Class type)
name
- the field nametype
- the class of the field type
public FieldInstruction setField(BCClass dec, String name, BCClass type)
dec
- the field's declaring classname
- the field nametype
- the class of the field type
public FieldInstruction setField(String name, BCClass type)
name
- the field nametype
- the class of the field type
public String getFieldName()
public FieldInstruction setFieldName(String name)
public String getFieldTypeName()
public Class getFieldType()
public BCClass getFieldTypeBC()
public FieldInstruction setFieldType(String type)
public FieldInstruction setFieldType(Class type)
public FieldInstruction setFieldType(BCClass type)
public String getFieldDeclarerName()
public Class getFieldDeclarerType()
public BCClass getFieldDeclarerBC()
public FieldInstruction setFieldDeclarer(String type)
public FieldInstruction setFieldDeclarer(Class type)
public FieldInstruction setFieldDeclarer(BCClass type)
public boolean equalsInstruction(Instruction other)
equalsInstruction
in class Instruction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |