Local variable declaration expression AST node type.
This kind of node collects together several variable declaration fragments (VariableDeclarationFragment
) into a single expression (Expression
), all sharing the same modifiers and base type. This type of node can be used as the initializer of a ForStatement
, or wrapped in an ExpressionStatement
to form the equivalent of a VariableDeclarationStatement
.
For JLS2:
VariableDeclarationExpression: { Modifier } Type VariableDeclarationFragment { , VariableDeclarationFragment }
For JLS3, the modifier flags were replaced by a list of modifier nodes (intermixed with annotations):
VariableDeclarationExpression: { ExtendedModifier } Type VariableDeclarationFragment { , VariableDeclarationFragment }
@since 2.0
@noinstantiate This class is not intended to be instantiated by clients.