API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.lang.model.util. Elements View Source
Author(s)
Joseph D. Darcy
Scott Seligman
Peter von der Ahé
Since
1.6
Version
1.11 06/08/16
Serial
Hierarchy
 Elements
Subinterfaces
Description
public interface Elements
  Utility methods for operating on program elements.
Methods
Hide/Show inherited methods
public List<AnnotationMirror> getAllAnnotationMirrors (Element e)
  Returns all annotations of an element, whether inherited or directly present.
public List<Element> getAllMembers (TypeElement type)
  Returns all members of a type element, whether inherited or declared directly.
public Name getBinaryName (TypeElement type)
  Returns the binary name of a type element.
public String getConstantExpression (Object value)
  Returns the text of a constant expression representing a primitive value or a string.
public String getDocComment (Element e)
  Returns the text of the documentation ("Javadoc") comment of an element.
public Map<ExecutableElement, AnnotationValue> getElementValuesWithDefaults (AnnotationMirror a)
  Returns the values of an annotation's elements, including defaults.
public Name getName (CharSequence cs)
  Return a name with the same sequence of characters as the argument.
public PackageElement getPackageElement (CharSequence name)
  Returns a package given its fully qualified name.
public PackageElement getPackageOf (Element type)
  Returns the package of an element.
public TypeElement getTypeElement (CharSequence name)
  Returns a type element given its canonical name.
public boolean hides (Element hider, Element hidden)
  Tests whether one type, method, or field hides another.
public boolean isDeprecated (Element e)
  Returns true if the element is deprecated, false otherwise.
public boolean overrides (ExecutableElement overrider, ExecutableElement overridden, TypeElement type)
  Tests whether one method, as a member of a given type, overrides another method.
public void printElements (Writer w, Element elements)
  Prints a representation of the elements to the given writer in the specified order.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar