Class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.LazyUnboundWildcard

    • Field Detail

      • typePool

        private final TypePool typePool
        The type pool to use.
      • typePath

        private final java.lang.String typePath
        This type's type path.
    • Constructor Detail

      • LazyUnboundWildcard

        protected LazyUnboundWildcard​(TypePool typePool,
                                      java.lang.String typePath,
                                      java.util.Map<java.lang.String,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)
        Creates a new lazy unbound wildcard.
        Parameters:
        typePool - The type pool to use.
        typePath - This type's type path.
        annotationTokens - The type's type annotations.
    • Method Detail

      • getUpperBounds

        public TypeList.Generic getUpperBounds()

        Returns the upper bounds of this type. Any type with a well-defined upper bound is bound by at least one type. If no such type is defined, the bound is implicitly Object.

        Only non-symbolic type variables (TypeDefinition.Sort.VARIABLE, and wildcard types (TypeDefinition.Sort.WILDCARD) have well-defined upper bounds. For other types, an IllegalStateException is thrown.

        Returns:
        The upper bounds of this type.
      • getLowerBounds

        public TypeList.Generic getLowerBounds()

        Returns the lower bounds of this type.

        Only wildcard types (TypeDefinition.Sort.WILDCARD) define a lower bound. For other types, an IllegalStateException is thrown.

        Returns:
        The lower bounds of this type.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.