Class UMLElement
java.lang.Object
org.tquadrat.foundation.javadoc.umlgraph.UMLElement
- All Implemented Interfaces:
AnnotatedConstruct, Element
- Direct Known Subclasses:
UMLMemberElement, UMLTypeElement
@ClassVersion(sourceVersion="$Id: UMLElement.java 1282 2026-09-08 23:52:53Z tquadrat $")
@API(status=INTERNAL,
since="0.0.5")
public abstract sealed class UMLElement
extends Object
implements Element
permits UMLMemberElement, UMLTypeElement
The wrapper for an
Element
instance, enhanced by information needed for the creation of the UML graph.- Author:
- Thomas Thrien - thomas.thrien@tquadrat.org
- Version:
- $Id: UMLElement.java 1282 2026-09-08 23:52:53Z tquadrat $
- Since:
- 0.0.5
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUMLElement(Element element) Creates a newUMLElementinstance. -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,P> R accept(ElementVisitor<R, P> visitor, P payload) final TypeMirrorasType()final <A extends Annotation>
AgetAnnotation(Class<A> annotationType) final List<? extends AnnotationMirror> final <A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationType) final ElementKindgetKind()final Namestatic final booleanTests whether the given element is part of an API or not.static final booleanisAttribute(Element element) Tests whether the given element represents a field.static final booleanisConstructor(Element element) Tests whether the given element represents a constructor.static final booleanTests whether the given element represents a method.
-
Field Details
-
m_Wrapped
-
-
Constructor Details
-
UMLElement
Creates a newUMLElementinstance.- Parameters:
element- The wrapped element.
-
-
Method Details
-
accept
-
asType
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedConstruct- Specified by:
getAnnotationin interfaceElement
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceAnnotatedConstruct- Specified by:
getAnnotationsByTypein interfaceElement
-
getAnnotationMirrors
- Specified by:
getAnnotationMirrorsin interfaceAnnotatedConstruct- Specified by:
getAnnotationMirrorsin interfaceElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement
-
getKind
-
getModifiers
- Specified by:
getModifiersin interfaceElement
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement
-
isAPI
Tests whether the given element is part of an API or not. The consideration is, that only element that are eitherpublicorprotectedare part of the API of a class.- Parameters:
element- The element to test.- Returns:
trueif the element is part of the API,falseotherwise.
-
isAttribute
Tests whether the given element represents a field.- Parameters:
element- The element to test.- Returns:
trueif the element represents a field (but not an enum value constant),falseotherwise.
-
isConstructor
Tests whether the given element represents a constructor.- Parameters:
element- The element to test.- Returns:
trueif the element represents a constructor,falseotherwise.
-
isMethod
-
