Package org.codehaus.janino
Class Java.Wildcard
java.lang.Object
org.codehaus.janino.Java.Wildcard
- All Implemented Interfaces:
Java.TypeArgument
- Enclosing class:
Java
Representation of a JLS7 4.5.1 "wildcard".
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
The kind of bounds that this wildcard has.static final int
Value forbounds
indicating that this wildcard has "extends" bounds.static final int
Value forbounds
indicating that this wildcard has no bounds;referenceType
is irrelevant in this case.static final int
Value forbounds
indicating that this wildcard has "super" bounds.final Java.ReferenceType
The reference type of this wildcard's EXTENDS or SUPER bounds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,
EX extends Throwable>
Raccept
(Visitor.TypeArgumentVisitor<R, EX> visitor) Invokes the "visit...()
" method ofVisitor.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.void
setEnclosingScope
(Java.Scope enclosingScope) Sets the enclosing scope for this type argument.toString()
-
Field Details
-
BOUNDS_NONE
public static final int BOUNDS_NONEValue forbounds
indicating that this wildcard has no bounds;referenceType
is irrelevant in this case.- See Also:
-
BOUNDS_EXTENDS
public static final int BOUNDS_EXTENDSValue forbounds
indicating that this wildcard has "extends" bounds.- See Also:
-
BOUNDS_SUPER
public static final int BOUNDS_SUPERValue forbounds
indicating that this wildcard has "super" bounds.- See Also:
-
bounds
public final int boundsThe kind of bounds that this wildcard has.- See Also:
-
referenceType
The reference type of this wildcard's EXTENDS or SUPER bounds.
-
-
Constructor Details
-
Wildcard
public Wildcard() -
Wildcard
-
-
Method Details
-
setEnclosingScope
Description copied from interface:Java.TypeArgument
Sets the enclosing scope for this type argument.- Specified by:
setEnclosingScope
in interfaceJava.TypeArgument
-
accept
@Nullable public final <R,EX extends Throwable> R accept(Visitor.TypeArgumentVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.TypeArgument
Invokes the "visit...()
" method ofVisitor.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.- Specified by:
accept
in interfaceJava.TypeArgument
- Throws:
EX
-
toString
-