janino.net

org.codehaus.janino
Class Java.ReferenceType

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.Atom
          extended by org.codehaus.janino.Java.Type
              extended by org.codehaus.janino.Java.ReferenceType
All Implemented Interfaces:
Java.Locatable, Java.TypeArgument
Enclosing class:
Java

public static final class Java.ReferenceType
extends Java.Type
implements Java.TypeArgument

representation of a JLS7 4.3 reference type.


Field Summary
 String[] identifiers
          The list of (dot-separated) identifiers that pose the reference type, e.g.
 Java.TypeArgument[] optionalTypeArguments
          The optional type arguments of the reference type.
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.ReferenceType(Location location, String[] identifiers, Java.TypeArgument[] optionalTypeArguments)
           
 
Method Summary
 void accept(Visitor.AtomVisitor visitor)
          Invokes the 'visit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type.
 void accept(Visitor.TypeArgumentVisitor visitor)
          Invokes the 'visit...()' method of Visitor.TypeArgumentVisitor for the concrete Java.TypeArgument type.
 void accept(Visitor.TypeVisitor visitor)
          Invokes the 'visit...()' method of Visitor.TypeVisitor for the concrete Java.Type type.
 String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Type
getEnclosingScope, setEnclosingScope, toType
 
Methods inherited from class org.codehaus.janino.Java.Atom
toLvalue, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toTypeOrCompileException
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

identifiers

public final String[] identifiers
The list of (dot-separated) identifiers that pose the reference type, e.g. "java", "util", "Map".


optionalTypeArguments

public final Java.TypeArgument[] optionalTypeArguments
The optional type arguments of the reference type.

Constructor Detail

Java.ReferenceType

public Java.ReferenceType(Location location,
                          String[] identifiers,
                          Java.TypeArgument[] optionalTypeArguments)
Method Detail

toString

public String toString()
Specified by:
toString in class Java.Atom

accept

public void accept(Visitor.AtomVisitor visitor)
Description copied from class: Java.Atom
Invokes the 'visit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type.

Specified by:
accept in class Java.Atom

accept

public void accept(Visitor.TypeVisitor visitor)
Description copied from class: Java.Type
Invokes the 'visit...()' method of Visitor.TypeVisitor for the concrete Java.Type type.

Specified by:
accept in class Java.Type

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

janino.net