- All Known Implementing Classes:
DefaultTypedElementName
public interface TypedElementName
Provides a way to describe method, field, or annotation attribute.
-
Method Summary
Modifier and TypeMethodDescriptionThe list of known annotations for this element.Returns the component type names describing the element.The default value assigned to the element, represented as a string.The element (e.g., method, field, etc) name.The list of known annotations on the type name referenced bytypeName().The kind of element (e.g., method, field, etc).Element modifiers.typeName()The type name for the element (e.g., java.util.List).
-
Method Details
-
typeName
TypeName typeName()The type name for the element (e.g., java.util.List). If the element is a method, then this is the return type of the method.- Returns:
- the type name of the element
-
elementName
String elementName()The element (e.g., method, field, etc) name.- Returns:
- the name of the element
-
elementTypeKind
String elementTypeKind()The kind of element (e.g., method, field, etc).- Returns:
- the element kind
- See Also:
-
defaultValue
The default value assigned to the element, represented as a string.- Returns:
- the default value as a string
-
annotations
List<AnnotationAndValue> annotations()The list of known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build.- Returns:
- the list of annotations on this element
-
elementTypeAnnotations
List<AnnotationAndValue> elementTypeAnnotations()The list of known annotations on the type name referenced bytypeName().- Returns:
- the list of annotations on this element's (return) type.
-
componentTypeNames
Returns the component type names describing the element.- Returns:
- the component type names of the element
-
modifierNames
Element modifiers.- Returns:
- element modifiers
- See Also:
-