public class CEnumDescriptor extends PEnumDescriptor<CEnumValue> implements CAnnotatedDescriptor
Also see CEnumValue.
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 |
getDocumentation()
The type comment is the last block of comment written before the type
declaration.
|
CEnumValue |
getValueById(int id) |
CEnumValue |
getValueByName(String name) |
CEnumValue[] |
getValues() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
void |
setValues(List<CEnumValue> values) |
builder, equals, getFactoryInternal, getType, hashCode, toStringgetDefaultValue, getName, getProgramName, getQualifiedNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationValue, hasAnnotationgetQualifiedNamepublic void setValues(@Nonnull List<CEnumValue> values)
public final String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptor@Nonnull public CEnumValue[] getValues()
getValues in class PEnumDescriptor<CEnumValue>public CEnumValue getValueById(int id)
getValueById in class PEnumDescriptor<CEnumValue>public CEnumValue getValueByName(String name)
getValueByName in class PEnumDescriptor<CEnumValue>@Nonnull public Set<String> getAnnotations()
CAnnotatedDescriptorgetAnnotations in interface CAnnotatedDescriptorpublic boolean hasAnnotation(@Nonnull String name)
CAnnotatedDescriptorhasAnnotation in interface CAnnotatedDescriptorname - Name of annotation.public String getAnnotationValue(@Nonnull String name)
CAnnotatedDescriptorgetAnnotationValue in interface CAnnotatedDescriptorname - Name of annotation.Copyright © 2015–2017 morimekta.net. All rights reserved.