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.Package, Java.Rvalue, Java.Type
- Enclosing class:
Java
-
Field Summary
Fields inherited from class Java.Located
NOWHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <R, EX extends Throwable>
Raccept(Visitor.AtomVisitor<R, EX> visitor) toLvalue()final Java.LvaluetoRvalue()final Java.Rvalueabstract StringtoString()toType()final Java.TypeMethods inherited from class Java.Located
getLocation, throwCompileException
-
Constructor Details
-
Atom
-
-
Method Details
-
toType
-
toRvalue
- Returns:
- This atom, converted to
Java.Rvalue, ornullif this atom is not an rvalue
-
toLvalue
- Returns:
- This atom, converted to
Java.Lvalue, ornullif this atom is not an lvalue
-
toString
-
toTypeOrCompileException
- Returns:
- This atom, converted to
Java.Type - Throws:
CompileException- This atom is not aJava.Type
-
toRvalueOrCompileException
- Returns:
- This atom, converted to an
Java.Rvalue - Throws:
CompileException- This atom is not anJava.Rvalue
-
toLvalueOrCompileException
- Returns:
- This atom, converted to an
Java.Lvalue - Throws:
CompileException- This atom is not aJava.Lvalue
-
accept
@Nullable public abstract <R, EX extends Throwable> R accept(Visitor.AtomVisitor<R, EX> visitor) throws EX- Throws:
EX
-