Class JavaParserTypeParameter

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

    public class JavaParserTypeParameter
    extends com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
    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
      JavaParserTypeParameter​(com.github.javaparser.ast.type.TypeParameter wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()  
      boolean equals​(Object o)  
      List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()  
      List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors​(boolean acceptIncompleteList)  
      List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound> getBounds()  
      List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()  
      com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable getContainer()  
      String getContainerId()  
      String getContainerQualifiedName()  
      Context getContext()  
      Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()  
      com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField​(String name)  
      String getName()  
      String getQualifiedName()  
      List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()  
      com.github.javaparser.resolution.types.ResolvedType getUsage​(com.github.javaparser.ast.Node node)  
      com.github.javaparser.ast.type.TypeParameter getWrappedNode()
      Returns the JavaParser node associated with this JavaParserTypeParameter.
      boolean hasDirectlyAnnotation​(String canonicalName)  
      boolean hasField​(String name)  
      int hashCode()  
      boolean isAssignableBy​(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)  
      boolean isAssignableBy​(com.github.javaparser.resolution.types.ResolvedType type)  
      boolean isTypeParameter()  
      com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod​(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)  
      String toString()  
      • Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration

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

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

        asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration

        asClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, internalTypes, isAnonymousClass, isClass, isEnum, isInterface, isType
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration

        declaredOnConstructor, declaredOnMethod, declaredOnType, getClassName, getLowerBound, getPackageName, getUpperBound, hasLowerBound, hasUpperBound
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable

        isGeneric
    • Constructor Detail

      • JavaParserTypeParameter

        public JavaParserTypeParameter​(com.github.javaparser.ast.type.TypeParameter wrappedNode,
                                       com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
    • Method Detail

      • getDeclaredMethods

        public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
        Specified by:
        getDeclaredMethods in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • solveMethod

        public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod​(String name,
                                                                                                                                                                        List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
      • hashCode

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

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

        public boolean isAssignableBy​(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
        Specified by:
        isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • getContainerQualifiedName

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

        public 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
      • getQualifiedName

        public String getQualifiedName()
        Specified by:
        getQualifiedName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
        Specified by:
        getQualifiedName in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
      • getBounds

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

        public Context getContext()
      • getUsage

        public com.github.javaparser.resolution.types.ResolvedType getUsage​(com.github.javaparser.ast.Node node)
      • isAssignableBy

        public boolean isAssignableBy​(com.github.javaparser.resolution.types.ResolvedType type)
        Specified by:
        isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • getField

        public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField​(String name)
        Specified by:
        getField in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • hasField

        public boolean hasField​(String name)
        Specified by:
        hasField in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • getAllFields

        public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
        Specified by:
        getAllFields in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • getAncestors

        public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors​(boolean acceptIncompleteList)
        Specified by:
        getAncestors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • isTypeParameter

        public boolean isTypeParameter()
        Specified by:
        isTypeParameter in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
      • hasDirectlyAnnotation

        public boolean hasDirectlyAnnotation​(String canonicalName)
        Specified by:
        hasDirectlyAnnotation in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
      • getTypeParameters

        public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
        Specified by:
        getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
      • getWrappedNode

        public com.github.javaparser.ast.type.TypeParameter getWrappedNode()
        Returns the JavaParser node associated with this JavaParserTypeParameter.
        Returns:
        A visitable JavaParser node wrapped by this object.
      • containerType

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

        public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
        Specified by:
        getConstructors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration