janino.net

org.codehaus.janino
Class Java.Wildcard

java.lang.Object
  extended by 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
 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 Summary
Java.Wildcard()
           
Java.Wildcard(int bounds, Java.ReferenceType referenceType)
           
 
Method Summary
 void accept(Visitor.TypeArgumentVisitor visitor)
          Invokes the 'visit...()' method of Visitor.TypeArgumentVisitor for the concrete Java.TypeArgument type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BOUNDS_NONE

public static final int BOUNDS_NONE
Value for bounds indicating that this wildcard has no bounds; referenceType is irrelevant in this case.

See Also:
Constant Field Values

BOUNDS_EXTENDS

public static final int BOUNDS_EXTENDS
Value for bounds indicating that this wildcard has 'extends' bounds.

See Also:
Constant Field Values

BOUNDS_SUPER

public static final int BOUNDS_SUPER
Value for bounds indicating 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

Java.Wildcard

public Java.Wildcard()

Java.Wildcard

public Java.Wildcard(int bounds,
                     Java.ReferenceType referenceType)
Method Detail

accept

public void accept(Visitor.TypeArgumentVisitor visitor)
Description copied from interface: Java.TypeArgument
Invokes the 'visit...()' method of Visitor.TypeArgumentVisitor for the concrete Java.TypeArgument type.

Specified by:
accept in interface Java.TypeArgument

toString

public String toString()
Overrides:
toString in class Object

janino.net