APIdia Launch Partner
Top Description Methods
javax.lang.model.type

public Interface WildcardType

extends TypeMirror

Represents a wildcard type argument. Examples include:

  ?
  ? extends Number
  ? super T

A wildcard may have its upper bound explicitly set by an extends clause, its lower bound explicitly set by a super clause, or neither (but not both).

Since
1.6
Java Language Specification
4.5.1 Type Arguments of Parameterized Types

Method Summary

Modifier and TypeMethod and Description
public TypeMirror

Returns:

the upper bound of this wildcard
getExtendsBound
()

Returns the upper bound of this wildcard.

public TypeMirror

Returns:

the lower bound of this wildcard
getSuperBound
()

Returns the lower bound of this wildcard.

Inherited from javax.lang.model.type.TypeMirror:
acceptequalsgetAnnotationgetAnnotationMirrorsgetAnnotationsByTypegetKindhashCodetoString

Method Detail

getExtendsBoundback to summary
public TypeMirror getExtendsBound()

Returns the upper bound of this wildcard. If no upper bound is explicitly declared, null is returned.

Returns:TypeMirror

the upper bound of this wildcard

getSuperBoundback to summary
public TypeMirror getSuperBound()

Returns the lower bound of this wildcard. If no lower bound is explicitly declared, null is returned.

Returns:TypeMirror

the lower bound of this wildcard