Class ReflectionTypeParameter

  • All Implemented Interfaces:
    com.github.javaparser.resolution.declarations.AssociableToAST, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration

    public class ReflectionTypeParameter
    extends java.lang.Object
    implements com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
    Author:
    Federico Tomassetti
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration

        com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionTypeParameter​(java.lang.reflect.TypeVariable typeVariable, boolean declaredOnClass, com.github.javaparser.resolution.TypeSolver typeSolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()  
      boolean equals​(java.lang.Object o)  
      java.util.List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound> getBounds()  
      com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable getContainer()  
      java.lang.String getContainerId()  
      java.lang.String getContainerQualifiedName()  
      java.lang.String getName()  
      int hashCode()  
      com.github.javaparser.resolution.types.ResolvedReferenceType object()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST

        toAst, toAst
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration

        asEnumConstant, asField, asMethod, asParameter, asTypePattern, hasName, isArrayLength, isEnumConstant, isField, isMethod, isParameter, isTypePattern, isVariable
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration

        asAnnotation, asClass, asEnum, asInterface, asRecord, asReferenceType, asType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isRecord, isReferenceType, isType
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration

        asTypeParameter, declaredOnConstructor, declaredOnMethod, declaredOnType, getClassName, getLowerBound, getPackageName, getQualifiedName, getUpperBound, hasBound, hasLowerBound, hasUpperBound, isBounded, isTypeParameter, isUnbounded
    • Constructor Detail

      • ReflectionTypeParameter

        public ReflectionTypeParameter​(java.lang.reflect.TypeVariable typeVariable,
                                       boolean declaredOnClass,
                                       com.github.javaparser.resolution.TypeSolver typeSolver)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
        Specified by:
        getName in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
      • getContainerQualifiedName

        public java.lang.String getContainerQualifiedName()
        Specified by:
        getContainerQualifiedName in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
      • getContainerId

        public java.lang.String getContainerId()
        Specified by:
        getContainerId in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
      • getContainer

        public com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable getContainer()
        Specified by:
        getContainer in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
      • getBounds

        public java.util.List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound> getBounds()
        Specified by:
        getBounds in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
      • toString

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

        public java.util.Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
        Specified by:
        containerType in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
      • object

        public com.github.javaparser.resolution.types.ResolvedReferenceType object()
        Specified by:
        object in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration