Element instances.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ExecutableElement | |
| public static PackageElement | |
| public static TypeElement | |
| public static TypeParameterElement | |
| public static VariableElement | |
| public static ImmutableSet | getAllMethods(TypeElement
the type whose own and inherited methods are to be returned type, Types typeUtils, Elements elementUtils)Returns the set of all methods from |
| private static ImmutableSet | |
| private static void | |
| public static Optional | getAnnotationMirror(Element element, Class<? extends Annotation> annotationClass)
Returns an |
| public static Optional | getAnnotationMirror(Element element, TypeElement annotation)
Returns an |
| public static Optional | getAnnotationMirror(Element element, String annotationName)
Returns an |
| public static ImmutableSet | getLocalAndInheritedMethods(TypeElement
the type whose own and inherited methods are to be returned type, Elements elementUtils)
Deprecated
The method
Returns the set of all non-private, non-static methods from getLocalAndInheritedMethods(TypeElement, Types, Elements)
has better consistency between Java compilers.
type, including methods
that it inherits from its ancestors.
|
| public static ImmutableSet | getLocalAndInheritedMethods(TypeElement
the type whose own and inherited methods are to be returned type, Types typeUtils, Elements elementUtils)Returns the set of all non-private, non-static methods from |
| private static ImmutableSet | |
| public static PackageElement | getPackage(Element element)
An alternate implementation of |
| public static <T extends Element> Predicate | hasModifiers(Modifier... modifiers)
Returns a |
| public static <T extends Element> Predicate | hasModifiers(final Set<Modifier> modifiers)
Returns a |
| public static boolean | isAnnotationPresent(Element element, Class<? extends Annotation> annotationClass)
Returns |
| public static boolean | isAnnotationPresent(Element element, TypeElement annotation)
Returns |
| public static boolean | isAnnotationPresent(Element element, String annotationName)
Returns |
| public static boolean | |
| pack-priv static boolean | |
| public static boolean | Returns: true if and only if the first method overrides the secondthe first method, possible overrider overrider, ExecutableElement the second method, possibly being overridden overridden, TypeElement the type of which the first method is a member type, Types typeUtils)Tests whether one method, as a member of a given type, overrides another method. |