public abstract class ElementImpl extends Object implements Element, IElementInfo
| Modifier and Type | Field and Description |
|---|---|
Binding |
_binding |
BaseProcessingEnvImpl |
_env |
| Modifier | Constructor and Description |
|---|---|
protected |
ElementImpl(BaseProcessingEnvImpl env,
Binding binding) |
| Modifier and Type | Method and Description |
|---|---|
TypeMirror |
asType() |
boolean |
equals(Object obj) |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass) |
protected abstract AnnotationBinding[] |
getAnnotationBindings() |
List<? extends AnnotationMirror> |
getAnnotationMirrors() |
<A extends Annotation> |
getAnnotationsByType(Class<A> annotationType) |
String |
getFileName()
Get the project-relative path to the source file that contains this element.
|
Set<Modifier> |
getModifiers() |
AnnotationBinding[] |
getPackedAnnotationBindings() |
Name |
getSimpleName() |
int |
hashCode() |
boolean |
hides(Element hidden)
Subclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, getEnclosedElements, getEnclosingElement, getKindpublic final BaseProcessingEnvImpl _env
public final Binding _binding
protected ElementImpl(BaseProcessingEnvImpl env, Binding binding)
public TypeMirror asType()
protected abstract AnnotationBinding[] getAnnotationBindings()
public final AnnotationBinding[] getPackedAnnotationBindings()
public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
getAnnotation in interface AnnotatedConstructgetAnnotation in interface Elementpublic List<? extends AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors in interface AnnotatedConstructgetAnnotationMirrors in interface Elementpublic <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType)
getAnnotationsByType in interface AnnotatedConstructpublic Set<Modifier> getModifiers()
getModifiers in interface Elementpublic Name getSimpleName()
getSimpleName in interface Elementpublic int hashCode()
public boolean equals(Object obj)
public String getFileName()
IElementInfogetFileName in interface IElementInfopublic boolean hides(Element hidden)
hiddenElements.hides(javax.lang.model.element.Element, javax.lang.model.element.Element)Copyright © 2015. All rights reserved.