| Constructor and Description |
|---|
ElementsImpl(BaseProcessingEnvImpl env) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends AnnotationMirror> |
getAllAnnotationMirrors(Element e)
Return all the annotation mirrors on this element, including inherited annotations.
|
List<? extends Element> |
getAllMembers(TypeElement type)
Compute a list of all the visible entities in this type.
|
Name |
getBinaryName(TypeElement type) |
String |
getConstantExpression(Object value) |
String |
getDocComment(Element e) |
Map<? extends ExecutableElement,? extends AnnotationValue> |
getElementValuesWithDefaults(AnnotationMirror a) |
Name |
getName(CharSequence cs) |
PackageElement |
getPackageElement(CharSequence name) |
PackageElement |
getPackageOf(Element type) |
TypeElement |
getTypeElement(CharSequence name) |
boolean |
hides(Element hider,
Element hidden) |
boolean |
isDeprecated(Element e) |
boolean |
overrides(ExecutableElement overrider,
ExecutableElement overridden,
TypeElement type) |
void |
printElements(Writer w,
Element... elements) |
public ElementsImpl(BaseProcessingEnvImpl env)
public List<? extends AnnotationMirror> getAllAnnotationMirrors(Element e)
getAllAnnotationMirrors in interface Elementspublic List<? extends Element> getAllMembers(TypeElement type)
getAllMembers in interface Elementspublic Name getBinaryName(TypeElement type)
getBinaryName in interface Elementspublic String getConstantExpression(Object value)
getConstantExpression in interface Elementspublic String getDocComment(Element e)
getDocComment in interface Elementspublic Map<? extends ExecutableElement,? extends AnnotationValue> getElementValuesWithDefaults(AnnotationMirror a)
getElementValuesWithDefaults in interface ElementsAnnotationMirror.getElementValues() only
returns the explicitly set values.Elements.getElementValuesWithDefaults(javax.lang.model.element.AnnotationMirror)public Name getName(CharSequence cs)
public PackageElement getPackageElement(CharSequence name)
getPackageElement in interface Elementspublic PackageElement getPackageOf(Element type)
getPackageOf in interface Elementspublic TypeElement getTypeElement(CharSequence name)
getTypeElement in interface Elementspublic boolean isDeprecated(Element e)
isDeprecated in interface Elementspublic boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)
public void printElements(Writer w, Element... elements)
printElements in interface ElementsCopyright © 2013. All rights reserved.