Interface ResolvedTypeParameterDeclaration

    • Method Detail

      • declaredOnType

        default boolean declaredOnType()
        Is the type parameter been defined on a type?
      • declaredOnMethod

        default boolean declaredOnMethod()
        Is the type parameter been defined on a method?
      • declaredOnConstructor

        default boolean declaredOnConstructor()
        Is the type parameter been defined on a constructor?
      • getPackageName

        default java.lang.String getPackageName()
        The package name of the type bound(s). This is unsupported because there is no package for a Type Parameter, only for its container.
        Specified by:
        getPackageName in interface ResolvedTypeDeclaration
      • getClassName

        default java.lang.String getClassName()
        The class(es) wrapping the type bound(s). This is unsupported because there is no class for a Type Parameter, only for its container.
        Specified by:
        getClassName in interface ResolvedTypeDeclaration
      • getQualifiedName

        default java.lang.String getQualifiedName()
        The qualified name of the Type Parameter. It is composed by the qualified name of the container followed by a dot and the name of the Type Parameter. The qualified name of a method is its qualified signature.
        Specified by:
        getQualifiedName in interface ResolvedTypeDeclaration
      • getContainerQualifiedName

        java.lang.String getContainerQualifiedName()
        The qualified name of the container.
      • getContainerId

        java.lang.String getContainerId()
        The ID of the container. See TypeContainer.getId
      • getContainer

        ResolvedTypeParametrizable getContainer()
        The TypeParametrizable of the container. Can be either a ReferenceTypeDeclaration or a MethodLikeDeclaration
      • hasLowerBound

        default boolean hasLowerBound()
        Has the type parameter a lower bound?
      • hasUpperBound

        default boolean hasUpperBound()
        Has the type parameter an upper bound?
      • getLowerBound

        default ResolvedType getLowerBound()
        Get the type used as lower bound.
        Throws:
        java.lang.IllegalStateException - if there is no lower bound
      • getUpperBound

        default ResolvedType getUpperBound()
        Get the type used as upper bound.
        Throws:
        java.lang.IllegalStateException - if there is no upper bound