Class CodeElement<E extends Element>
java.lang.Object
com.oracle.truffle.dsl.processor.java.model.CodeElement<E>
- All Implemented Interfaces:
GeneratedElement,AnnotatedConstruct,Element
- Direct Known Subclasses:
CodeCompilationUnit,CodeExecutableElement,CodeTypeElement,CodeTypeParameterElement,CodeVariableElement,GeneratedPackageElement
public abstract class CodeElement<E extends Element>
extends Object
implements Element, GeneratedElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends E>
Tadd(T element) <T extends E>
voidaddAll(Collection<? extends T> elements) voidaddAnnotationMirror(AnnotationMirror annotationMirror) <T extends E>
TaddOptional(T element) final CodeTreeBuilderboolean<A extends Annotation>
AgetAnnotation(Class<A> annotationType) Support for some JDK8 builds.<A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationType) Support JDK8 langtools.final CodeTreeinthashCode()final voidsetDocTree(CodeTree docTree) voidsetEnclosingElement(Element parent) voidvoidsetGeneratorElement(Element element) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.lang.model.element.Element
accept, asType, getKind, getSimpleName
-
Constructor Details
-
CodeElement
-
-
Method Details
-
setGeneratorAnnotationMirror
- Specified by:
setGeneratorAnnotationMirrorin interfaceGeneratedElement
-
setGeneratorElement
- Specified by:
setGeneratorElementin interfaceGeneratedElement
-
getGeneratorAnnotationMirror
- Specified by:
getGeneratorAnnotationMirrorin interfaceGeneratedElement
-
getDocTree
-
setDocTree
-
createDocBuilder
-
equals
-
hashCode
-
getGeneratorElement
- Specified by:
getGeneratorElementin interfaceGeneratedElement
-
addAll
-
add
-
addOptional
-
getModifiers
- Specified by:
getModifiersin interfaceElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement
-
getAnnotationMirrors
- Specified by:
getAnnotationMirrorsin interfaceAnnotatedConstruct- Specified by:
getAnnotationMirrorsin interfaceElement
-
getAnnotationsByType
Support JDK8 langtools.- Specified by:
getAnnotationsByTypein interfaceAnnotatedConstruct- Specified by:
getAnnotationsByTypein interfaceElement- Parameters:
annotationType-
-
getAnnotation
Support for some JDK8 builds. (remove after jdk8 is released)- Specified by:
getAnnotationin interfaceAnnotatedConstruct- Specified by:
getAnnotationin interfaceElement- Parameters:
annotationType-
-
addAnnotationMirror
-
setEnclosingElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement
-
getEnclosingClass
-
toString
-