- 
- All Superinterfaces:
- ExpressionTree,- Tree
 
 
 public interface FunctionExpressionTree extends ExpressionTree A tree node for function expressions including arrow functions. For example:var func = function ( parameters ) bodyvar func = (x) => x+1 - Since:
- 9
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description TreegetBody()Returns the body of this function.IdentifierTreegetName()Returns the name of the function being declared.List<? extends ExpressionTree>getParameters()Returns the parameters of this function.booleanisArrow()Is this a arrow function?booleanisGenerator()Is this a generator function?booleanisStrict()Is this a strict function?- 
Methods inherited from interface jdk.nashorn.api.tree.Treeaccept, getEndPosition, getKind, getStartPosition
 
- 
 
- 
- 
- 
Method Detail- 
getNameIdentifierTree getName() Returns the name of the function being declared.- Returns:
- name the function declared
 
 - 
getParametersList<? extends ExpressionTree> getParameters() Returns the parameters of this function.- Returns:
- the list of parameters
 
 - 
getBodyTree getBody() Returns the body of this function. This may be aBlockTreewhen this function has a block body. This is anExpressionTreewhen the function body is a concise expression as in an expression arrow, or in an expression closure.- Returns:
- the body of this function
 
 - 
isStrictboolean isStrict() Is this a strict function?- Returns:
- true if this function is strict
 
 - 
isArrowboolean isArrow() Is this a arrow function?- Returns:
- true if this is a arrow function
 
 - 
isGeneratorboolean isGenerator() Is this a generator function?- Returns:
- true if this is a generator function
 
 
- 
 
-