StatementTree
, Tree
public interface FunctionDeclarationTree extends StatementTree
function name ( parameters ) body
function* name ( parameters ) body
Modifier and Type | Method and 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, getStartPosition
IdentifierTree getName()
List<? extends ExpressionTree> getParameters()
BlockTree getBody()
boolean isStrict()
boolean isGenerator()
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-09-03-162606.buildd.src