|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ter.API.ClassifierAnalyser
Title: JavInspector API for analysing a class
Description:API for analysing a class
Company: UNSA
Constructor Summary | |
ClassifierAnalyser(java.lang.Class classAnalysed,
Inspector inspector)
the constructor of this class |
Method Summary | |
static TypeClass |
createTypeClass(int dimension,
java.lang.Class cl)
creates a TypeClass object from the dimension and the name of the class |
TypeClass |
formatParametre(java.lang.Class c)
parses the name of the class c to find its type and its realname
(case the class is an array) |
java.lang.String |
fullName()
this function returns the full name of the classifier |
java.util.ArrayList |
getAllSuperInterfaces()
get all the super interfaces of the class analysed |
ClassifierAnalyser[] |
getAllSuperInterfacesClassifier()
this function return an Array of java.lang.Class of all the SuperInterfaces |
java.util.ArrayList |
getAnonymousInternalClasses()
get a list of java.lang.Class of all the internal anonymous classes |
java.lang.Class |
getClassAnalysed()
get the class analysed |
int |
getClassModifiers()
get the class modifiers of the analysed class(attributes) |
java.lang.Package |
getClassPackage()
get the package of the analysed class |
java.lang.String |
getCompleteName()
|
ConstructorAnalyser[] |
getConstructor()
returns the array of ConstructorAnalyser of ALL the constructors |
java.util.ArrayList |
getConstructorsException()
get all the exceptions thrown by any contructors |
java.util.ArrayList |
getConstructorsParameterType()
this function return the ArrayList with all the classes used by the analysed class |
FieldAnalyser[] |
getField()
returns the array of FieldAnalyser of ALL fields |
java.util.ArrayList |
getHeritageClasses()
this function return all the super classes of the class analysed |
java.util.ArrayList |
getHeritageClassifier()
get the list of heritage ClassifierAnalyser |
ClassifierAnalyser[] |
getInterfacesClassifier()
Determines the interfaces implemented by the class represented by this object. |
java.lang.Class[] |
getInternalClasses()
get the internal classes declared by this class |
MethodAnalyser[] |
getMethod()
returns an array MethodAnalyzer of ALL Methods |
java.lang.reflect.Method |
getMethod(java.lang.String name,
java.lang.Class[] parameterTypes,
java.lang.Class cl,
java.lang.Class returnType,
int modifier)
return a method that matchs with name, parameterTypes, returnType, modifier and which is in cl |
java.util.ArrayList |
getMethodRedefinedInClass(java.lang.Class cl)
this function returns all the methods in the classifier who are already defined in the class cl |
java.util.ArrayList |
getMethodReturnType()
this function returns all the type of return type of all methods |
java.util.ArrayList |
getMethodsExceptions()
this function returns the list of all the exceptions throwed by the methods |
java.util.ArrayList |
getMethodsParameterType()
this function returns all the type of parameters of all methods |
java.util.ArrayList |
getTypeField()
get all the type of class for all the fields |
void |
initialiseAnonymousInternalClasses()
this function initialise the anonym internal classes |
void |
initialiseField()
Initilalise the informations for each field |
void |
initialiseHeritageClasses()
this function initialise the heritage classes |
void |
initialiseHeritageClassifier()
initialise the arraylist of all the superclasses of the analysed class |
java.lang.String |
modifierToString()
get the modifier in String |
static java.lang.String |
modifierToString(java.lang.Class cl)
get the modifiers(attributes) of the analysed class in a String |
static java.lang.String |
nameInternalClass(java.lang.Class cl)
get the name of an internal class |
static java.lang.String |
shortName(java.lang.String s)
this function returns the short name of a class name if the name is java.lang.String this function return String |
java.lang.String |
toString()
get the name of a ClassifierAnanlyser |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassifierAnalyser(java.lang.Class classAnalysed, Inspector inspector)
classAnalysed
- the class to analyseinspector
- the inspector of thisMethod Detail |
public java.lang.Class getClassAnalysed()
public ConstructorAnalyser[] getConstructor()
public FieldAnalyser[] getField()
public void initialiseField()
public MethodAnalyser[] getMethod()
public void initialiseHeritageClassifier()
public void initialiseHeritageClasses()
public java.util.ArrayList getHeritageClassifier()
public int getClassModifiers()
public java.lang.Package getClassPackage()
public TypeClass formatParametre(java.lang.Class c)
c
to find its type and its realname
(case the class is an array)
c
- the class to parse
public static TypeClass createTypeClass(int dimension, java.lang.Class cl)
dimension
- the diamension of the array (0 if not an array)cl
- the class
public static java.lang.String shortName(java.lang.String s)
s
- the name of class
public java.util.ArrayList getMethodsExceptions()
public java.util.ArrayList getConstructorsParameterType()
public java.util.ArrayList getConstructorsException()
public java.util.ArrayList getTypeField()
Class
of the viewpublic java.util.ArrayList getMethodsParameterType()
public java.util.ArrayList getMethodReturnType()
public java.util.ArrayList getAllSuperInterfaces()
public ClassifierAnalyser[] getAllSuperInterfacesClassifier()
public java.lang.Class[] getInternalClasses()
public static java.lang.String nameInternalClass(java.lang.Class cl)
cl
- an internal class
public static java.lang.String modifierToString(java.lang.Class cl)
cl
- the class
public ClassifierAnalyser[] getInterfacesClassifier()
public java.lang.String modifierToString()
public java.lang.String getCompleteName()
public java.lang.String fullName()
public java.lang.String toString()
toString
in class java.lang.Object
public void initialiseAnonymousInternalClasses()
public java.util.ArrayList getAnonymousInternalClasses()
public java.util.ArrayList getMethodRedefinedInClass(java.lang.Class cl)
cl
- the class where we search the methods
public java.lang.reflect.Method getMethod(java.lang.String name, java.lang.Class[] parameterTypes, java.lang.Class cl, java.lang.Class returnType, int modifier)
name
- the name of methodparameterTypes
- the parameters of methodcl
- the java.lang.reflect.ClassreturnType
- the return type of methodmodifier
- the modofier of method
public java.util.ArrayList getHeritageClasses()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |