public class AnnotationImpl<O extends JavaSource<O>,T> extends Object implements Annotation<O>
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationImpl.AnnotationType |
| Constructor and Description |
|---|
AnnotationImpl(AnnotationTarget<O,T> parent) |
AnnotationImpl(AnnotationTarget<O,T> parent,
AnnotationImpl.AnnotationType type) |
AnnotationImpl(AnnotationTarget<O,T> parent,
Object internal) |
public AnnotationImpl(AnnotationTarget<O,T> parent)
public AnnotationImpl(AnnotationTarget<O,T> parent, Object internal)
public AnnotationImpl(AnnotationTarget<O,T> parent, AnnotationImpl.AnnotationType type)
public String getName()
getName in interface Annotation<O extends JavaSource<O>>public String getQualifiedName()
getQualifiedName in interface Annotation<O extends JavaSource<O>>public String getLiteralValue() throws IllegalStateException
getLiteralValue in interface Annotation<O extends JavaSource<O>>IllegalStateExceptionpublic String getLiteralValue(String name)
getLiteralValue in interface Annotation<O extends JavaSource<O>>public List<ValuePair> getValues()
getValues in interface Annotation<O extends JavaSource<O>>public String getStringValue() throws IllegalStateException
getStringValue in interface Annotation<O extends JavaSource<O>>IllegalStateExceptionpublic String getStringValue(String name)
getStringValue in interface Annotation<O extends JavaSource<O>>public boolean isMarker()
isMarker in interface Annotation<O extends JavaSource<O>>public boolean isNormal()
isNormal in interface Annotation<O extends JavaSource<O>>public boolean isSingleValue()
isSingleValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> removeAllValues()
removeAllValues in interface Annotation<O extends JavaSource<O>>public Annotation<O> removeValue(String name)
removeValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setName(String className)
setName in interface Annotation<O extends JavaSource<O>>public Annotation<O> setLiteralValue(String value)
setLiteralValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setLiteralValue(String name, String value)
setLiteralValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setStringValue(String value)
setStringValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setStringValue(String name, String value)
setStringValue in interface Annotation<O extends JavaSource<O>>public <E extends Enum<E>> E getEnumValue(Class<E> type)
getEnumValue in interface Annotation<O extends JavaSource<O>>public <E extends Enum<E>> E getEnumValue(Class<E> type, String name)
getEnumValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setEnumValue(String name, Enum<?> value)
setEnumValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setEnumValue(Enum<?>... values)
setEnumValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setEnumArrayValue(Enum<?>... values)
setEnumArrayValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setEnumArrayValue(String name, Enum<?>... values)
setEnumArrayValue in interface Annotation<O extends JavaSource<O>>public Object getInternal()
getInternal in interface Internalprotected void replace(org.eclipse.jdt.core.dom.Annotation oldNode,
org.eclipse.jdt.core.dom.Annotation newNode)
public Annotation<O> setAnnotationValue()
setAnnotationValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setAnnotationValue(String name)
setAnnotationValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> getAnnotationValue()
getAnnotationValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> getAnnotationValue(String name)
getAnnotationValue in interface Annotation<O extends JavaSource<O>>public <E extends Enum<E>> E[] getEnumArrayValue(Class<E> type)
getEnumArrayValue in interface Annotation<O extends JavaSource<O>>public <E extends Enum<E>> E[] getEnumArrayValue(Class<E> type, String name)
getEnumArrayValue in interface Annotation<O extends JavaSource<O>>public Class<?> getClassValue()
getClassValue in interface Annotation<O extends JavaSource<O>>public Class<?> getClassValue(String name)
getClassValue in interface Annotation<O extends JavaSource<O>>public Class<?>[] getClassArrayValue()
getClassArrayValue in interface Annotation<O extends JavaSource<O>>public Class<?>[] getClassArrayValue(String name)
getClassArrayValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setClassValue(String name, Class<?> value)
setClassValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setClassValue(Class<?> value)
setClassValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setClassArrayValue(Class<?>... values)
setClassArrayValue in interface Annotation<O extends JavaSource<O>>public Annotation<O> setClassArrayValue(String name, Class<?>... values)
setClassArrayValue in interface Annotation<O extends JavaSource<O>>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.