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 intThe kind of bounds that this wildcard has.static final intValue forboundsindicating that this wildcard has "extends" bounds.static final intValue forboundsindicating that this wildcard has no bounds;referenceTypeis irrelevant in this case.static final intValue forboundsindicating that this wildcard has "super" bounds.final Java.ReferenceTypeThe 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.TypeArgumentVisitorfor the concreteJava.TypeArgumenttype.voidsetEnclosingScope(Java.Scope enclosingScope) Sets the enclosing scope for this type argument.toString()
-
Field Details
-
BOUNDS_NONE
public static final int BOUNDS_NONEValue forboundsindicating that this wildcard has no bounds;referenceTypeis irrelevant in this case.- See Also:
-
BOUNDS_EXTENDS
public static final int BOUNDS_EXTENDSValue forboundsindicating that this wildcard has "extends" bounds.- See Also:
-
BOUNDS_SUPER
public static final int BOUNDS_SUPERValue forboundsindicating 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.TypeArgumentSets the enclosing scope for this type argument.- Specified by:
setEnclosingScopein interfaceJava.TypeArgument
-
accept
@Nullable public final <R, EX extends Throwable> R accept(Visitor.TypeArgumentVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.TypeArgumentInvokes the "visit...()" method ofVisitor.TypeArgumentVisitorfor the concreteJava.TypeArgumenttype.- Specified by:
acceptin interfaceJava.TypeArgument- Throws:
EX
-
toString
-