ExpressionTree, Treepublic interface YieldTree extends ExpressionTree
function* id(){
var index = 0;
while(index < 10)
yield index++;
}
| Modifier and Type | Method | Description |
|---|---|---|
ExpressionTree |
getExpression() |
Returns the expression that is yielded.
|
boolean |
isStar() |
Is this a yield * expression in a generator function?
|
accept, getEndPosition, getKind, getStartPositionExpressionTree getExpression()
boolean isStar()
function* id(){
yield 1;
yield * anotherGeneratorFunc();
yield 10;
}
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-Debian+0-9b153-2