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

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

Introduction

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

The text is from its open source code.

Method

TypeMirrorasType()
Returns the type of this variable.
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 .

ObjectgetConstantValue()
Returns the value of this variable if this is a final field initialized to a compile-time constant.
ElementgetEnclosingElement()
Returns the enclosing element of this variable.
ElementKindgetKind()
Returns the kind of this element.
SetgetModifiers()
Returns the modifiers of this element, excluding annotations.
NamegetSimpleName()
Returns the simple name of this variable element.
StringtoString()
Returns a string representation of the object.