public class ScannedClass
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ScannedAnnotation> |
descriptions
All found annotations .
|
private java.lang.Class<?> |
scannedClass
The scanned class.
|
| Constructor and Description |
|---|
ScannedClass(java.util.List<ScannedAnnotation> desc,
java.lang.Class<?> scannedClass)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private final java.util.List<ScannedAnnotation> descriptions
private final java.lang.Class<?> scannedClass
public ScannedClass(java.util.List<ScannedAnnotation> desc, java.lang.Class<?> scannedClass)
desc - List of found annotations.scannedClass - The scanned class.public java.lang.Class<?> getScannedClass()
public void processed(ScannedAnnotation desc)
desc - The annotation.public void processed(java.util.Collection<? extends ScannedAnnotation> desc)
desc - The annotation.public java.util.List<ClassAnnotation> getClassAnnotations(java.lang.String name)
name - The name of the class annotation or null
for all class annotations.public java.util.List<FieldAnnotation> getFieldAnnotations(java.lang.String name)
name - The name of the field annotation or null
for all field annotations.public java.util.List<MethodAnnotation> getMethodAnnotations(java.lang.String name)
name - The name of the method annotation or null
for all method annotations.