public class AnnotatedBaseDescr extends BaseDescr implements Externalizable
Constructor and Description |
---|
AnnotatedBaseDescr() |
Modifier and Type | Method and Description |
---|---|
AnnotationDescr |
addAnnotation(AnnotationDescr annotation)
Assigns a new annotation to this type
|
AnnotationDescr |
addAnnotation(String name,
String value)
Assigns a new annotation to this type with the respective name and value
|
AnnotationDescr |
getAnnotation(String name)
Returns the annotation with the given name
|
Set<String> |
getAnnotationNames()
Returns the set of annotation names for this type
|
Map<String,AnnotationDescr> |
getAnnotations() |
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 addAnnotation(String name, String value)
name
- value
- public AnnotationDescr getAnnotation(String name)
name
- public Set<String> getAnnotationNames()
public Map<String,AnnotationDescr> getAnnotations()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.