|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectataspectj.AtAspectjComponent
ataspectj.instrumentation.IndexRepository
public class IndexRepository
Class used to store information about the variables used into the annotated blocks.
Field Summary | |
---|---|
protected org.apache.bcel.generic.ConstantPoolGen |
_constantPoolGen
It holds the constant pool gen. |
protected boolean |
_isPrimitive
Boolean flags, true if the local variable haa primitive type. |
protected int |
_newIndex
It holds the index of the local variable into the new method. |
protected org.apache.bcel.generic.InstructionList |
_objectRefToPrimitive
It holds the instructions to restore the value of the primitive type from the wrapper object. |
protected int |
_objNewMethodIndex
It holds the index into the new method for the new wrapper object |
protected int |
_objRefIndex
It holds the index of the new wrapper object created into the original method. |
int |
_oldIndex
It holds the index of the local variable into the original method. |
protected org.apache.bcel.generic.InstructionList |
_primitiveToObjectRef
It holds the instructions to wrap the primitive variable into a wrapper object of @aspectj |
protected org.apache.bcel.generic.Type |
_type
It holds the type of the local variable |
protected java.lang.String |
_typeSign
It holds the type signature of the local variable. |
protected java.lang.String |
_vName
It holds the name of the local variable |
protected org.apache.bcel.generic.InstructionList |
_wrapNew
It holds the instructions to create the new wrapper object of @aspectj |
Fields inherited from class ataspectj.AtAspectjComponent |
---|
barrier, CODEPRINT, DEBUG, VERBOSE |
Constructor Summary | |
---|---|
IndexRepository(org.apache.bcel.generic.ConstantPoolGen cp,
int oi,
java.lang.String tSign,
java.lang.String vname)
The constructor of the class. |
Method Summary | |
---|---|
int |
compareTo(IndexRepository o)
Compare two IndexRepository |
org.apache.bcel.generic.Instruction |
getLoadInstruction(org.apache.bcel.generic.InstructionFactory ifact)
It creates a load instruction for the variable. |
int |
getNewIndex()
The getter methods for the field _newIndex. |
org.apache.bcel.generic.InstructionList |
getObjectRefToPrimitiveInstructionList()
The getter methods for the _objRefToPrimitive field. |
int |
getOldIndex()
The getter methods for the field _oldIndex. |
org.apache.bcel.generic.InstructionList |
getPrimitiveToObjectRefInstructionList()
The getter methods for the _pimitiveToObjRef field |
org.apache.bcel.generic.Type |
getType()
The getter methods for the field _type. |
java.lang.String |
getTypeSignature()
The getter methods for the field _typeSign. |
int |
getTypeSize()
It gets the number of byte needed for the type. |
org.apache.bcel.generic.InstructionList |
getWrapNew()
The getter methods for the field _wrapNew. |
org.apache.bcel.generic.Instruction |
getWrapperLoadInstruction(org.apache.bcel.generic.InstructionFactory ifact)
It creates a load instruction for wrapper object of the variable. |
int |
getWrapperObjectNewMethodIndex()
The getter methods for the field _objNewMethodIndex. |
org.apache.bcel.generic.Type |
getWrapType()
Returns the wrapper type. |
boolean |
isPrimitive()
It checks if the IndexRepository handles a primitive type local variable. |
void |
setIndexWrapperForNewMwthod(int i)
The setter method for the field _objNewMethodIndex |
void |
setNewIndex(int ni)
The getter methods for the field _newIndex. |
void |
setWrapperInstructionList(int objRefIndex)
It creates the instruction list to wrapper the primitive type |
java.lang.String |
toString()
It returns a simple resume of the object. |
Methods inherited from class ataspectj.AtAspectjComponent |
---|
done |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int _oldIndex
protected int _newIndex
protected java.lang.String _typeSign
protected java.lang.String _vName
protected org.apache.bcel.generic.Type _type
protected boolean _isPrimitive
protected org.apache.bcel.generic.ConstantPoolGen _constantPoolGen
protected org.apache.bcel.generic.InstructionList _wrapNew
protected org.apache.bcel.generic.InstructionList _primitiveToObjectRef
protected org.apache.bcel.generic.InstructionList _objectRefToPrimitive
protected int _objRefIndex
protected int _objNewMethodIndex
Constructor Detail |
---|
public IndexRepository(org.apache.bcel.generic.ConstantPoolGen cp, int oi, java.lang.String tSign, java.lang.String vname)
cp
- The ConstantPoolGenoi
- the old indextSign
- the type signaturevname
- the variable's nameMethod Detail |
---|
public void setIndexWrapperForNewMwthod(int i)
i
- the new value.public void setWrapperInstructionList(int objRefIndex)
objRefIndex
- the index to use for the new wrapper objectpublic boolean isPrimitive()
public org.apache.bcel.generic.InstructionList getPrimitiveToObjectRefInstructionList()
public org.apache.bcel.generic.InstructionList getObjectRefToPrimitiveInstructionList()
public org.apache.bcel.generic.Instruction getLoadInstruction(org.apache.bcel.generic.InstructionFactory ifact)
ifact
- The instruction factory to use.
public org.apache.bcel.generic.Instruction getWrapperLoadInstruction(org.apache.bcel.generic.InstructionFactory ifact)
ifact
- The instruction factory to use.
public int getTypeSize()
public int getOldIndex()
public int getNewIndex()
public int getWrapperObjectNewMethodIndex()
public org.apache.bcel.generic.InstructionList getWrapNew()
public java.lang.String getTypeSignature()
public org.apache.bcel.generic.Type getType()
public org.apache.bcel.generic.Type getWrapType()
public void setNewIndex(int ni)
ni
- the new indexpublic int compareTo(IndexRepository o)
compareTo
in interface java.lang.Comparable<IndexRepository>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |