StatementTree
, Tree
public interface VariableTree extends StatementTree
var name [ initializer ] ; var binding_pattern [ initializer ];
Modifier and Type | Method and Description |
---|---|
ExpressionTree |
getBinding()
Returns the binding of this declaration.
|
ExpressionTree |
getInitializer()
Returns the initial value expression for this variable.
|
boolean |
isConst()
Is this a const declaration?
|
boolean |
isLet()
Is this a let declaration?
|
accept, getEndPosition, getKind, getStartPosition
ExpressionTree getBinding()
IdentifierTree
for a binding identifier case (simple variable declaration).
This is an ObjectLiteralTree
or a ArrayLiteralTree
for a
destructuring declaration.ExpressionTree getInitializer()
boolean isConst()
boolean isLet()
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-08-31-194618.buildd.src