Class UnderlyingAST
java.lang.Object
org.checkerframework.dataflow.cfg.UnderlyingAST
- All Implemented Interfaces:
org.plumelib.util.UniqueId
- Direct Known Subclasses:
UnderlyingAST.CFGLambda
,UnderlyingAST.CFGMethod
,UnderlyingAST.CFGStatement
Represents an abstract syntax tree of type
Tree
that underlies a given control flow
graph.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
If the underlying AST is a lambda.static class
If the underlying AST is a method.static class
If the underlying AST is a statement or expression.static enum
The kinds of underlying ASTs. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UnderlyingAST.Kind
The kind of the underlying AST. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates an UnderlyingAST. -
Method Summary
-
Field Details
-
Constructor Details
-
Method Details
-
getUid
- Specified by:
getUid
in interfaceorg.plumelib.util.UniqueId
-
getCode
Returns 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).- Returns:
- the code that corresponds to the CFG
-
getKind
-