Package 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.Package
,Java.Rvalue
,Java.Type
- Enclosing class:
- Java
-
Field Summary
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <R,
EX extends Throwable>
Raccept
(Visitor.AtomVisitor<R, EX> visitor) toLvalue()
final Java.Lvalue
toRvalue()
final Java.Rvalue
abstract String
toString()
toType()
final Java.Type
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Constructor Details
-
Atom
-
-
Method Details
-
toType
- Returns:
- This atom, converted to
Java.Type
, ornull
if this atom is not a type
-
toRvalue
- Returns:
- This atom, converted to
Java.Rvalue
, ornull
if this atom is not an rvalue
-
toLvalue
- Returns:
- This atom, converted to
Java.Lvalue
, ornull
if 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 extends Throwable
-