public class FieldDeclaration extends Declaration
field ::= ({id} ':')? {optionality}? {type} {name} ('=' {defaultValue}) {annotations}?
| Constructor and Description |
|---|
FieldDeclaration(String documentation,
ThriftToken id,
int fieldId,
ThriftToken requirement,
ThriftToken name,
List<ThriftToken> type,
List<ThriftToken> defaultValue,
List<AnnotationDeclaration> annotations) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
List<ThriftToken> |
getDefaultValueTokens() |
int |
getId() |
ThriftToken |
getIdToken() |
net.morimekta.providence.descriptor.PRequirement |
getRequirement() |
ThriftToken |
getRequirementToken() |
String |
getType() |
ThriftToken |
getTypeToken() |
List<ThriftToken> |
getTypeTokens() |
getAnnotations, getDocumentation, getName, getNameTokenpublic FieldDeclaration(@Nullable String documentation, @Nullable ThriftToken id, int fieldId, @Nullable ThriftToken requirement, @Nonnull ThriftToken name, @Nonnull List<ThriftToken> type, @Nullable List<ThriftToken> defaultValue, @Nullable List<AnnotationDeclaration> annotations)
public int getId()
public ThriftToken getIdToken()
@Nonnull public net.morimekta.providence.descriptor.PRequirement getRequirement()
@Nullable public ThriftToken getRequirementToken()
public String getDefaultValue()
@Nullable public List<ThriftToken> getDefaultValueTokens()
@Nonnull public ThriftToken getTypeToken()
@Nonnull public List<ThriftToken> getTypeTokens()
Copyright © 2015–2020 morimekta.net. All rights reserved.