public class CEnum extends Object implements PEnumValue<CEnum>, CAnnotatedDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
CEnum.Builder |
| Constructor and Description |
|---|
CEnum(String comment,
int value,
String name,
PEnumDescriptor<CEnum> type,
Map<String,String> annotations) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CEnum other) |
PEnumDescriptor<CEnum> |
descriptor() |
boolean |
equals(Object o) |
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.
|
String |
getName() |
int |
getValue() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
String |
toString() |
public String getComment()
CAnnotatedDescriptorgetComment in interface CAnnotatedDescriptorpublic int getValue()
getValue in interface PEnumValue<CEnum>public String getName()
getName in interface PEnumValue<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.public PEnumDescriptor<CEnum> descriptor()
descriptor in interface PValue<CEnum>public int compareTo(CEnum other)
compareTo in interface Comparable<CEnum>Copyright © 2016. All rights reserved.