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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classIf the underlying AST is a lambda.static classIf the underlying AST is a method.static classIf the underlying AST is a statement or expression.static enumThe kinds of underlying ASTs.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final UnderlyingAST.KindThe kind of the underlying AST.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates an UnderlyingAST.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid
- 
Field Details- 
kindThe kind of the underlying AST.
 
- 
- 
Constructor Details- 
UnderlyingASTCreates an UnderlyingAST.- Parameters:
- kind- the kind of the AST
 
 
- 
- 
Method Details- 
getUid- Specified by:
- getUidin interface- org.plumelib.util.UniqueId
 
- 
getCodeReturns 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
 
-