Example usage for Java javax.lang.model.element TypeElement fields, constructors, methods, implement or subclass
The text is from its open source code.
TypeMirror | asType() Returns the type defined by this type element, returning the prototypical type for an element representing a generic type. |
boolean | equals(Object obj) Returns true if the argument represents the same element as this , or false otherwise. |
A | getAnnotation(Class annotationType) |
List extends AnnotationMirror> | getAnnotationMirrors() To get inherited annotations as well, use Elements#getAllAnnotationMirrors(Element) getAllAnnotationMirrors . |
A[] | getAnnotationsByType(Class annotationType) Returns annotations that are associated with this construct. |
Class> | getClass() Returns the runtime class of this Object . |
List extends Element> | getEnclosedElements() Returns the fields, methods, constructors, and member types that are directly declared in this class or interface. |
Element | getEnclosingElement() Returns the package of a top-level type and returns the immediately lexically enclosing element for a NestingKind#isNested nested type. |
List extends TypeMirror> | getInterfaces() Returns the interface types directly implemented by this class or extended by this interface. |
ElementKind | getKind() Returns the kind of this element. |
Set | getModifiers() Returns the modifiers of this element, excluding annotations. |
NestingKind | getNestingKind() Returns the nesting kind of this type element. |
Name | getQualifiedName() Returns the fully qualified name of this type element. |
Name | getSimpleName() Returns the simple name of this type element. |
TypeMirror | getSuperclass() Returns the direct superclass of this type element. |
List extends TypeParameterElement> | getTypeParameters() Returns the formal type parameters of this type element in declaration order. |
String | toString() Returns a string representation of the object. |