public class CEnumDescriptor extends PEnumDescriptor<CEnum> implements CAnnotatedDescriptor
Also see CEnum.
DEFAULT_FIRST_VALUE| Constructor and Description |
|---|
CEnumDescriptor(String comment,
String packageName,
String name,
Map<String,String> annotations) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAnnotations()
Get set of available annotations.
|
String |
getAnnotationValue(String name)
Get the given annotation value.
|
String |
getComment()
The type comment is the last block of comment written before the type
declaration.
|
CEnum |
getValueById(int id) |
CEnum |
getValueByName(String name) |
CEnum[] |
getValues() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
void |
setValues(List<CEnum> values) |
builder, equals, getFactoryInternal, getType, toStringgetName, getPackageName, getQualifiedNamepublic final String getComment()
CAnnotatedDescriptorgetComment in interface CAnnotatedDescriptorpublic CEnum[] getValues()
getValues in class PEnumDescriptor<CEnum>public CEnum getValueById(int id)
getValueById in class PEnumDescriptor<CEnum>public CEnum getValueByName(String name)
getValueByName in class PEnumDescriptor<CEnum>public Set<String> getAnnotations()
CAnnotatedDescriptorgetAnnotations in interface CAnnotatedDescriptorpublic boolean hasAnnotation(String name)
CAnnotatedDescriptorhasAnnotation in interface CAnnotatedDescriptorname - Name of annotation.public String getAnnotationValue(String name)
CAnnotatedDescriptorgetAnnotationValue in interface CAnnotatedDescriptorname - Name of annotation.Copyright © 2016. All rights reserved.