|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Element | |
---|---|
javax.lang.model.element | Interfaces used to model elements of the Java programming language. |
javax.lang.model.type | Interfaces used to model Java programming language types. |
javax.lang.model.util | Utilities to assist in the processing of program elements and types. |
Uses of Element in javax.lang.model.element |
---|
Subinterfaces of Element in javax.lang.model.element | |
---|---|
interface |
ExecutableElement
Represents a method, constructor, or initializer (static or instance) of a class or interface, including annotation type elements. |
interface |
PackageElement
Represents a package program element. |
interface |
QualifiedNameable
A mixin interface for an element that has a qualified name. |
interface |
SuperpackageElement
Represents a superpackage program element. |
interface |
TypeElement
Represents a class or interface program element. |
interface |
TypeParameterElement
Represents a formal type parameter of a generic class, interface, method, or constructor element. |
interface |
VariableElement
Represents a field, enum constant, method or constructor
parameter, local variable, or exception parameter. |
Methods in javax.lang.model.element that return Element | |
---|---|
Element |
Element.getEnclosingElement()
Returns the innermost element within which this element is, loosely speaking, enclosed. |
Element |
TypeParameterElement.getGenericElement()
Returns the generic class, interface, method, or constructor that is parameterized by this type parameter. |
Element |
UnknownElementException.getUnknownElement()
Returns the unknown element. |
Methods in javax.lang.model.element that return types with arguments of type Element | |
---|---|
List<? extends Element> |
Element.getEnclosedElements()
Returns the elements that are, loosely speaking, directly enclosed by this element. |
List<? extends Element> |
SuperpackageElement.getExportedElements()
Returns the superpackages and types exported by this superpackage. |
List<? extends Element> |
SuperpackageElement.getMemberElements()
Returns the superpackages and types that are members of this superpackage. |
Methods in javax.lang.model.element with parameters of type Element | |
---|---|
R |
ElementVisitor.visit(Element e)
A convenience method equivalent to v.visit(e, null) . |
R |
ElementVisitor.visit(Element e,
P p)
Visits an element. |
R |
ElementVisitor.visitUnknown(Element e,
P p)
Visits an unknown kind of element. |
Constructors in javax.lang.model.element with parameters of type Element | |
---|---|
UnknownElementException(Element e,
Object p)
Creates a new UnknownElementException . |
Uses of Element in javax.lang.model.type |
---|
Methods in javax.lang.model.type that return Element | |
---|---|
Element |
DeclaredType.asElement()
Returns the element corresponding to this type. |
Element |
TypeVariable.asElement()
Returns the element corresponding to this type variable. |
Uses of Element in javax.lang.model.util |
---|
Methods in javax.lang.model.util that return Element | |
---|---|
Element |
Types.asElement(TypeMirror t)
Returns the element corresponding to a type. |
Methods in javax.lang.model.util that return types with arguments of type Element | |
---|---|
List<? extends Element> |
Elements.getAllMembers(TypeElement type)
Returns all members of a type element, whether inherited or declared directly. |
Methods in javax.lang.model.util with parameters of type Element | |
---|---|
TypeMirror |
Types.asMemberOf(DeclaredType containing,
Element element)
Returns the type of an element when that element is viewed as a member of, or otherwise directly contained by, a given type. |
protected R |
SimpleElementVisitor6.defaultAction(Element e,
P p)
The default action for visit methods. |
List<? extends AnnotationMirror> |
Elements.getAllAnnotationMirrors(Element e)
Returns all annotations of an element, whether inherited or directly present. |
String |
Elements.getDocComment(Element e)
Returns the text of the documentation ("Javadoc") comment of an element. |
PackageElement |
Elements.getPackageOf(Element type)
Returns the package of an element. |
SuperpackageElement |
Elements.getSuperpackageOf(Element type)
Returns the superpackage of an element. |
boolean |
Elements.hides(Element hider,
Element hidden)
Tests whether one type, method, or field hides another. |
boolean |
Elements.isDeprecated(Element e)
Returns true if the element is deprecated, false otherwise. |
void |
Elements.printElements(Writer w,
Element... elements)
Prints a representation of the elements to the given writer in the specified order. |
R |
ElementScanner6.scan(Element e)
Convenience method equivalent to v.scan(e, null) . |
R |
ElementScanner6.scan(Element e,
P p)
Processes an element by calling e.accept(this, p) ;
this method may be overridden by subclasses. |
R |
AbstractElementVisitor6.visit(Element e)
Visits any program element as if by passing itself to that element's accept method and passing
null for the additional parameter. |
R |
AbstractElementVisitor6.visit(Element e,
P p)
Visits any program element as if by passing itself to that element's accept method. |
R |
AbstractElementVisitor6.visitUnknown(Element e,
P p)
Visits an unknown kind of element. |
Method parameters in javax.lang.model.util with type arguments of type Element | |
---|---|
static List<ExecutableElement> |
ElementFilter.constructorsIn(Iterable<? extends Element> elements)
Returns a list of constructors in elements . |
static Set<ExecutableElement> |
ElementFilter.constructorsIn(Set<? extends Element> elements)
Returns a set of constructors in elements . |
static List<VariableElement> |
ElementFilter.fieldsIn(Iterable<? extends Element> elements)
Returns a list of fields in elements . |
static Set<VariableElement> |
ElementFilter.fieldsIn(Set<? extends Element> elements)
Returns a set of fields in elements . |
static List<ExecutableElement> |
ElementFilter.methodsIn(Iterable<? extends Element> elements)
Returns a list of methods in elements . |
static Set<ExecutableElement> |
ElementFilter.methodsIn(Set<? extends Element> elements)
Returns a set of methods in elements . |
static List<PackageElement> |
ElementFilter.packagesIn(Iterable<? extends Element> elements)
Returns a list of packages in elements . |
static Set<PackageElement> |
ElementFilter.packagesIn(Set<? extends Element> elements)
Returns a set of packages in elements . |
R |
ElementScanner6.scan(Iterable<? extends Element> iterable,
P p)
Iterates over the given elements and calls scan(Element, P) on each one. |
static List<SuperpackageElement> |
ElementFilter.superpackagesIn(Iterable<? extends Element> elements)
Returns a list of superpackages in elements . |
static Set<SuperpackageElement> |
ElementFilter.superpackagesIn(Set<? extends Element> elements)
Returns a set of superpackages in elements . |
static List<TypeElement> |
ElementFilter.typesIn(Iterable<? extends Element> elements)
Returns a list of types in elements . |
static Set<TypeElement> |
ElementFilter.typesIn(Set<? extends Element> elements)
Returns a set of types in elements . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |