Class FieldDeclaration


  • public class FieldDeclaration
    extends Declaration
    Represents the declaration of a single field param or thrown exception.
    
     field ::= ({id} ':')? {optionality}? {type} {name} ('=' {defaultValue}) {annotations}?
     
    • Method Detail

      • getId

        public int getId()
      • getRequirement

        @Nonnull
        public net.morimekta.providence.descriptor.PRequirement getRequirement()
      • getRequirementToken

        @Nullable
        public ThriftToken getRequirementToken()
      • getDefaultValue

        public java.lang.String getDefaultValue()
      • getDefaultValueTokens

        @Nullable
        public java.util.List<ThriftToken> getDefaultValueTokens()
      • getType

        @Nonnull
        public java.lang.String getType()
      • getTypeToken

        @Nonnull
        public ThriftToken getTypeToken()
      • getTypeTokens

        @Nonnull
        public java.util.List<ThriftToken> getTypeTokens()