public static class TranslatorToCAst.DelegatingContext<C extends TranslatorToCAst.WalkContext<C,T>,T> extends Object implements TranslatorToCAst.WalkContext<C,T>
Modifier | Constructor and Description |
---|---|
protected |
DelegatingContext(C parent) |
Modifier and Type | Method and Description |
---|---|
void |
addScopedEntity(CAstNode newNode,
CAstEntity visit)
associate a child entity with a given CAstNode, e.g.
|
CAstControlFlowRecorder |
cfg()
for recording control-flow relationships among the CAst nodes
|
T |
getBreakFor(String label)
for a 'break' style goto, return the control flow target
|
T |
getContinueFor(String label)
for a 'continue' style goto, return the control flow target
|
CAstNodeTypeMapRecorder |
getNodeTypeMap()
for recording types of nodes
|
Map<CAstNode,Collection<CAstEntity>> |
getScopedEntities()
get a mapping from CAstNodes to the scoped entities (e.g.
|
CAstSourcePositionRecorder |
pos()
for recording source positions
|
protected final C extends TranslatorToCAst.WalkContext<C,T> parent
protected DelegatingContext(C parent)
public CAstControlFlowRecorder cfg()
TranslatorToCAst.WalkContext
cfg
in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
public CAstSourcePositionRecorder pos()
TranslatorToCAst.WalkContext
pos
in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
public CAstNodeTypeMapRecorder getNodeTypeMap()
TranslatorToCAst.WalkContext
getNodeTypeMap
in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
public T getContinueFor(String label)
TranslatorToCAst.WalkContext
getContinueFor
in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
public T getBreakFor(String label)
TranslatorToCAst.WalkContext
getBreakFor
in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
public void addScopedEntity(CAstNode newNode, CAstEntity visit)
TranslatorToCAst.WalkContext
addScopedEntity
in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
public Map<CAstNode,Collection<CAstEntity>> getScopedEntities()
TranslatorToCAst.WalkContext
null
to
those entities not corresponding to any node (e.g nested classes)getScopedEntities
in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>