Interface AnnotationReference
public interface AnnotationReference
Represents an annotation reference. A reference is a way for an
Annotation
to
refer to an external entity, such as a document, anchor, or permalink. You can find a full list and descriptions of
annotation reference types and fields in
the Developer Portal.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Creates an instance ofAnnotationReference
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the type of this annotation reference.<T> T
getValue
(String fieldName, AnnotationReferenceValueType<T> valueType) Returns the value of the field with the given name and type.
-
Method Details
-
getTypeName
String getTypeName()Returns the name of the type of this annotation reference.- Returns:
- the name of the type of this annotation reference
-
getValue
Returns the value of the field with the given name and type.- Type Parameters:
T
- the Java class that backs the value type- Parameters:
fieldName
- the name of the annotation reference fieldvalueType
- the value type of the field- Returns:
- the value of the field
-