Top Description Methods
jakarta.enterprise.lang.model.types

public Interface WildcardType

extends Type

A wildcard type. May have 3 forms: Note that ? is equivalent to ? extends Object and is represented as such. Therefore, either upperBound() or lowerBound() always returns non-null.

Method Summary

Modifier and TypeMethod and Description
public default WildcardType
asWildcardType()

Overrides default jakarta.enterprise.lang.model.types.Type.asWildcardType.

Returns this type as a wildcard type.
public default Type.Kind
kind()

Implements jakarta.enterprise.lang.model.types.Type.kind.

Returns the kind of this type.
public Type

Returns:

lower bound of this wildcard type, or null if this wildcard type does not have a lower bound
lowerBound
()

Returns the lower bound of this wildcard type.

public Type

Returns:

upper bound of this wildcard type, or null if this wildcard type does not have an upper bound
upperBound
()

Returns the upper bound of this wildcard type.

Inherited from jakarta.enterprise.lang.model.types.Type:
asArrayasClassasDeclarationasParameterizedTypeasPrimitiveasTypeasTypeVariableasVoidisArrayisClassisDeclarationisParameterizedTypeisPrimitiveisTypeisTypeVariableisVoidisWildcardType

Method Detail

asWildcardTypeback to summary
public default WildcardType asWildcardType()

Overrides default jakarta.enterprise.lang.model.types.Type.asWildcardType.

Doc from jakarta.enterprise.lang.model.types.Type.asWildcardType.

Returns this type as a wildcard type.

Returns:WildcardType

this wildcard type, never null

Annotations
@Override
kindback to summary
public default Type.Kind kind()

Implements jakarta.enterprise.lang.model.types.Type.kind.

Doc from jakarta.enterprise.lang.model.types.Type.kind.

Returns the kind of this type.

Returns:Type.Kind

the kind of this type

Annotations
@Override
lowerBoundback to summary
public Type lowerBound()

Returns the lower bound of this wildcard type. Returns null if this wildcard type does not have a lower bound.

Returns:Type

lower bound of this wildcard type, or null if this wildcard type does not have a lower bound

upperBoundback to summary
public Type upperBound()

Returns the upper bound of this wildcard type. Returns null if this wildcard type does not have an upper bound.

Returns:Type

upper bound of this wildcard type, or null if this wildcard type does not have an upper bound