public class AnnotationImp extends Object implements IAnnotationReader, IAnnotationPropertyWriter, IAnnotationLocationWriter, Cloneable
| Constructor and Description |
|---|
AnnotationImp(Class<? extends Annotation> annotation)
Constructor to receive the annotation.
|
AnnotationImp(IAnnotationReader reader)
Constructor to receive the reader.
|
| Modifier and Type | Method and Description |
|---|---|
IAnnotationWriter |
and()
This method allows you to add a new annotation fluently to the same element that you are now defining.
|
Class<? extends Annotation> |
annotation()
Inform the annotation that is associated to this wrapper.
|
Object |
clone() |
boolean |
equals(Object obj) |
int |
hashCode() |
LocationEnum |
location()
Inform the location where the annotation is to be.
|
IAnnotationPropertyWriter |
location(LocationEnum location)
Define the location where the annotation is to be.
|
Map<String,Object> |
properties()
List all properties and values that are in an annotation.
|
IAnnotationPropertyWriter |
property(Object value)
Define the value to the property named as "value".
|
IAnnotationPropertyWriter |
property(String property,
Object value)
Define the value to the respective property
|
void |
setAnd(IAnnotationWriter writer)
Inform the element that will receive more annotation fluently.
|
String |
toString() |
public AnnotationImp(Class<? extends Annotation> annotation)
annotation - to bindpublic AnnotationImp(IAnnotationReader reader)
reader - to bindpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic IAnnotationPropertyWriter property(Object value)
IAnnotationPropertyWriterproperty in interface IAnnotationPropertyWritervalue - to setpublic IAnnotationPropertyWriter property(String property, Object value)
IAnnotationPropertyWriterproperty in interface IAnnotationPropertyWriterproperty - the name of the property to setvalue - the value of the property setpublic Class<? extends Annotation> annotation()
IAnnotationReaderannotation in interface IAnnotationReaderpublic Map<String,Object> properties()
IAnnotationPropertyReaderproperties in interface IAnnotationPropertyReaderpublic IAnnotationWriter and()
IAnnotationPropertyWriterand in interface IAnnotationPropertyWriterpublic void setAnd(IAnnotationWriter writer)
IAnnotationPropertyReadersetAnd in interface IAnnotationPropertyReaderwriter - to setpublic IAnnotationPropertyWriter location(LocationEnum location)
IAnnotationLocationWriterlocation in interface IAnnotationLocationWriterlocation - of annotationpublic LocationEnum location()
IAnnotationLocationReaderlocation in interface IAnnotationLocationReaderCopyright © 2018 Esfinge Framework. All rights reserved.