public static class Java.Wildcard extends Object implements Java.TypeArgument
| Modifier and Type | Field and Description |
|---|---|
int |
bounds
The kind of bounds that this wildcard has.
|
static int |
BOUNDS_EXTENDS
Value for
bounds indicating that this wildcard has "extends" bounds. |
static int |
BOUNDS_NONE
Value for
bounds indicating that this wildcard has no bounds; referenceType is irrelevant
in this case. |
static int |
BOUNDS_SUPER
Value for
bounds indicating that this wildcard has "super" bounds. |
Java.ReferenceType |
referenceType
The reference type of this wildcard's EXTENDS or SUPER bounds.
|
| Constructor and Description |
|---|
Wildcard() |
Wildcard(int bounds,
Java.ReferenceType referenceType) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.TypeArgumentVisitor for the concrete Java.TypeArgument type. |
String |
toString() |
public static final int BOUNDS_NONE
bounds indicating that this wildcard has no bounds; referenceType is irrelevant
in this case.public static final int BOUNDS_EXTENDS
bounds indicating that this wildcard has "extends" bounds.public static final int BOUNDS_SUPER
bounds indicating that this wildcard has "super" bounds.public final int bounds
BOUNDS_NONE,
BOUNDS_EXTENDS,
BOUNDS_SUPER@Nullable public final Java.ReferenceType referenceType
public Wildcard()
public Wildcard(int bounds,
@Nullable
Java.ReferenceType referenceType)
@Nullable public final <R,EX extends Throwable> R accept(Visitor.TypeArgumentVisitor<R,EX> visitor) throws EX extends Throwable
Java.TypeArgumentvisit...()" method of Visitor.TypeArgumentVisitor for the concrete Java.TypeArgument type.accept in interface Java.TypeArgumentEX extends ThrowableCopyright © 2019. All rights reserved.