public static class TranslatorToCAst.FunctionContext<C extends TranslatorToCAst.WalkContext<C,T>,T> extends TranslatorToCAst.DelegatingContext<C,T>
parent| Modifier | Constructor and Description |
|---|---|
protected |
FunctionContext(C parent,
T s) |
| Modifier and Type | Method and Description |
|---|---|
void |
addScopedEntity(CAstNode construct,
CAstEntity e)
associate a child entity with a given CAstNode, e.g.
|
CAstControlFlowRecorder |
cfg()
for recording control-flow relationships among the CAst nodes
|
java.util.Map<CAstNode,java.util.Collection<CAstEntity>> |
getScopedEntities()
get a mapping from CAstNodes to the scoped entities (e.g.
|
CAstSourcePositionRecorder |
pos()
for recording source positions
|
T |
top() |
getParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNameDecl, getBreakFor, getCatchTarget, getCatchTarget, getContinueFor, getNameDecls, getNodeTypeMappublic T top()
top in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>top in class TranslatorToCAst.DelegatingContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public void addScopedEntity(CAstNode construct, CAstEntity e)
TranslatorToCAst.WalkContextpublic java.util.Map<CAstNode,java.util.Collection<CAstEntity>> getScopedEntities()
TranslatorToCAst.WalkContextnull to those entities not corresponding to any
node (e.g nested classes)public CAstControlFlowRecorder cfg()
TranslatorToCAst.WalkContextpublic CAstSourcePositionRecorder pos()
TranslatorToCAst.WalkContext