Class CodeElement<E extends javax.lang.model.element.Element>

    • Constructor Detail

      • CodeElement

        public CodeElement​(java.util.Set<javax.lang.model.element.Modifier> modifiers)
    • Method Detail

      • add

        public E add​(E element)
      • addOptional

        public E addOptional​(E element)
      • remove

        public void remove​(E element)
      • getModifiers

        public java.util.Set<javax.lang.model.element.Modifier> getModifiers()
        Specified by:
        getModifiers in interface javax.lang.model.element.Element
      • getEnclosedElements

        public java.util.List<E> getEnclosedElements()
        Specified by:
        getEnclosedElements in interface javax.lang.model.element.Element
      • getAnnotationMirrors

        public java.util.List<javax.lang.model.element.AnnotationMirror> getAnnotationMirrors()
        Specified by:
        getAnnotationMirrors in interface javax.lang.model.AnnotatedConstruct
        Specified by:
        getAnnotationMirrors in interface javax.lang.model.element.Element
      • getAnnotationsByType

        public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType​(java.lang.Class<A> annotationType)
        Support JDK8 langtools.
        Specified by:
        getAnnotationsByType in interface javax.lang.model.AnnotatedConstruct
        Parameters:
        annotationType -
      • getAnnotations

        public <A extends java.lang.annotation.Annotation> A[] getAnnotations​(java.lang.Class<A> annotationType)
        Support for some JDK8 builds. (remove after jdk8 is released)
        Parameters:
        annotationType -
      • getAnnotation

        public <A extends java.lang.annotation.Annotation> A getAnnotation​(java.lang.Class<A> annotationType)
        Support for some JDK8 builds. (remove after jdk8 is released)
        Specified by:
        getAnnotation in interface javax.lang.model.AnnotatedConstruct
        Specified by:
        getAnnotation in interface javax.lang.model.element.Element
        Parameters:
        annotationType -
      • addAnnotationMirror

        public void addAnnotationMirror​(javax.lang.model.element.AnnotationMirror annotationMirror)
      • setEnclosingElement

        public void setEnclosingElement​(javax.lang.model.element.Element parent)
      • getEnclosingElement

        public javax.lang.model.element.Element getEnclosingElement()
        Specified by:
        getEnclosingElement in interface javax.lang.model.element.Element
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object