ExpressionTree
, Tree
public interface FunctionExpressionTree extends ExpressionTree
var func = function ( parameters ) body
var func = (x) => x+1
Modifier and Type | Method | Description |
---|---|---|
Tree |
getBody() |
Returns the body of this function.
|
IdentifierTree |
getName() |
Returns the name of the function being declared.
|
List<? extends ExpressionTree> |
getParameters() |
Returns the parameters of this function.
|
boolean |
isArrow() |
Is this a arrow 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()
Tree getBody()
BlockTree
when this
function has a block body. This is an ExpressionTree
when the function body
is a concise expression as in an expression arrow, or in an expression closure.boolean isStrict()
boolean isArrow()
boolean isGenerator()
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b144-1ubuntu1