M - The message type.public class CField<M extends net.morimekta.providence.PMessage<M>> extends Object implements net.morimekta.providence.descriptor.PField<M>, CAnnotatedDescriptor
| Modifier and Type | Field and Description |
|---|---|
static CField<?>[] |
EMPTY_ARRAY |
| Constructor and Description |
|---|
CField(String docs,
int id,
net.morimekta.providence.descriptor.PRequirement requirement,
String name,
net.morimekta.providence.descriptor.PDescriptorProvider typeProvider,
net.morimekta.providence.descriptor.PStructDescriptorProvider<?> argumentsProvider,
net.morimekta.providence.descriptor.PValueProvider<?> defaultValue,
Map<String,String> annotations,
net.morimekta.providence.descriptor.PDescriptorProvider implementing) |
| 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.
|
net.morimekta.providence.descriptor.PStructDescriptor<?> |
getArgumentsType() |
Object |
getDefaultValue() |
net.morimekta.providence.descriptor.PDescriptor |
getDescriptor() |
String |
getDocumentation()
The type comment is the last block of comment written before the type
declaration.
|
int |
getId() |
String |
getName() |
String |
getPojoName() |
net.morimekta.providence.descriptor.PRequirement |
getRequirement() |
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
boolean |
hasDefaultValue() |
int |
hashCode() |
net.morimekta.providence.descriptor.PMessageDescriptor<M> |
onMessageType() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasIfString, asString, getTypegetAnnotationValue, hasAnnotationpublic static final CField<?>[] EMPTY_ARRAY
public CField(@Nullable String docs, int id, @Nonnull net.morimekta.providence.descriptor.PRequirement requirement, @Nonnull String name, @Nonnull net.morimekta.providence.descriptor.PDescriptorProvider typeProvider, @Nullable net.morimekta.providence.descriptor.PStructDescriptorProvider<?> argumentsProvider, @Nullable net.morimekta.providence.descriptor.PValueProvider<?> defaultValue, @Nullable Map<String,String> annotations, @Nullable net.morimekta.providence.descriptor.PDescriptorProvider implementing)
public String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptorpublic int getId()
@Nonnull public net.morimekta.providence.descriptor.PRequirement getRequirement()
@Nonnull public net.morimekta.providence.descriptor.PDescriptor getDescriptor()
public net.morimekta.providence.descriptor.PStructDescriptor<?> getArgumentsType()
public boolean hasDefaultValue()
public Object getDefaultValue()
@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.@Nonnull public net.morimekta.providence.descriptor.PMessageDescriptor<M> onMessageType()
Copyright © 2015–2020 morimekta.net. All rights reserved.