|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectataspectj.AtAspectjComponent
ataspectj.instrumentation.RepositoryLoader
public class RepositoryLoader
Used to retrieve reflective object about classes.
Field Summary |
---|
Fields inherited from class ataspectj.AtAspectjComponent |
---|
barrier, CODEPRINT, DEBUG, VERBOSE |
Constructor Summary | |
---|---|
RepositoryLoader()
|
Method Summary | |
---|---|
static org.apache.bcel.generic.Type[] |
convertType(java.lang.Class[] toconvert)
It Converts the array of java Classes into an array of bcel Types. |
static java.lang.reflect.Constructor[] |
getAllConstructorToInstrument(java.lang.String binaryClassName)
It retuns all the java constructor that contain a block annotation. |
static java.lang.reflect.Method[] |
getAllMethodToInstrument(java.lang.String binaryClassName)
It retuns all the java methods that contain a block annotation. |
static org.apache.bcel.classfile.Method |
getBCELMethodFromConstructor(org.apache.bcel.classfile.Method[] all,
java.lang.reflect.Constructor c)
Search the specified java.lang.reflect.Contructor into the array of org.apache.bcel.classfile.Method pass as argument |
static org.apache.bcel.classfile.Method |
getBCELMethodFromMethod(org.apache.bcel.classfile.Method[] all,
java.lang.reflect.Method c)
Search the specified java.lang.reflect.Method into the array of org.apache.bcel.classfile.Method pass as argument |
static InstrumentationRepository[] |
getBlockToInstrumentFromMethod(java.lang.reflect.Constructor c)
It returns an array of InstrumentationRepository containing all the java block of the given Constructor to instrument. |
static InstrumentationRepository[] |
getBlockToInstrumentFromMethod(java.lang.reflect.Method m)
It returns an array of InstrumentationRepository containing all the java block of the given Method to instrument. |
static InstrumentationRepository[] |
getConstructorAndMethodToInstrument(java.lang.String binaryClassName)
It returns an array of InstrumentationRepository containing all the java block contained into the given Class to instrument. |
static java.lang.Class[] |
getInnerClasses(java.lang.String binaryClassName)
Used to retrieve all the inner classes of a class. |
protected static boolean |
isLocalVariableInstruction(org.apache.bcel.generic.Instruction i)
It checks if the Instruction is a sub class of LocalVariableInstruction. |
protected static boolean |
isTheSame(org.apache.bcel.classfile.Method m,
java.lang.reflect.Constructor c)
It compares a java.lang.reflect.Constructor with a org.apache.bcel.classfile.Method, returns true if they are the same. |
protected static boolean |
isTheSame(org.apache.bcel.classfile.Method m,
java.lang.reflect.Method c)
It compares a java.lang.reflect.Method with a org.apache.bcel.classfile.Method, returns true if they are the same. |
Methods inherited from class ataspectj.AtAspectjComponent |
---|
done |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryLoader()
Method Detail |
---|
public static java.lang.Class[] getInnerClasses(java.lang.String binaryClassName) throws java.lang.ClassNotFoundException
binaryClassName
- the name of the class to investigate
java.lang.ClassNotFoundException
public static java.lang.reflect.Method[] getAllMethodToInstrument(java.lang.String binaryClassName) throws java.lang.ClassNotFoundException
binaryClassName
- The name of the class to check.
java.lang.ClassNotFoundException
- Raised if the class is not found.public static java.lang.reflect.Constructor[] getAllConstructorToInstrument(java.lang.String binaryClassName) throws java.lang.ClassNotFoundException
binaryClassName
- The name of the class to check.
java.lang.ClassNotFoundException
- Raised if the class is not found.public static org.apache.bcel.classfile.Method getBCELMethodFromConstructor(org.apache.bcel.classfile.Method[] all, java.lang.reflect.Constructor c) throws ConstructorNotFoundException
all
- The array of org.apache.bcel.classfile.Mehtod.c
- The java.lang.reflect.Constructor
ConstructorNotFoundException
- Raised if the Constructor was not found into the bcel methods array.public static org.apache.bcel.classfile.Method getBCELMethodFromMethod(org.apache.bcel.classfile.Method[] all, java.lang.reflect.Method c) throws MethodNotFoundException
all
- The array of org.apache.bcel.classfile.Mehtod.c
- The java.lang.reflect.Method
MethodNotFoundException
- Raised if the Constructor was not found into the bcel methods array.protected static boolean isTheSame(org.apache.bcel.classfile.Method m, java.lang.reflect.Constructor c)
m
- the bcel method.c
- the java Construcotor.
protected static boolean isTheSame(org.apache.bcel.classfile.Method m, java.lang.reflect.Method c)
m
- the bcel method.c
- the java Method.
public static org.apache.bcel.generic.Type[] convertType(java.lang.Class[] toconvert)
toconvert
- the array of java Classes.
protected static boolean isLocalVariableInstruction(org.apache.bcel.generic.Instruction i)
i
- the Instruction to check.
public static InstrumentationRepository[] getBlockToInstrumentFromMethod(java.lang.reflect.Method m) throws java.lang.ClassNotFoundException, MethodNotFoundException
m
- the java.lang.Method to investigate.
java.lang.ClassNotFoundException
- Raised if the java class of the given method is not found.
MethodNotFoundException
- Raises if an internal error occours.public static InstrumentationRepository[] getBlockToInstrumentFromMethod(java.lang.reflect.Constructor c) throws java.lang.ClassNotFoundException, ConstructorNotFoundException
c
- the java.lang.reflect.Constructor to investigate.
java.lang.ClassNotFoundException
- Raised if the java class of the given constructor is not found.
ConstructorNotfoundException
- Raises if an internal error occours.
ConstructorNotFoundException
public static InstrumentationRepository[] getConstructorAndMethodToInstrument(java.lang.String binaryClassName) throws java.lang.ClassNotFoundException, ConstructorNotFoundException, MethodNotFoundException
binaryClassName
- the name of java class to investigate.
java.lang.ClassNotFoundException
- Raised if the java class is not found.
ConstructorNotfoundException
- Raises if an internal error occours.
MethodNotFoundException
- Raises if an internal error occours.
ConstructorNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |