Package org.codehaus.janino
Class Java.Wildcard
- java.lang.Object
-
- org.codehaus.janino.Java.Wildcard
-
- All Implemented Interfaces:
Java.TypeArgument
- Enclosing class:
- Java
public static class Java.Wildcard extends Object implements Java.TypeArgument
Representation of a JLS7 4.5.1 'wildcard'.
-
-
Field Summary
Fields Modifier and Type Field Description intboundsThe kind of bounds that this wildcard has.static intBOUNDS_EXTENDSValue forboundsindicating that this wildcard has 'extends' bounds.static intBOUNDS_NONEValue forboundsindicating that this wildcard has no bounds;referenceTypeis irrelevant in this case.static intBOUNDS_SUPERValue forboundsindicating that this wildcard has 'super' bounds.Java.ReferenceTypereferenceTypeThe reference type of this wildcard's EXTENDS or SUPER bounds.
-
Constructor Summary
Constructors Constructor Description Wildcard()Wildcard(int bounds, Java.ReferenceType referenceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor.TypeArgumentVisitor visitor)Invokes the 'visit...()' method ofVisitor.TypeArgumentVisitorfor the concreteJava.TypeArgumenttype.StringtoString()
-
-
-
Field Detail
-
BOUNDS_NONE
public static final int BOUNDS_NONE
Value forboundsindicating that this wildcard has no bounds;referenceTypeis irrelevant in this case.- See Also:
- Constant Field Values
-
BOUNDS_EXTENDS
public static final int BOUNDS_EXTENDS
Value forboundsindicating that this wildcard has 'extends' bounds.- See Also:
- Constant Field Values
-
BOUNDS_SUPER
public static final int BOUNDS_SUPER
Value forboundsindicating that this wildcard has 'super' bounds.- See Also:
- Constant Field Values
-
bounds
public final int bounds
The kind of bounds that this wildcard has.- See Also:
BOUNDS_NONE,BOUNDS_EXTENDS,BOUNDS_SUPER
-
referenceType
public final Java.ReferenceType referenceType
The reference type of this wildcard's EXTENDS or SUPER bounds.
-
-
Constructor Detail
-
Wildcard
public Wildcard()
-
Wildcard
public Wildcard(int bounds, Java.ReferenceType referenceType)
-
-
Method Detail
-
accept
public void accept(Visitor.TypeArgumentVisitor visitor)
Description copied from interface:Java.TypeArgumentInvokes the 'visit...()' method ofVisitor.TypeArgumentVisitorfor the concreteJava.TypeArgumenttype.- Specified by:
acceptin interfaceJava.TypeArgument
-
-