ExpressionTree
, Tree
public interface YieldTree extends ExpressionTree
function* id(){ var index = 0; while(index < 10) yield index++; }
Modifier and Type | Method and Description |
---|---|
ExpressionTree |
getExpression()
Returns the expression that is yielded.
|
boolean |
isStar()
Is this a yield * expression in a generator function?
For example:
|
accept, getEndPosition, getKind, getStartPosition
ExpressionTree getExpression()
boolean isStar()
function* id(){ yield 1; yield * anotherGeneratorFunc(); yield 10; }
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-09-03-162606.buildd.src