public class EnumConstantImpl<O extends JavaSource<O>> extends Object implements EnumConstant<O>
EnumConstant.Body| Constructor and Description |
|---|
EnumConstantImpl(O parent) |
EnumConstantImpl(O parent,
Object internal) |
EnumConstantImpl(O parent,
String declaration) |
| Modifier and Type | Method and Description |
|---|---|
Annotation<O> |
addAnnotation() |
Annotation<O> |
addAnnotation(Class<? extends Annotation> clazz) |
Annotation<O> |
addAnnotation(String className) |
boolean |
equals(Object obj) |
Annotation<O> |
getAnnotation(Class<? extends Annotation> type) |
Annotation<O> |
getAnnotation(String type) |
List<Annotation<O>> |
getAnnotations() |
EnumConstant.Body |
getBody() |
List<String> |
getConstructorArguments() |
Object |
getInternal() |
String |
getName() |
O |
getOrigin() |
boolean |
hasAnnotation(Class<? extends Annotation> type) |
boolean |
hasAnnotation(String type) |
int |
hashCode() |
EnumConstant<O> |
removeAnnotation(Annotation<O> annotation) |
EnumConstant<O> |
removeBody() |
EnumConstant<O> |
setConstructorArguments(String... literalArguments) |
EnumConstant<O> |
setName(String name) |
String |
toString() |
public EnumConstantImpl(O parent)
public String getName()
getName in interface Named<EnumConstant<O extends JavaSource<O>>>public EnumConstant<O> setName(String name)
setName in interface Named<EnumConstant<O extends JavaSource<O>>>public Object getInternal()
getInternal in interface Internalpublic List<String> getConstructorArguments()
getConstructorArguments in interface EnumConstant<O extends JavaSource<O>>public EnumConstant<O> setConstructorArguments(String... literalArguments)
setConstructorArguments in interface EnumConstant<O extends JavaSource<O>>public EnumConstant.Body getBody()
getBody in interface EnumConstant<O extends JavaSource<O>>public EnumConstant<O> removeBody()
removeBody in interface EnumConstant<O extends JavaSource<O>>public Annotation<O> addAnnotation()
addAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public Annotation<O> addAnnotation(Class<? extends Annotation> clazz)
addAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public Annotation<O> addAnnotation(String className)
addAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public List<Annotation<O>> getAnnotations()
getAnnotations in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public boolean hasAnnotation(Class<? extends Annotation> type)
hasAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public boolean hasAnnotation(String type)
hasAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public EnumConstant<O> removeAnnotation(Annotation<O> annotation)
removeAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public Annotation<O> getAnnotation(Class<? extends Annotation> type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>public Annotation<O> getAnnotation(String type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>,EnumConstant<O extends JavaSource<O>>>Copyright © 2014 JBoss by Red Hat. All Rights Reserved.