Class UnderlyingAST.CFGLambda
java.lang.Object
org.checkerframework.dataflow.cfg.UnderlyingAST
org.checkerframework.dataflow.cfg.UnderlyingAST.CFGLambda
- All Implemented Interfaces:
- org.plumelib.util.UniqueId
- Enclosing class:
- UnderlyingAST
If the underlying AST is a lambda.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.checkerframework.dataflow.cfg.UnderlyingASTUnderlyingAST.CFGLambda, UnderlyingAST.CFGMethod, UnderlyingAST.CFGStatement, UnderlyingAST.Kind
- 
Field SummaryFields inherited from class org.checkerframework.dataflow.cfg.UnderlyingASTkind
- 
Constructor SummaryConstructorsConstructorDescriptionCFGLambda(LambdaExpressionTree lambda, ClassTree classTree, @Nullable MethodTree enclosingMethod) Create a new CFGLambda.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enclosing class of the lambda.getCode()Returns the code that corresponds to the CFG.Returns the enclosing method of the lambda.Returns the name of the enclosing method of the lambda.Returns the lambda expression tree.Deprecated.use #getEnclosingMethod()Deprecated.use #getEnclosingMethodName()Returns the simple name of the enclosing class.toString()Methods inherited from class org.checkerframework.dataflow.cfg.UnderlyingASTgetKind, getUidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid
- 
Constructor Details- 
CFGLambdapublic CFGLambda(LambdaExpressionTree lambda, ClassTree classTree, @Nullable MethodTree enclosingMethod) Create a new CFGLambda.- Parameters:
- lambda- the lambda expression
- classTree- the enclosing class of the lambda
- enclosingMethod- the enclosing method of the lambda
 
 
- 
- 
Method Details- 
getCodeDescription copied from class:UnderlyingASTReturns the code that corresponds to the CFG. For a method or lamdda, this returns the body. For other constructs, it returns the tree itself (a statement or expression).- Specified by:
- getCodein class- UnderlyingAST
- Returns:
- the code that corresponds to the CFG
 
- 
getLambdaTreeReturns the lambda expression tree.- Returns:
- the lambda expression tree
 
- 
getClassTreeReturns the enclosing class of the lambda.- Returns:
- the enclosing class of the lambda
 
- 
getSimpleClassNameReturns the simple name of the enclosing class.- Returns:
- the simple name of the enclosing class
 
- 
getMethodDeprecated.use #getEnclosingMethod()Returns the enclosing method of the lambda.- Returns:
- the enclosing method of the lambda, or nullif there is no enclosing method
 
- 
getEnclosingMethodReturns the enclosing method of the lambda.- Returns:
- the enclosing method of the lambda, or nullif there is no enclosing method
 
- 
getMethodNameDeprecated.use #getEnclosingMethodName()Returns the name of the enclosing method of the lambda.- Returns:
- the name of the enclosing method of the lambda, or nullif there is no enclosing method
 
- 
getEnclosingMethodNameReturns the name of the enclosing method of the lambda.- Returns:
- the name of the enclosing method of the lambda, or nullif there is no enclosing method
 
- 
toString
 
-