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 |
|---|---|
CEnumValue |
findById(int id) |
CEnumValue |
findByName(String name) |
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[] |
getValues() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
void |
setValues(List<CEnumValue> values) |
builder, equals, getBuilderSupplier, getType, hashCode, toString, valueForId, valueForNamegetDefaultValue, 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>@Nullable public CEnumValue findById(int id)
findById in class PEnumDescriptor<CEnumValue>@Nullable public CEnumValue findByName(String name)
findByName 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–2018 morimekta.net. All rights reserved.