-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutableElement
getAccessor()
Returns the executable element for the accessor associated with the given record component.Element
getEnclosingElement()
Returns the enclosing element of this record component.Name
getSimpleName()
Returns the simple name of this record component.-
Methods inherited from interface javax.lang.model.element.Element
accept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getKind, getModifiers, hashCode
-
-
-
-
Method Detail
-
getEnclosingElement
Element getEnclosingElement()
Returns the enclosing element of this record component. The enclosing element of a record component is the type declaring the record component.- Specified by:
getEnclosingElement
in interfaceElement
- Returns:
- the enclosing element of this record component
- See Also:
Elements.getPackageOf(javax.lang.model.element.Element)
-
getSimpleName
Name getSimpleName()
Returns the simple name of this record component.The name of each record component must be distinct from the names of all other record components.
- Specified by:
getSimpleName
in interfaceElement
- Returns:
- the simple name of this record component
- See Also:
PackageElement.getSimpleName()
,ExecutableElement.getSimpleName()
,TypeElement.getSimpleName()
,VariableElement.getSimpleName()
,ModuleElement.getSimpleName()
,getSimpleName()
-
getAccessor
ExecutableElement getAccessor()
Returns the executable element for the accessor associated with the given record component.- Returns:
- the record component accessor.
-
-