Example usage for Java javax.lang.model.element VariableElement fields, constructors, methods, implement or subclass
The text is from its open source code.
TypeMirror | asType() Returns the type of this variable. |
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 . |
Object | getConstantValue() Returns the value of this variable if this is a final field initialized to a compile-time constant. |
Element | getEnclosingElement() Returns the enclosing element of this variable. |
ElementKind | getKind() Returns the kind of this element. |
Set | getModifiers() Returns the modifiers of this element, excluding annotations. |
Name | getSimpleName() Returns the simple name of this variable element. |
String | toString() Returns a string representation of the object. |