Class Declaration
- java.lang.Object
-
- net.morimekta.providence.reflect.model.Declaration
-
- Direct Known Subclasses:
ConstDeclaration,EnumDeclaration,EnumValueDeclaration,FieldDeclaration,MessageDeclaration,MethodDeclaration,ServiceDeclaration,TypedefDeclaration
public abstract class Declaration extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeclaration(java.lang.String documentation, ThriftToken nameToken, java.util.List<AnnotationDeclaration> annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AnnotationDeclaration>getAnnotations()java.lang.StringgetDocumentation()java.lang.StringgetName()ThriftTokengetNameToken()
-
-
-
Constructor Detail
-
Declaration
protected Declaration(@Nullable java.lang.String documentation, @Nonnull ThriftToken nameToken, @Nullable java.util.List<AnnotationDeclaration> annotations)
-
-
Method Detail
-
getDocumentation
@Nullable public java.lang.String getDocumentation()
- Returns:
- Documentation for the specific declaration.
-
getName
@Nonnull public java.lang.String getName()
- Returns:
- Declared name.
-
getNameToken
@Nonnull public ThriftToken getNameToken()
- Returns:
- The token where the name is declared.
-
getAnnotations
@Nonnull public java.util.List<AnnotationDeclaration> getAnnotations()
- Returns:
- Annotations related to the declaration.
-
-