public class DecoratedElement<E extends Element> extends Object implements Element
| Modifier and Type | Field and Description |
|---|---|
protected E |
delegate |
protected DecoratedProcessingEnvironment |
env |
| Constructor and Description |
|---|
DecoratedElement(E delegate,
DecoratedProcessingEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
TypeMirror |
asType() |
boolean |
equals(Object obj) |
<A extends Annotation> |
getAnnotation(Class<A> annotationType) |
List<? extends AnnotationMirror> |
getAnnotationMirrors() |
Map<String,AnnotationMirror> |
getAnnotations()
A map of annotations for this declaration.
|
E |
getDelegate() |
String |
getDocComment() |
String |
getDocValue()
The value of the java doc, before the block tags.
|
String |
getDocValue(JavaDocTagHandler tagHandler)
The value of the java doc, before the block tags.
|
List<? extends Element> |
getEnclosedElements() |
Element |
getEnclosingElement() |
JavaDoc |
getJavaDoc()
The javadoc for this declaration with the default tag handler.
|
JavaDoc |
getJavaDoc(JavaDocTagHandler tagHandler)
Get the JavaDoc for this element for the given tag handler.
|
protected JavaDoc |
getJavaDoc(JavaDocTagHandler tagHandler,
boolean useDelegate) |
ElementKind |
getKind() |
Set<Modifier> |
getModifiers() |
Name |
getSimpleName() |
boolean |
isAbstract()
Whether the declaration is
abstract. |
boolean |
isFinal()
Whether the declaration is
final. |
boolean |
isNative()
Whether the declaration is
native. |
boolean |
isPrivate()
Whether the declaration is
private. |
boolean |
isProtected()
Whether the declaration is
protected. |
boolean |
isPublic()
Whether the declaration is
public. |
boolean |
isStatic()
Whether the declaration is
static. |
boolean |
isStrictfp()
Whether the declaration is
strictfp. |
boolean |
isSynchronized()
Whether the declaration is
synchronized. |
boolean |
isTransient()
Whether the declaration is
transient. |
boolean |
isVolatile()
Whether the declaration is
volatile. |
String |
toString() |
protected final DecoratedProcessingEnvironment env
public DecoratedElement(E delegate, DecoratedProcessingEnvironment env)
public boolean isPublic()
public.public.public boolean isProtected()
protected.protected.public boolean isPrivate()
private.private.public boolean isAbstract()
abstract.abstract.public boolean isStatic()
static.static.public boolean isFinal()
final.final.public boolean isTransient()
transient.transient.public boolean isVolatile()
volatile.volatile.public boolean isSynchronized()
synchronized.synchronized.public boolean isNative()
native.native.public boolean isStrictfp()
strictfp.strictfp.public String getDocComment()
public final JavaDoc getJavaDoc()
public final JavaDoc getJavaDoc(JavaDocTagHandler tagHandler)
tagHandler - The tag handler.protected JavaDoc getJavaDoc(JavaDocTagHandler tagHandler, boolean useDelegate)
public final String getDocValue()
public final String getDocValue(JavaDocTagHandler tagHandler)
tagHandler - The tag handler.public Map<String,AnnotationMirror> getAnnotations()
public TypeMirror asType()
public ElementKind getKind()
public Element getEnclosingElement()
getEnclosingElement in interface Elementpublic List<? extends Element> getEnclosedElements()
getEnclosedElements in interface Elementpublic <R,P> R accept(ElementVisitor<R,P> v, P p)
public List<? extends AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors in interface Elementpublic <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface Elementpublic Set<Modifier> getModifiers()
getModifiers in interface Elementpublic Name getSimpleName()
getSimpleName in interface Elementpublic E getDelegate()
public boolean equals(Object obj)
Copyright © 2006-2016–2017. All rights reserved.