ter.API
Class MethodAnalyser

java.lang.Object
  |
  +--ter.API.MethodAnalyser

public class MethodAnalyser
extends java.lang.Object

Title: MethodAnalyser

Description: This class allow to analysed a method

Company: UNSA

Version:
1.0
Author:
Lucas Charbit - Jerome Gahide - Galbois Xavier - Gabriel Zerbib

Constructor Summary
MethodAnalyser(java.lang.reflect.Method m, ClassifierAnalyser cl)
          the contructor of the Class
 
Method Summary
 java.util.ArrayList getClassesWhereThisMethodIsDefined()
           
 java.lang.String getFullName()
          return the full name of the method
 TypeClass[] getListTypeClass()
           
 java.lang.reflect.Method getMethod()
           
 int getModifier()
           
 TypeClass getReturnType()
           
 java.lang.String getStringModifier()
          get the string of modifier
 boolean isAbstract()
          true if the method is static false otherwise
 boolean isGetter()
          return true is the method is a getter false otherwise
 boolean isSetter()
          return true is the method is a setter false otherwise
 boolean isStatic()
          true if the method is static false otherwise
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodAnalyser

public MethodAnalyser(java.lang.reflect.Method m,
                      ClassifierAnalyser cl)
the contructor of the Class

Parameters:
m - the method to analyse
cl - the ClassifierAnalyser associated to this Class
Method Detail

getStringModifier

public java.lang.String getStringModifier()
get the string of modifier

Returns:
the string of modifier

isStatic

public boolean isStatic()
true if the method is static false otherwise

Returns:
true if the method is static false otherwise

isAbstract

public boolean isAbstract()
true if the method is static false otherwise

Returns:
true if the method is static false otherwise

getFullName

public java.lang.String getFullName()
return the full name of the method

Returns:
return the full name of the method

isGetter

public boolean isGetter()
return true is the method is a getter false otherwise

Returns:
true is the method is a getter false otherwise

isSetter

public boolean isSetter()
return true is the method is a setter false otherwise

Returns:
true is the method is a setter false otherwise

getMethod

public java.lang.reflect.Method getMethod()

getModifier

public int getModifier()

getListTypeClass

public TypeClass[] getListTypeClass()

getReturnType

public TypeClass getReturnType()

getClassesWhereThisMethodIsDefined

public java.util.ArrayList getClassesWhereThisMethodIsDefined()