public abstract class CodeElement<E extends Element> extends Object implements Element, GeneratedElement
| Constructor and Description |
|---|
CodeElement(Set<Modifier> modifiers) |
accept, asType, getKind, getSimpleNamepublic void setGeneratorAnnotationMirror(AnnotationMirror mirror)
setGeneratorAnnotationMirror in interface GeneratedElementpublic void setGeneratorElement(Element element)
setGeneratorElement in interface GeneratedElementpublic AnnotationMirror getGeneratorAnnotationMirror()
getGeneratorAnnotationMirror in interface GeneratedElementpublic boolean equals(Object obj)
public int hashCode()
public Element getGeneratorElement()
getGeneratorElement in interface GeneratedElementpublic <T extends E> void addAll(Collection<? extends T> elements)
public <T extends E> T add(T element)
public <T extends E> T addOptional(T element)
public void remove(E element)
public Set<Modifier> getModifiers()
getModifiers in interface Elementpublic List<E> getEnclosedElements()
getEnclosedElements in interface Elementpublic List<AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors in interface AnnotatedConstructgetAnnotationMirrors in interface Elementpublic <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType)
getAnnotationsByType in interface AnnotatedConstructannotationType - public <A extends Annotation> A[] getAnnotations(Class<A> annotationType)
annotationType - public <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface AnnotatedConstructgetAnnotation in interface ElementannotationType - public void addAnnotationMirror(AnnotationMirror annotationMirror)
public void setEnclosingElement(Element parent)
public Element getEnclosingElement()
getEnclosingElement in interface Elementpublic TypeElement getEnclosingClass()