Class ConstDeclaration
- java.lang.Object
-
- net.morimekta.providence.reflect.model.Declaration
-
- net.morimekta.providence.reflect.model.ConstDeclaration
-
public class ConstDeclaration extends Declaration
Declaration of a const value.const ::= 'const' {type} {name} '=' {value} {annotations}?;
-
-
Constructor Summary
Constructors Constructor Description ConstDeclaration(java.lang.String documentation, ThriftToken constToken, ThriftToken name, java.util.List<ThriftToken> typeTokens, java.util.List<ThriftToken> valueTokens, java.util.List<AnnotationDeclaration> annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThriftToken
getConstToken()
java.lang.String
getType()
java.util.List<ThriftToken>
getTypeTokens()
java.lang.String
getValue()
java.util.List<ThriftToken>
getValueTokens()
-
Methods inherited from class net.morimekta.providence.reflect.model.Declaration
getAnnotations, getDocumentation, getName, getNameToken
-
-
-
-
Constructor Detail
-
ConstDeclaration
public ConstDeclaration(@Nullable java.lang.String documentation, @Nonnull ThriftToken constToken, @Nonnull ThriftToken name, @Nonnull java.util.List<ThriftToken> typeTokens, java.util.List<ThriftToken> valueTokens, java.util.List<AnnotationDeclaration> annotations)
-
-
Method Detail
-
getConstToken
public ThriftToken getConstToken()
-
getType
public java.lang.String getType()
-
getTypeTokens
public java.util.List<ThriftToken> getTypeTokens()
-
getValue
public java.lang.String getValue()
-
getValueTokens
public java.util.List<ThriftToken> getValueTokens()
-
-