Java.BlockStatement, Java.Locatable, Java.Scopepublic static final class Java.LocalVariableDeclarationStatement extends Java.Statement
| Modifier and Type | Field | Description |
|---|---|---|
Java.Modifiers |
modifiers |
The local variable modifiers (annotations and/or flags like FINAL).
|
Java.Type |
type |
The declared type of the local variable.
|
Java.VariableDeclarator[] |
variableDeclarators |
The (one or more) 'variable declarators' that follow the type.
|
NOWHERElocalVariables| Constructor | Description |
|---|---|
LocalVariableDeclarationStatement(Location location,
Java.Modifiers modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(Visitor.BlockStatementVisitor visitor) |
Invokes the '
visit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
String |
toString() |
getLocation, throwCompileExceptiongetLocation, throwCompileExceptionfindLocalVariable, getEnclosingScope, setEnclosingScopepublic final Java.Modifiers modifiers
public final Java.Type type
public final Java.VariableDeclarator[] variableDeclarators
public LocalVariableDeclarationStatement(Location location, Java.Modifiers modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)
modifiers - Only "final" allowedpublic void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatementvisit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.Copyright © 2001–2019. All rights reserved.