public class CField extends Object implements PField, CAnnotatedDescriptor
| Constructor and Description |
|---|
CField(String comment,
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(String comment, int key, PRequirement requirement, String name, PDescriptorProvider typeProvider, PValueProvider defaultValue, Map<String,String> annotations)
public String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptorpublic PRequirement getRequirement()
getRequirement in interface PFieldpublic PDescriptor getDescriptor()
getDescriptor in interface PFieldpublic boolean hasDefaultValue()
hasDefaultValue in interface PFieldpublic Object getDefaultValue()
getDefaultValue in interface PFieldpublic 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 © 2015–2017 morimekta.net. All rights reserved.