StatementTree
, Tree
public 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, getStartPosition
IdentifierTree getName()
List<? extends ExpressionTree> getParameters()
BlockTree getBody()
boolean isStrict()
boolean isGenerator()
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-9b153-1