Web Site

org.codehaus.janino
Class Java.Atom

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.Atom
All Implemented Interfaces:
Java.Locatable
Direct Known Subclasses:
Java.ConstructorInvocation, Java.Rvalue, Java.Type
Enclosing class:
Java

public abstract static class Java.Atom
extends org.codehaus.janino.Java.Located

Abstract base class for Java.Type, Java.Rvalue and Java.Lvalue.


Constructor Summary
Java.Atom(Location location)
           
 
Method Summary
 Location getLocation()
           
 void throwParseException(String message)
          Throw a Parser.ParseException with the given message and this object's location.
 Java.Lvalue toLvalue()
           
 Java.Lvalue toLvalueOrPE()
           
 Java.Rvalue toRvalue()
           
 Java.Rvalue toRvalueOrPE()
           
abstract  String toString()
           
 Java.Type toType()
           
 Java.Type toTypeOrPE()
           
abstract  void visit(org.codehaus.janino.Visitor.AtomVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Java.Atom

public Java.Atom(Location location)
Method Detail

toType

public Java.Type toType()

toRvalue

public Java.Rvalue toRvalue()

toLvalue

public Java.Lvalue toLvalue()

toString

public abstract String toString()

toTypeOrPE

public final Java.Type toTypeOrPE()
                           throws Parser.ParseException
Throws:
Parser.ParseException

toRvalueOrPE

public final Java.Rvalue toRvalueOrPE()
                               throws Parser.ParseException
Throws:
Parser.ParseException

toLvalueOrPE

public final Java.Lvalue toLvalueOrPE()
                               throws Parser.ParseException
Throws:
Parser.ParseException

visit

public abstract void visit(org.codehaus.janino.Visitor.AtomVisitor visitor)

getLocation

public Location getLocation()
Specified by:
getLocation in interface Java.Locatable

throwParseException

public void throwParseException(String message)
                         throws Parser.ParseException
Description copied from interface: Java.Locatable
Throw a Parser.ParseException with the given message and this object's location.

Specified by:
throwParseException in interface Java.Locatable
Parameters:
message - The message to report
Throws:
Parser.ParseException

Web Site