public class AnnotatedBaseDescr extends BaseDescr implements Annotated, Externalizable
Annotated.ClassAdapter
Constructor and Description |
---|
AnnotatedBaseDescr() |
Modifier and Type | Method and Description |
---|---|
AnnotationDescr |
addAnnotation(AnnotationDescr annotation)
Assigns a new annotation to this type
|
protected AnnotationDescr |
addAnnotation(String name,
AnnotationDescr annotation) |
AnnotationDescr |
addAnnotation(String name,
String value)
Assigns a new annotation to this type with the respective name and value
|
AnnotationDescr |
addQualifiedAnnotation(AnnotationDescr annotation) |
AnnotationDescr |
getAnnotation(Class<? extends Annotation> annotationClass) |
AnnotationDescr |
getAnnotation(String name)
Returns the annotation with the given name
|
Set<String> |
getAnnotationNames()
Returns the set of annotation names for this type
|
Collection<AnnotationDescr> |
getAnnotations() |
<A extends Annotation> |
getTypedAnnotation(Class<A> annotationClass) |
boolean |
hasAnnotation(Class<? extends Annotation> annotationClass) |
void |
indexByFQN(boolean isStrict) |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BaseDescr
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseDescr
IOException
public AnnotationDescr addAnnotation(AnnotationDescr annotation)
annotation
- public AnnotationDescr addQualifiedAnnotation(AnnotationDescr annotation)
protected AnnotationDescr addAnnotation(String name, AnnotationDescr annotation)
public AnnotationDescr addAnnotation(String name, String value)
name
- value
- public AnnotationDescr getAnnotation(String name)
name
- public AnnotationDescr getAnnotation(Class<? extends Annotation> annotationClass)
public <A extends Annotation> A getTypedAnnotation(Class<A> annotationClass)
getTypedAnnotation
in interface Annotated
public boolean hasAnnotation(Class<? extends Annotation> annotationClass)
hasAnnotation
in interface Annotated
public Set<String> getAnnotationNames()
public Collection<AnnotationDescr> getAnnotations()
public void indexByFQN(boolean isStrict)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.