public class CField extends Object implements PField, CAnnotatedDescriptor
| Constructor and Description |
|---|
CField(String docs,
int key,
PRequirement requirement,
String name,
PDescriptorProvider typeProvider,
PValueProvider defaultValue,
Map<String,String> annotations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Set<String> |
getAnnotations()
Get set of available annotations.
|
String |
getAnnotationValue(String name)
Get the given annotation value.
|
Object |
getDefaultValue() |
PDescriptor |
getDescriptor() |
String |
getDocumentation()
The type comment is the last block of comment written before the type
declaration.
|
int |
getKey() |
String |
getName() |
PRequirement |
getRequirement() |
PType |
getType() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
boolean |
hasDefaultValue() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationValue, hasAnnotationpublic CField(@Nullable String docs, int key, @Nonnull PRequirement requirement, @Nonnull String name, @Nonnull PDescriptorProvider typeProvider, @Nullable PValueProvider defaultValue, @Nullable Map<String,String> annotations)
public String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptor@Nonnull public PRequirement getRequirement()
getRequirement in interface PField@Nonnull public PDescriptor getDescriptor()
getDescriptor in interface PFieldpublic boolean hasDefaultValue()
hasDefaultValue in interface PFieldpublic Object getDefaultValue()
getDefaultValue in interface PField@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.