public static class TranslatorToCAst.RootContext<C extends TranslatorToCAst.WalkContext<C,T>,T> extends java.lang.Object implements TranslatorToCAst.WalkContext<C,T>
| Constructor and Description |
|---|
RootContext() |
| 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(java.lang.String label)
for a 'break' style goto, return the control flow target
|
T |
getContinueFor(java.lang.String label)
for a 'continue' style goto, return the control flow target
|
java.util.List<CAstNode> |
getNameDecls() |
CAstNodeTypeMapRecorder |
getNodeTypeMap()
for recording types of nodes
|
TranslatorToCAst.WalkContext<C,T> |
getParent() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNameDecl, getCatchTarget, getCatchTargetpublic java.util.Map<CAstNode,java.util.Collection<CAstEntity>> getScopedEntities()
TranslatorToCAst.WalkContextnull to those entities not corresponding to any
node (e.g nested classes)getScopedEntities in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public java.util.List<CAstNode> getNameDecls()
getNameDecls in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public void addScopedEntity(CAstNode newNode, CAstEntity visit)
TranslatorToCAst.WalkContextaddScopedEntity in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public CAstControlFlowRecorder cfg()
TranslatorToCAst.WalkContextcfg in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public CAstSourcePositionRecorder pos()
TranslatorToCAst.WalkContextpos in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public CAstNodeTypeMapRecorder getNodeTypeMap()
TranslatorToCAst.WalkContextgetNodeTypeMap in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public T getContinueFor(java.lang.String label)
TranslatorToCAst.WalkContextgetContinueFor in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public T getBreakFor(java.lang.String label)
TranslatorToCAst.WalkContextgetBreakFor in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public T top()
top in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>public TranslatorToCAst.WalkContext<C,T> getParent()
getParent in interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>