API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.lang.model.element. Element View Source
Author(s)
Joseph D. Darcy
Scott Seligman
Peter von der Ahé
Since
1.6
Version
1.7 06/08/07
Serial
Hierarchy
 Element
Subinterfaces
Description
public interface Element
  Represents a program element such as a package, class, or method.
See also:    Elements TypeMirror
Methods
Hide/Show inherited methods
public R accept (ElementVisitor< R, P> v, P p)
  Applies a visitor to this element.
public TypeMirror asType ()
  Returns the type defined by this element.
public boolean equals (Object obj)
  Returns true if the argument represents the same element as this, or false otherwise.
public A getAnnotation (Class< A> annotationType)
  Returns this element's annotation for the specified type if such an annotation is present, else null.
public List<AnnotationMirror> getAnnotationMirrors ()
  Returns the annotations that are directly present on this element.
public List<Element> getEnclosedElements ()
  Returns the elements that are, loosely speaking, directly enclosed by this element.
public Element getEnclosingElement ()
  Returns the innermost element within which this element is, loosely speaking, enclosed.
public ElementKind getKind ()
  Returns the kind of this element.
public Set<Modifier> getModifiers ()
  Returns the modifiers of this element, excluding annotations.
public Name getSimpleName ()
  Returns the simple (unqualified) name of this element.
public int hashCode ()
  Obeys the general contract of Object.hashCode.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar