ataspectj.instrumentation
Class AnnotationViewer

java.lang.Object
  extended by ataspectj.AtAspectjComponent
      extended by ataspectj.instrumentation.AnnotationViewer

public class AnnotationViewer
extends AtAspectjComponent

This class is used to retrieve all the Annotated Blocks contained into a Java Class.

Author:
Marco Poggi

Field Summary
 
Fields inherited from class ataspectj.AtAspectjComponent
barrier, CODEPRINT, DEBUG, VERBOSE
 
Constructor Summary
AnnotationViewer()
           
 
Method Summary
static void getAllAnnotatedBlock(java.lang.Class cls, java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> allAnnotatedBlocks)
          Gets all the Annotated Block of the given Class, the method search into Constructors and Methods.
static void getAllAnnotatedBlock(java.lang.reflect.Constructor m, java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> toret)
          Gets all the Annotated Block included into the given Constructor.
static void getAllAnnotatedBlock(java.lang.reflect.Method m, java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> toret)
          Gets all the Annotated Block included into the given Method.
static void getAllAnnotatedExpression(java.lang.Class cls, java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> allAnnotatedExprs)
          Gets all the Annotated expressions of the given Class, the method search into Constructors and Methods.
static void getAllAnnotatedExpression(java.lang.reflect.Constructor m, java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> toret)
          Gets all the Annotated expressions included into the given Constructor.
static void getAllAnnotatedExpression(java.lang.reflect.Method m, java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> toret)
          Gets all the Annotated expressions included into the given Method.
protected static void getAnnotatedBlock(atjava.lang.annotation.AnnotatedBlock ab, java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> tosee, java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> toret)
          Retrieve recursivelly all the internal Annotated Blocks.
protected static void getAnnotatedExpression(atjava.lang.annotation.AnnotatedExpression ab, java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> tosee, java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> toret)
          Retrieve recursivelly all the internal Annotated expressions.
 
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

AnnotationViewer

public AnnotationViewer()
Method Detail

getAllAnnotatedBlock

public static void getAllAnnotatedBlock(java.lang.Class cls,
                                        java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> allAnnotatedBlocks)
Gets all the Annotated Block of the given Class, the method search into Constructors and Methods.

Parameters:
cls - the Class where search annotated block.
allAnnotatedBlocks - the list to fill with the annotated blocks found.

getAllAnnotatedBlock

public static void getAllAnnotatedBlock(java.lang.reflect.Method m,
                                        java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> toret)
Gets all the Annotated Block included into the given Method.

Parameters:
m - the Method where search annotated block.
toret - the list to fill with the annotated blocks found.

getAllAnnotatedBlock

public static void getAllAnnotatedBlock(java.lang.reflect.Constructor m,
                                        java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> toret)
Gets all the Annotated Block included into the given Constructor.

Parameters:
m - the Constructor where search annotated block.
toret - the list to fill with the annotated blocks found.

getAnnotatedBlock

protected static void getAnnotatedBlock(atjava.lang.annotation.AnnotatedBlock ab,
                                        java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> tosee,
                                        java.util.LinkedList<atjava.lang.annotation.AnnotatedBlock> toret)
Retrieve recursivelly all the internal Annotated Blocks.

Parameters:
ab - the Annotated Block where search interanl Annotated Blocks.
tosee - it contain the list of annotated still to investigate.
toret - the list to fill with the annotated blocks found.

getAllAnnotatedExpression

public static void getAllAnnotatedExpression(java.lang.Class cls,
                                             java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> allAnnotatedExprs)
Gets all the Annotated expressions of the given Class, the method search into Constructors and Methods.

Parameters:
cls - the Class where search annotated expressions.
allAnnotatedExprs - the list to fill with the annotated expressions found.

getAllAnnotatedExpression

public static void getAllAnnotatedExpression(java.lang.reflect.Method m,
                                             java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> toret)
Gets all the Annotated expressions included into the given Method.

Parameters:
m - the Method where search annotated expressions.
toret - the list to fill with the annotated expressions found.

getAllAnnotatedExpression

public static void getAllAnnotatedExpression(java.lang.reflect.Constructor m,
                                             java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> toret)
Gets all the Annotated expressions included into the given Constructor.

Parameters:
m - the Constructor where search annotated expressions.
toret - the list to fill with the annotated expressions found.

getAnnotatedExpression

protected static void getAnnotatedExpression(atjava.lang.annotation.AnnotatedExpression ab,
                                             java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> tosee,
                                             java.util.LinkedList<atjava.lang.annotation.AnnotatedExpression> toret)
Retrieve recursivelly all the internal Annotated expressions.

Parameters:
ab - the Annotated expressions where search interanl Annotated expressions.
tosee - it contain the list of annotated still to investigate.
toret - the list to fill with the annotated expressions found.