Java javax.lang.model.element Element fields, constructors, methods, implement or subclass

Example usage for Java javax.lang.model.element Element fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.lang.model.element Element.

The text is from its open source code.

Implementation

javax.lang.model.element.Element has the following implementations.
Click this link to see all its implementation.

Method

Raccept(ElementVisitor v, P p)
Applies a visitor to this element.
TypeMirrorasType()
Returns the type defined by this element.
booleanequals(Object obj)
Returns true if the argument represents the same element as this , or false otherwise.
AgetAnnotation(Class annotationType)
ListgetAnnotationMirrors()

To get inherited annotations as well, use Elements#getAllAnnotationMirrors(Element) getAllAnnotationMirrors .

ClassgetClass()
Returns the runtime class of this Object .
ListgetEnclosedElements()
Returns the elements that are, loosely speaking, directly enclosed by this element.
ElementgetEnclosingElement()
Returns the innermost element within which this element is, loosely speaking, enclosed.
ElementKindgetKind()
Returns the kind of this element.
SetgetModifiers()
Returns the modifiers of this element, excluding annotations.
NamegetSimpleName()
Returns the simple (unqualified) name of this element.
StringtoString()
Returns a string representation of the object.