org.loom.annotation.processor.metadata
Class AnnotationMetadata

java.lang.Object
  extended by org.loom.annotation.processor.metadata.AnnotationMetadata

public class AnnotationMetadata
extends java.lang.Object

Gives fast and easy access to all annotations related to an Action class

Author:
icoloma

Constructor Summary
AnnotationMetadata()
           
 
Method Summary
 void add(AnnotationContainer container, VisitedPath path)
          Add a property/method with the provided VisitedPath
 void add(FilteredAnnotationContainer wrapper)
           
 void addVisitedClass(java.lang.Class<?> clazz)
           
 java.lang.Class<?> getAnnotatedClass()
           
 java.util.Set<FilteredAnnotationContainer> getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
          Return all methods that include the provided annotations
 java.util.Set<FilteredAnnotationContainer> getAnnotatedProperties(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
          Return all properties that include the provided annotations.
 FilteredAnnotationContainer getFilteredAnnotationContainer(java.lang.String propertyPath)
           
 java.util.Set<java.lang.Class<?>> getVisitedClasses()
           
 void setAnnotatedClass(java.lang.Class<?> clazz)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationMetadata

public AnnotationMetadata()
Method Detail

getAnnotatedProperties

public java.util.Set<FilteredAnnotationContainer> getAnnotatedProperties(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Return all properties that include the provided annotations.

Parameters:
annotations - the list of annotations to search for
Returns:
the properties that include any of these annotations, empty set if none

getAnnotatedMethods

public java.util.Set<FilteredAnnotationContainer> getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Return all methods that include the provided annotations

Parameters:
annotations - the list of annotations to search for
Returns:
the methods that include any of these annotations, empty set if none

add

public void add(FilteredAnnotationContainer wrapper)

add

public void add(AnnotationContainer container,
                VisitedPath path)
Add a property/method with the provided VisitedPath

Parameters:
container - the property/method to add
path - the path already visited.

getFilteredAnnotationContainer

public FilteredAnnotationContainer getFilteredAnnotationContainer(java.lang.String propertyPath)
Returns:
the FilteredAnnotationContainer for the provided property path, null if not found

getAnnotatedClass

public java.lang.Class<?> getAnnotatedClass()

setAnnotatedClass

public void setAnnotatedClass(java.lang.Class<?> clazz)

addVisitedClass

public void addVisitedClass(java.lang.Class<?> clazz)

size

public int size()

getVisitedClasses

public java.util.Set<java.lang.Class<?>> getVisitedClasses()


The Loom Framework 1.6-SNAPSHOT.
Licensed under the Apache License, Version 2.0 by Extrema Sistemas de Informacion S.L.