public final class AstTranslator.RootContext extends Object implements AstTranslator.WalkContext
| Constructor and Description |
|---|
RootContext(CAstEntity N,
ModuleEntry module) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntityName(CAstEntity e,
String name) |
AstTranslator.IncipientCFG |
cfg() |
AstTranslator.Scope |
currentScope() |
Set<AstTranslator.Scope> |
entityScopes() |
Set<Pair<Pair<String,String>,Integer>> |
exposeNameSet(CAstEntity entity,
boolean writeSet) |
String |
file() |
Set<AstLexicalAccess.Access> |
getAccesses(CAstEntity e) |
Map<IBasicBlock,TypeReference[]> |
getCatchTypes() |
CAstControlFlowMap |
getControlFlow() |
String |
getEntityName(CAstEntity e) |
AstTranslator.Scope |
getGlobalScope() |
ModuleEntry |
getModule() |
String |
getName() |
CAstSourcePositionMap |
getSourceMap() |
AstTranslator.UnwindState |
getUnwindState() |
int |
getValue(CAstNode n) |
boolean |
hasValue(CAstNode n) |
void |
setCatchType(CAstNode castNode,
TypeReference catchType) |
void |
setCatchType(IBasicBlock bb,
TypeReference catchType) |
int |
setValue(CAstNode n,
int v) |
CAstEntity |
top() |
public RootContext(CAstEntity N, ModuleEntry module)
public ModuleEntry getModule()
getModule in interface AstTranslator.WalkContextpublic String file()
file in interface AstTranslator.WalkContextpublic CAstEntity top()
top in interface CAstVisitor.Contextpublic AstTranslator.Scope currentScope()
currentScope in interface AstTranslator.WalkContextpublic Set<AstTranslator.Scope> entityScopes()
entityScopes in interface AstTranslator.WalkContextpublic CAstSourcePositionMap getSourceMap()
getSourceMap in interface AstTranslator.WalkContextgetSourceMap in interface CAstVisitor.Contextpublic CAstControlFlowMap getControlFlow()
getControlFlow in interface AstTranslator.WalkContextpublic AstTranslator.IncipientCFG cfg()
cfg in interface AstTranslator.WalkContextpublic AstTranslator.UnwindState getUnwindState()
getUnwindState in interface AstTranslator.WalkContextpublic String getName()
getName in interface AstTranslator.WalkContextpublic void setCatchType(IBasicBlock bb, TypeReference catchType)
setCatchType in interface AstTranslator.WalkContextpublic void setCatchType(CAstNode castNode, TypeReference catchType)
setCatchType in interface AstTranslator.WalkContextpublic Map<IBasicBlock,TypeReference[]> getCatchTypes()
getCatchTypes in interface AstTranslator.WalkContextpublic void addEntityName(CAstEntity e, String name)
addEntityName in interface AstTranslator.WalkContextpublic String getEntityName(CAstEntity e)
getEntityName in interface AstTranslator.WalkContextpublic boolean hasValue(CAstNode n)
hasValue in interface AstTranslator.WalkContextpublic int setValue(CAstNode n, int v)
setValue in interface AstTranslator.WalkContextpublic int getValue(CAstNode n)
getValue in interface AstTranslator.WalkContextpublic Set<Pair<Pair<String,String>,Integer>> exposeNameSet(CAstEntity entity, boolean writeSet)
exposeNameSet in interface AstTranslator.WalkContextpublic Set<AstLexicalAccess.Access> getAccesses(CAstEntity e)
getAccesses in interface AstTranslator.WalkContextpublic AstTranslator.Scope getGlobalScope()
getGlobalScope in interface AstTranslator.WalkContext