javax.lang.model.element |
|
Java Source File Name | Type | Comment |
AnnotationMirror.java | Interface | Represents an annotation. |
AnnotationValue.java | Interface | Represents a value of an annotation type element.
A value is of one of the following types:
- a wrapper class (such as
Integer ) for a primitive type
-
String
-
TypeMirror
-
VariableElement (representing an enum constant)
-
AnnotationMirror
-
List extends AnnotationValue> (representing the elements, in declared order, if the value is an array)
author: Joseph D. |
AnnotationValueVisitor.java | Interface | A visitor of the values of annotation type elements, using a
variant of the visitor design pattern. |
Element.java | Interface | Represents a program element such as a package, class, or method.
Each element represents a static, language-level construct
(and not, for example, a runtime construct of the virtual machine).
Elements should be compared using the
Element.equals(Object) method. |
ElementKind.java | enum | The
kind of an element.
Note that it is possible additional element kinds will be added
to accommodate new, currently unknown, language structures added to
future versions of the Java™ programming language.
author: Joseph D. |
ElementVisitor.java | Interface | A visitor of program elements, in the style of the visitor design
pattern. |
ExecutableElement.java | Interface | Represents a method, constructor, or initializer (static or
instance) of a class or interface, including annotation type
elements.
author: Joseph D. |
Modifier.java | enum | Represents a modifier on a program element such
as a class, method, or field.
Not all modifiers are applicable to all kinds of elements.
When two or more modifiers appear in the source code of an element
then it is customary, though not required, that they appear in the same
order as the constants listed in the detail section below.
Note that it is possible additional modifiers will be added in
future versions of the platform.
author: Joseph D. |
Name.java | Interface | An immutable sequence of characters. |
NestingKind.java | enum | The nesting kind of a type element.
Type elements come in four varieties:
top-level, member, local, and anonymous.
Nesting kind is a non-standard term used here to denote this
classification.
Note that it is possible additional nesting kinds will be added
in future versions of the platform.
Example: The classes below are annotated with their nesting kind.
import java.lang.annotation.*;
import static java.lang.annotation.RetentionPolicy.*;
import javax.lang.model.element.*;
import static javax.lang.model.element.NestingKind.*;
@Nesting(TOP_LEVEL)
public class NestingExamples {
@Nesting(MEMBER)
static class MemberClass1{}
@Nesting(MEMBER)
class MemberClass2{}
public static void main(String...
|
package-info.java | | |
PackageElement.java | Interface | Represents a package program element. |
TypeElement.java | Interface | Represents a class or interface program element. |
TypeParameterElement.java | Interface | Represents a formal type parameter of a generic class, interface, method,
or constructor element.
A type parameter declares a
TypeVariable .
author: Joseph D. |
UnknownAnnotationValueException.java | Class | Indicates that an unknown kind of annotation value was encountered.
This can occur if the language evolves and new kinds of annotation
values can be stored in an annotation. |
UnknownElementException.java | Class | Indicates that an unknown kind of element was encountered. |
VariableElement.java | Interface | Represents a field,
enum constant, method or constructor
parameter, local variable, or exception parameter.
author: Joseph D. |