org.objectweb.jac.core.rtti
Interface LoadtimeRTTI

All Known Implementing Classes:
ClassRepository

public interface LoadtimeRTTI

This class defines the super class for all the meta items whithin the rtti aspect.

A meta item encapsulates a java.lang.reflect item so that the user of this item can add extra informations (attributes). Typically this feature can be used by an aspect to tag an element of the model to react to this tag later on.

Examples:

Author:
Renaud Pawlak, Laurent Martelli

Method Summary
 void addInvokedMethod(String className, String methodSign, InvokeInfo invokeInfo)
          Tells that a method invokes another method
 void addltAccessedField(String className, String methodSign, String fieldName)
          Tells that a method reads a field
 void addltAddedCollection(String className, String methodSign, String fieldName)
          Tells that a method calls add on a collection field
 void addltModifiedCollection(String className, String methodSign, String fieldName)
          Tells that a method calls modifies the content of a collection field
 void addltModifiedField(String className, String methodSign, String fieldName)
          Tells that a method modifies a field
 void addltRemovedCollection(String className, String methodSign, String fieldName)
          Tells that a method calls remove on a collection field
 void addltReturnedField(String className, String methodSign, String fieldName)
          Tells that a method returns the value of field
 void addltSetField(String className, String methodSign, String fieldName)
          Tells that a method is the setter of a field (sets the field with the value of a parameter)
 ClassInfo getClassInfo(String className)
          Returns the class info of a class
 void setCallSuper(String className, String method)
          Tells that a method calls the super method
 void setClassInfo(String className, ClassInfo classInfo)
           
 void setCollectionIndexArgument(String className, String method, int argument)
          Tells that a method's parameter is used as an index of a collection field
 void setCollectionItemArgument(String className, String method, int argument)
          Tells that a method's parameter is used as an item to be added to a collection field
 void setltIsGetter(String className, String methodSign, boolean isGetter)
          Tells wether a method is a getter of a field or not
 

Method Detail

addltModifiedField

public void addltModifiedField(String className,
                               String methodSign,
                               String fieldName)
Tells that a method modifies a field


addltAccessedField

public void addltAccessedField(String className,
                               String methodSign,
                               String fieldName)
Tells that a method reads a field


addltAddedCollection

public void addltAddedCollection(String className,
                                 String methodSign,
                                 String fieldName)
Tells that a method calls add on a collection field


addltRemovedCollection

public void addltRemovedCollection(String className,
                                   String methodSign,
                                   String fieldName)
Tells that a method calls remove on a collection field


addltModifiedCollection

public void addltModifiedCollection(String className,
                                    String methodSign,
                                    String fieldName)
Tells that a method calls modifies the content of a collection field


addltSetField

public void addltSetField(String className,
                          String methodSign,
                          String fieldName)
Tells that a method is the setter of a field (sets the field with the value of a parameter)


addltReturnedField

public void addltReturnedField(String className,
                               String methodSign,
                               String fieldName)
Tells that a method returns the value of field


setltIsGetter

public void setltIsGetter(String className,
                          String methodSign,
                          boolean isGetter)
Tells wether a method is a getter of a field or not


getClassInfo

public ClassInfo getClassInfo(String className)
Returns the class info of a class


setClassInfo

public void setClassInfo(String className,
                         ClassInfo classInfo)

setCollectionIndexArgument

public void setCollectionIndexArgument(String className,
                                       String method,
                                       int argument)
Tells that a method's parameter is used as an index of a collection field


setCollectionItemArgument

public void setCollectionItemArgument(String className,
                                      String method,
                                      int argument)
Tells that a method's parameter is used as an item to be added to a collection field


setCallSuper

public void setCallSuper(String className,
                         String method)
Tells that a method calls the super method


addInvokedMethod

public void addInvokedMethod(String className,
                             String methodSign,
                             InvokeInfo invokeInfo)
Tells that a method invokes another method