Package org.codehaus.janino
Class Java.TryStatement.VariableAccessResource
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.TryStatement.Resource
-
- org.codehaus.janino.Java.TryStatement.VariableAccessResource
-
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
- Java.TryStatement
public static class Java.TryStatement.VariableAccessResource extends Java.TryStatement.Resource
Representation of a JLS9 14.20.2 "variable-access resource" in a TRY-with-resources statement.
-
-
Field Summary
Fields Modifier and Type Field Description Java.RvaluevariableAccessThe rvalue of this resource.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description VariableAccessResource(Location location, Java.Rvalue variableAccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends Throwable>
Raccept(Visitor.TryStatementResourceVisitor<R,EX> visitor)Invokes the "visit...()" method ofVisitor.TryStatementResourceVisitorfor the concreteJava.TryStatement.Resourcetype.voidsetEnclosingTryStatement(Java.TryStatement ts)Sets the enclosing scope for this object and all subordinateJava.TryStatement.Resourceobjects.StringtoString()-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Field Detail
-
variableAccess
public final Java.Rvalue variableAccess
The rvalue of this resource.
-
-
Constructor Detail
-
VariableAccessResource
public VariableAccessResource(Location location, Java.Rvalue variableAccess)
-
-
Method Detail
-
setEnclosingTryStatement
public void setEnclosingTryStatement(Java.TryStatement ts)
Description copied from class:Java.TryStatement.ResourceSets the enclosing scope for this object and all subordinateJava.TryStatement.Resourceobjects.- Specified by:
setEnclosingTryStatementin classJava.TryStatement.Resource
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.TryStatementResourceVisitor<R,EX> visitor) throws EX extends Throwable
Description copied from class:Java.TryStatement.ResourceInvokes the "visit...()" method ofVisitor.TryStatementResourceVisitorfor the concreteJava.TryStatement.Resourcetype.- Specified by:
acceptin classJava.TryStatement.Resource- Throws:
EX extends Throwable
-
-