Class CachingElements.CachingDeclaredType

  • All Implemented Interfaces:
    javax.lang.model.AnnotatedConstruct, javax.lang.model.type.DeclaredType, javax.lang.model.type.ReferenceType, javax.lang.model.type.TypeMirror, Delegated, CachingElements.Caching
    Enclosing class:
    CachingElements

    private static class CachingElements.CachingDeclaredType
    extends java.lang.Object
    implements javax.lang.model.type.DeclaredType, CachingElements.Caching
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.lang.model.type.DeclaredType delegate  
      private javax.lang.model.element.Element element  
      private javax.lang.model.type.TypeKind kind  
    • Constructor Summary

      Constructors 
      Constructor Description
      CachingDeclaredType​(javax.lang.model.type.DeclaredType delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <R,​P>
      R
      accept​(javax.lang.model.type.TypeVisitor<R,​P> v, P p)  
      javax.lang.model.element.Element asElement()  
      javax.lang.model.type.DeclaredType delegate()  
      <A extends java.lang.annotation.Annotation>
      A
      getAnnotation​(java.lang.Class<A> type)  
      java.util.List<? extends javax.lang.model.element.AnnotationMirror> getAnnotationMirrors()  
      <A extends java.lang.annotation.Annotation>
      A[]
      getAnnotationsByType​(java.lang.Class<A> type)  
      javax.lang.model.type.TypeMirror getEnclosingType()  
      javax.lang.model.type.TypeKind getKind()  
      java.util.List<? extends javax.lang.model.type.TypeMirror> getTypeArguments()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.lang.model.type.TypeMirror

        equals, hashCode
    • Field Detail

      • delegate

        private final javax.lang.model.type.DeclaredType delegate
      • kind

        private final javax.lang.model.type.TypeKind kind
      • element

        private final javax.lang.model.element.Element element
    • Constructor Detail

      • CachingDeclaredType

        CachingDeclaredType​(javax.lang.model.type.DeclaredType delegate)
    • Method Detail

      • delegate

        public javax.lang.model.type.DeclaredType delegate()
        Specified by:
        delegate in interface Delegated
      • asElement

        public javax.lang.model.element.Element asElement()
        Specified by:
        asElement in interface javax.lang.model.type.DeclaredType
      • getKind

        public javax.lang.model.type.TypeKind getKind()
        Specified by:
        getKind in interface javax.lang.model.type.TypeMirror
      • accept

        public <R,​P> R accept​(javax.lang.model.type.TypeVisitor<R,​P> v,
                                    P p)
        Specified by:
        accept in interface javax.lang.model.type.TypeMirror
      • getEnclosingType

        public javax.lang.model.type.TypeMirror getEnclosingType()
        Specified by:
        getEnclosingType in interface javax.lang.model.type.DeclaredType
      • getTypeArguments

        public java.util.List<? extends javax.lang.model.type.TypeMirror> getTypeArguments()
        Specified by:
        getTypeArguments in interface javax.lang.model.type.DeclaredType
      • getAnnotation

        public <A extends java.lang.annotation.Annotation> A getAnnotation​(java.lang.Class<A> type)
        Specified by:
        getAnnotation in interface javax.lang.model.AnnotatedConstruct
      • getAnnotationsByType

        public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType​(java.lang.Class<A> type)
        Specified by:
        getAnnotationsByType in interface javax.lang.model.AnnotatedConstruct
      • getAnnotationMirrors

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

        public java.lang.String toString()
        Specified by:
        toString in interface javax.lang.model.type.TypeMirror
        Overrides:
        toString in class java.lang.Object