Class JavaParserTypeParameter

java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserTypeParameter
All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST, 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 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
  • Field Summary

    Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration

    breadthFirstFunc, depthFirstFunc, JAVA_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_RECORD
  • Constructor Summary

    Constructors
    Constructor
    Description
    JavaParserTypeParameter(com.github.javaparser.ast.type.TypeParameter wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
     
    Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration>
     
    boolean
     
    List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration>
     
    List<com.github.javaparser.resolution.types.ResolvedReferenceType>
    getAncestors(boolean acceptIncompleteList)
     
    List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound>
     
    List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration>
     
    com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
     
     
     
    com.github.javaparser.resolution.Context
     
    Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration>
     
    com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
     
     
     
    List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration>
     
    com.github.javaparser.resolution.types.ResolvedType
    getUsage(com.github.javaparser.ast.Node node)
     
    com.github.javaparser.ast.type.TypeParameter
    Returns the JavaParser node associated with this JavaParserTypeParameter.
    boolean
     
    boolean
     
    int
     
    boolean
    isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
     
    boolean
    isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
     
    boolean
     
    com.github.javaparser.resolution.types.ResolvedReferenceType
     
    com.github.javaparser.resolution.model.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration>
    solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
     
    Optional<com.github.javaparser.ast.Node>
     
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST

    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.ResolvedReferenceTypeDeclaration

    asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isJavaLangRecord, isReferenceType

    Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration

    asAnnotation, asClass, asEnum, asInterface, asRecord, asType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isRecord, isType

    Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration

    declaredOnConstructor, declaredOnMethod, declaredOnType, getClassName, getLowerBound, getPackageName, getUpperBound, hasBound, hasLowerBound, hasUpperBound, isBounded, isUnbounded

    Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable

    isGeneric
  • Constructor Details

    • JavaParserTypeParameter

      public JavaParserTypeParameter(com.github.javaparser.ast.type.TypeParameter wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)
  • Method Details

    • 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.resolution.model.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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 com.github.javaparser.resolution.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
      Specified by:
      isTypeParameter in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
    • asTypeParameter

      public com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration asTypeParameter()
      Specified by:
      asTypeParameter in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
      Specified by:
      asTypeParameter in interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class 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
    • object

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

      public Optional<com.github.javaparser.ast.Node> toAst()
      Specified by:
      toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST