Class TypeVariableImpl

  • All Implemented Interfaces:
    javax.lang.model.AnnotatedConstruct, javax.lang.model.type.ReferenceType, javax.lang.model.type.TypeMirror, javax.lang.model.type.TypeVariable

    public class TypeVariableImpl
    extends java.lang.Object
    implements javax.lang.model.type.TypeVariable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.lang.model.element.TypeParameterElement element  
      private javax.lang.model.type.TypeMirror upperBound  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeVariableImpl​(java.lang.reflect.TypeVariable<D> typeVariable)  
      TypeVariableImpl​(javax.lang.model.element.TypeParameterElement element, javax.lang.model.type.TypeMirror... bounds)  
    • 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()  
      boolean equals​(java.lang.Object obj)  
      <A extends java.lang.annotation.Annotation>
      A
      getAnnotation​(java.lang.Class<A> annotationType)  
      java.util.List<? extends javax.lang.model.element.AnnotationMirror> getAnnotationMirrors()  
      <A extends java.lang.annotation.Annotation>
      A[]
      getAnnotationsByType​(java.lang.Class<A> annotationType)  
      javax.lang.model.type.TypeKind getKind()  
      javax.lang.model.type.TypeMirror getLowerBound()  
      javax.lang.model.type.TypeMirror getUpperBound()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

        toString
    • Field Detail

      • element

        private javax.lang.model.element.TypeParameterElement element
      • upperBound

        private javax.lang.model.type.TypeMirror upperBound
    • Constructor Detail

      • TypeVariableImpl

        TypeVariableImpl​(javax.lang.model.element.TypeParameterElement element,
                         javax.lang.model.type.TypeMirror... bounds)
      • TypeVariableImpl

        TypeVariableImpl​(java.lang.reflect.TypeVariable<D> typeVariable)
    • Method Detail

      • asElement

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

        public javax.lang.model.type.TypeMirror getUpperBound()
        Specified by:
        getUpperBound in interface javax.lang.model.type.TypeVariable
      • getLowerBound

        public javax.lang.model.type.TypeMirror getLowerBound()
        Specified by:
        getLowerBound in interface javax.lang.model.type.TypeVariable
      • 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
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface javax.lang.model.type.TypeMirror
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface javax.lang.model.type.TypeMirror
        Overrides:
        equals in class java.lang.Object
      • getAnnotationMirrors

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

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

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