StatementTree, Treepublic interface FunctionDeclarationTree extends StatementTree
function name
( parameters )
body
function* name
( parameters )
body
| Modifier and Type | Method | Description |
|---|---|---|
BlockTree |
getBody() |
Returns the body of code of this function.
|
IdentifierTree |
getName() |
Returns the name of the function being declared.
|
List<? extends ExpressionTree> |
getParameters() |
Returns the parameters of this function.
|
boolean |
isGenerator() |
Is this a generator function?
|
boolean |
isStrict() |
Is this a strict function?
|
accept, getEndPosition, getKind, getStartPositionIdentifierTree getName()
List<? extends ExpressionTree> getParameters()
BlockTree getBody()
boolean isStrict()
boolean isGenerator()
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b143-1ubuntu1