org.codehaus.janino
Class Java.Atom
java.lang.Object
org.codehaus.janino.Java.Located
org.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.
Java.Atom
public Java.Atom(Location location)
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