org.apache.felix.scrplugin.annotations
Class ScannedClass

java.lang.Object
  extended by org.apache.felix.scrplugin.annotations.ScannedClass

public class ScannedClass
extends java.lang.Object

A scanned class contains all scanned information like the found annotations.


Constructor Summary
ScannedClass(java.util.List<ScannedAnnotation> desc, java.lang.Class<?> scannedClass)
          Constructor
 
Method Summary
 java.util.List<ClassAnnotation> getClassAnnotations(java.lang.String name)
          Get all class annotations
 java.util.List<FieldAnnotation> getFieldAnnotations(java.lang.String name)
          Get all field annotations
 java.util.List<MethodAnnotation> getMethodAnnotations(java.lang.String name)
          Get all method annotations
 java.lang.Class<?> getScannedClass()
          Get the scanned class.
 void processed(java.util.Collection<? extends ScannedAnnotation> desc)
          Mark several annotations as processed.
 void processed(ScannedAnnotation desc)
          Mark an annotation as processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannedClass

public ScannedClass(java.util.List<ScannedAnnotation> desc,
                    java.lang.Class<?> scannedClass)
Constructor

Parameters:
desc - List of found annotations.
scannedClass - The scanned class.
Method Detail

getScannedClass

public java.lang.Class<?> getScannedClass()
Get the scanned class.

Returns:
The scanned class.

processed

public void processed(ScannedAnnotation desc)
Mark an annotation as processed. A processed annotation will be removed from the list of annotations.

Parameters:
desc - The annotation.

processed

public void processed(java.util.Collection<? extends ScannedAnnotation> desc)
Mark several annotations as processed. A processed annotation will be removed from the list of annotations.

Parameters:
desc - The annotation.

getClassAnnotations

public java.util.List<ClassAnnotation> getClassAnnotations(java.lang.String name)
Get all class annotations

Parameters:
name - The name of the class annotation or null for all class annotations.
Returns:
A list of matching annotations or an empty list.

getFieldAnnotations

public java.util.List<FieldAnnotation> getFieldAnnotations(java.lang.String name)
Get all field annotations

Parameters:
name - The name of the field annotation or null for all field annotations.
Returns:
A list of matching annotations or an empty list.

getMethodAnnotations

public java.util.List<MethodAnnotation> getMethodAnnotations(java.lang.String name)
Get all method annotations

Parameters:
name - The name of the method annotation or null for all method annotations.
Returns:
A list of matching annotations or an empty list.


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.