public static class Java.TryStatement.LocalVariableDeclaratorResource extends Java.TryStatement.Resource
| Modifier and Type | Field and Description |
|---|---|
Java.Modifiers |
modifiers
The resource variable modifiers (annotations and/or flags like FINAL).
|
Java.Type |
type
The declared type of the resource variable.
|
Java.VariableDeclarator |
variableDeclarator
The "variable declarator" that follows the type.
|
NOWHERE| Constructor and Description |
|---|
LocalVariableDeclaratorResource(Location location,
Java.Modifiers modifiers,
Java.Type type,
Java.VariableDeclarator variableDeclarator) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.TryStatementResourceVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.TryStatementResourceVisitor for the concrete Java.TryStatement.Resource type. |
void |
setEnclosingTryStatement(Java.TryStatement ts)
Sets the enclosing scope for this object and all subordinate
Java.TryStatement.Resource objects. |
String |
toString() |
getLocation, throwCompileExceptionpublic final Java.Modifiers modifiers
public final Java.Type type
public final Java.VariableDeclarator variableDeclarator
public LocalVariableDeclaratorResource(Location location, Java.Modifiers modifiers, Java.Type type, Java.VariableDeclarator variableDeclarator)
modifiers - Only final allowedpublic void setEnclosingTryStatement(Java.TryStatement ts)
Java.TryStatement.ResourceJava.TryStatement.Resource objects.setEnclosingTryStatement in class Java.TryStatement.Resource@Nullable public <R,EX extends Throwable> R accept(Visitor.TryStatementResourceVisitor<R,EX> visitor) throws EX extends Throwable
Java.TryStatement.Resourcevisit...()" method of Visitor.TryStatementResourceVisitor for the concrete Java.TryStatement.Resource type.accept in class Java.TryStatement.ResourceEX extends ThrowableCopyright © 2019. All rights reserved.