|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object checkers.util.ElementUtils
@DefaultQualifier(value="checkers.nullness.quals.NonNull") public class ElementUtils
A Utility class for analyzing Element
s
Method Summary | |
---|---|
static TypeElement |
enclosingClass(Element elem)
Returns the innermost type element enclosing the given element |
static Name |
getQualifiedClassName(Element element)
Returns the qualified name of the inner most class enclosing the provided Element |
static TypeMirror |
getType(Element element)
Returns the TypeMirror for usage of Element as a value. |
static boolean |
isFinal(Element element)
Returns true if the element is a final element: a final field, final method, or final class |
static boolean |
isObject(TypeElement element)
Check if the element is an element for 'java.lang.Object' |
static boolean |
isStatic(Element element)
Returns true if the element is a static element: whether it is a static field, static method, or static class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TypeElement enclosingClass(Element elem)
elem
- the enclosed element of a class
public static boolean isStatic(Element element)
element
-
public static boolean isFinal(Element element)
element
-
public static TypeMirror getType(Element element)
TypeMirror
for usage of Element as a value. It
returns the return type of a method element, the class type of a
constructor, or simply the type mirror of the element itself.
element
-
@Nullable public static Name getQualifiedClassName(Element element)
Element
element
- an element enclosed by a class, or a
TypeElement
Name
of the innermost class
enclosing the elementpublic static boolean isObject(TypeElement element)
element
- the type element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |