public static class UnderlyingAST.CFGLambda extends UnderlyingAST
UnderlyingAST.CFGLambda, UnderlyingAST.CFGMethod, UnderlyingAST.CFGStatement, UnderlyingAST.Kind
kind
Constructor and Description |
---|
CFGLambda(LambdaExpressionTree lambda,
ClassTree classTree,
@Nullable MethodTree enclosingMethod)
Create a new CFGLambda.
|
Modifier and Type | Method and Description |
---|---|
ClassTree |
getClassTree()
Returns the enclosing class of the lambda.
|
Tree |
getCode()
Returns the code that corresponds to the CFG.
|
@Nullable MethodTree |
getEnclosingMethod()
Returns the enclosing method of the lambda.
|
@Nullable String |
getEnclosingMethodName()
Returns the name of the enclosing method of the lambda.
|
LambdaExpressionTree |
getLambdaTree()
Returns the lambda expression tree.
|
@Nullable MethodTree |
getMethod()
Deprecated.
use #getEnclosingMethod()
|
@Nullable String |
getMethodName()
Deprecated.
use #getEnclosingMethodName()
|
String |
getSimpleClassName()
Returns the simple name of the enclosing class.
|
String |
toString() |
getKind, getUid
public CFGLambda(LambdaExpressionTree lambda, ClassTree classTree, @Nullable MethodTree enclosingMethod)
lambda
- the lambda expressionclassTree
- the enclosing class of the lambdaenclosingMethod
- the enclosing method of the lambdapublic Tree getCode()
UnderlyingAST
getCode
in class UnderlyingAST
public LambdaExpressionTree getLambdaTree()
public ClassTree getClassTree()
public String getSimpleClassName()
@Deprecated public @Nullable MethodTree getMethod()
null
if there is no enclosing methodpublic @Nullable MethodTree getEnclosingMethod()
null
if there is no enclosing method@Deprecated public @Nullable String getMethodName()
null
if there is no
enclosing methodpublic @Nullable String getEnclosingMethodName()
null
if there is no
enclosing method