Package org.sonar.plugins.java.api.tree
Interface LambdaExpressionTree
- All Superinterfaces:
ExpressionTree
,Tree
- All Known Implementing Classes:
LambdaExpressionTreeImpl
Lambda expression.
For example:
() -> { }
x -> x + 1
(x, y) -> { return x + y; }
(List<String> ls) -> ls.size()
- Since:
- Java 1.8
-
Nested Class Summary
-
Method Summary
Methods inherited from interface org.sonar.plugins.java.api.tree.ExpressionTree
asConstant, asConstant, symbolType
-
Method Details
-
openParenToken
-
parameters
List<VariableTree> parameters() -
closeParenToken
-
arrowToken
SyntaxToken arrowToken() -
body
Tree body() -
symbol
Symbol.MethodSymbol symbol() -
cfg
ControlFlowGraph cfg()Compute a CFG for the body of the lambda.- Returns:
- the CFG corresponding to the expression or the body of the lambda.
-