Interface CAnnotatedDescriptor
-
- All Known Subinterfaces:
CMessageDescriptor
- All Known Implementing Classes:
CConst,CEnumDescriptor,CEnumValue,CExceptionDescriptor,CField,CService,CServiceMethod,CStructDescriptor,CUnionDescriptor
public interface CAnnotatedDescriptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Set<java.lang.String>getAnnotations()Get set of available annotations.java.lang.StringgetAnnotationValue(java.lang.String name)Get the given annotation value.default java.lang.StringgetAnnotationValue(net.morimekta.providence.util.ThriftAnnotation annotation)Get the given annotation value.java.lang.StringgetDocumentation()The type comment is the last block of comment written before the type declaration.booleanhasAnnotation(java.lang.String name)Get the given annotation value.default booleanhasAnnotation(net.morimekta.providence.util.ThriftAnnotation annotation)Get the given annotation value.
-
-
-
Method Detail
-
getDocumentation
@Nullable java.lang.String getDocumentation()
The type comment is the last block of comment written before the type declaration. Comments on the same line, after the declaration is ignored.- Returns:
- The comment string containing all formatting (not including the comment delimiter and the leading space.
-
getAnnotations
@Nonnull java.util.Set<java.lang.String> getAnnotations()
Get set of available annotations.- Returns:
- The annotation set.
-
hasAnnotation
boolean hasAnnotation(@Nonnull java.lang.String name)Get the given annotation value.- Parameters:
name- Name of annotation.- Returns:
- If the annotation is present.
-
getAnnotationValue
@Nullable java.lang.String getAnnotationValue(@Nonnull java.lang.String name)Get the given annotation value.- Parameters:
name- Name of annotation.- Returns:
- The annotation value or null.
-
hasAnnotation
default boolean hasAnnotation(@Nonnull net.morimekta.providence.util.ThriftAnnotation annotation)Get the given annotation value.- Parameters:
annotation- The annotation.- Returns:
- If the annotation is present.
-
getAnnotationValue
@Nullable default java.lang.String getAnnotationValue(@Nonnull net.morimekta.providence.util.ThriftAnnotation annotation)Get the given annotation value.- Parameters:
annotation- The annotation.- Returns:
- The annotation value or null.
-
-