janino.net

org.codehaus.janino
Class Java.RvalueMemberType

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.RvalueMemberType
All Implemented Interfaces:
Java.Locatable
Enclosing class:
Java

public static final class Java.RvalueMemberType
extends Java.Type

Representation of the first part of a JLS7 15.9 'Qualified class instance creation expression': The 'a.new MyClass' part of 'a.new MyClass(...)'.


Field Summary
 String identifier
          The simple name of the inner type being instantiated.
 Java.Rvalue rvalue
          The expression that represents the outer instance required for the instantiation of the inner type.
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.RvalueMemberType(Location location, Java.Rvalue rvalue, String identifier)
          Notice: The rvalue is not a subordinate object!
 
Method Summary
 void accept(Visitor.AtomVisitor visitor)
          Invokes the 'visit...()' method of Visitor.AtomVisitor for the concrete Java.Atom 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

rvalue

public final Java.Rvalue rvalue
The expression that represents the outer instance required for the instantiation of the inner type.


identifier

public final String identifier
The simple name of the inner type being instantiated.

Constructor Detail

Java.RvalueMemberType

public Java.RvalueMemberType(Location location,
                             Java.Rvalue rvalue,
                             String identifier)
Notice: The rvalue is not a subordinate object!

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

janino.net