StatementTree
, Tree
public interface VariableTree extends StatementTree
var name [ initializer ] ; var binding_pattern [ initializer ];
Modifier and Type | Method | 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()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2014, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b159-1ubuntu1