java.lang.Object
org.microbean.lang.AnnotatedConstruct
org.microbean.lang.element.Element
- All Implemented Interfaces:
AnnotatedConstruct,Element,Encloseable,Encloser
- Direct Known Subclasses:
ModuleElement,PackageElement,Parameterizable,RecordComponentElement,TypeParameterElement,VariableElement
public abstract sealed class Element
extends AnnotatedConstruct
implements Element, Encloseable, Encloser
permits ModuleElement, PackageElement, Parameterizable, RecordComponentElement, TypeParameterElement, VariableElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(ElementVisitor<R, P> v, P p) <E extends Element & Encloseable>
voidaddEnclosedElement(E e) final <E extends Element & Encloseable>
voidaddEnclosedElements(Iterable<? extends E> es) final booleanaddModifier(Modifier modifier) final voidaddModifiers(Iterable<? extends Modifier> modifiers) final TypeMirrorasType()static final booleancanEnclose(ElementKind k1, ElementKind k2) final ElementKindgetKind()final Namebooleanfinal voidvoidsetEnclosingElement(Element enclosingElement) final voidsetSimpleName(String simpleName) final voidsetSimpleName(Name simpleName) final voidsetType(TypeMirror type) toString()protected <E extends Element>
Eprotected ElementKindvalidateKind(ElementKind kind) protected ModifiervalidateModifier(Modifier modifier) protected Nameprotected TypeMirrorvalidateType(TypeMirror type) Methods inherited from class org.microbean.lang.AnnotatedConstruct
addAnnotationMirror, addAnnotationMirrors, getAnnotation, getAnnotationMirrors, getAnnotationsByType, validateAnnotationMirrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.lang.model.element.Element
equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, hashCode
-
Constructor Details
-
Element
-
-
Method Details
-
accept
-
asType
-
setType
-
validateType
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement
-
setEnclosedElementsGenerator
-
addEnclosedElement
- Specified by:
addEnclosedElementin interfaceEncloser
-
addEnclosedElements
-
validateEnclosedElement
-
getKind
-
validateKind
-
getModifiers
- Specified by:
getModifiersin interfaceElement
-
addModifier
-
addModifiers
-
validateModifier
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement
-
setSimpleName
-
setSimpleName
-
validateSimpleName
-
isUnnamed
public boolean isUnnamed() -
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement
-
setEnclosingElement
Description copied from interface:Encloseable- Specified by:
setEnclosingElementin interfaceEncloseable- Parameters:
enclosingElement- theElementthat will enclose thisEncloseable; may benull
-
toString
-
canEnclose
-