Interface TypedElementName

All Known Implementing Classes:
DefaultTypedElementName

public interface TypedElementName
Provides a way to describe method, field, or annotation attribute.
  • 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

      Optional<String> 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 by typeName().
      Returns:
      the list of annotations on this element's (return) type.
    • componentTypeNames

      List<TypeName> componentTypeNames()
      Returns the component type names describing the element.
      Returns:
      the component type names of the element
    • modifierNames

      Set<String> modifierNames()
      Element modifiers.
      Returns:
      element modifiers
      See Also: