Package com.ibm.wala.cast.ir.translator
Class AstTranslator.RootContext
- java.lang.Object
-
- com.ibm.wala.cast.ir.translator.AstTranslator.RootContext
-
- All Implemented Interfaces:
AstTranslator.WalkContext
,CAstVisitor.Context
- Enclosing class:
- AstTranslator
public final class AstTranslator.RootContext extends Object implements AstTranslator.WalkContext
-
-
Constructor Summary
Constructors Constructor Description RootContext(CAstEntity N, ModuleEntry module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
RootContext
public RootContext(CAstEntity N, ModuleEntry module)
-
-
Method Detail
-
getModule
public ModuleEntry getModule()
- Specified by:
getModule
in interfaceAstTranslator.WalkContext
-
file
public String file()
- Specified by:
file
in interfaceAstTranslator.WalkContext
-
top
public CAstEntity top()
- Specified by:
top
in interfaceCAstVisitor.Context
-
currentScope
public AstTranslator.Scope currentScope()
- Specified by:
currentScope
in interfaceAstTranslator.WalkContext
-
entityScopes
public Set<AstTranslator.Scope> entityScopes()
- Specified by:
entityScopes
in interfaceAstTranslator.WalkContext
-
getSourceMap
public CAstSourcePositionMap getSourceMap()
- Specified by:
getSourceMap
in interfaceAstTranslator.WalkContext
- Specified by:
getSourceMap
in interfaceCAstVisitor.Context
-
getControlFlow
public CAstControlFlowMap getControlFlow()
- Specified by:
getControlFlow
in interfaceAstTranslator.WalkContext
-
cfg
public AstTranslator.IncipientCFG cfg()
- Specified by:
cfg
in interfaceAstTranslator.WalkContext
-
getUnwindState
public AstTranslator.UnwindState getUnwindState()
- Specified by:
getUnwindState
in interfaceAstTranslator.WalkContext
-
getName
public String getName()
- Specified by:
getName
in interfaceAstTranslator.WalkContext
-
setCatchType
public void setCatchType(IBasicBlock bb, TypeReference catchType)
- Specified by:
setCatchType
in interfaceAstTranslator.WalkContext
-
setCatchType
public void setCatchType(CAstNode castNode, TypeReference catchType)
- Specified by:
setCatchType
in interfaceAstTranslator.WalkContext
-
getCatchTypes
public Map<IBasicBlock,TypeReference[]> getCatchTypes()
- Specified by:
getCatchTypes
in interfaceAstTranslator.WalkContext
-
addEntityName
public void addEntityName(CAstEntity e, String name)
- Specified by:
addEntityName
in interfaceAstTranslator.WalkContext
-
getEntityName
public String getEntityName(CAstEntity e)
- Specified by:
getEntityName
in interfaceAstTranslator.WalkContext
-
hasValue
public boolean hasValue(CAstNode n)
- Specified by:
hasValue
in interfaceAstTranslator.WalkContext
-
setValue
public int setValue(CAstNode n, int v)
- Specified by:
setValue
in interfaceAstTranslator.WalkContext
-
getValue
public int getValue(CAstNode n)
- Specified by:
getValue
in interfaceAstTranslator.WalkContext
-
exposeNameSet
public Set<Pair<Pair<String,String>,Integer>> exposeNameSet(CAstEntity entity, boolean writeSet)
- Specified by:
exposeNameSet
in interfaceAstTranslator.WalkContext
-
getAccesses
public Set<AstLexicalAccess.Access> getAccesses(CAstEntity e)
- Specified by:
getAccesses
in interfaceAstTranslator.WalkContext
-
getGlobalScope
public AstTranslator.Scope getGlobalScope()
- Specified by:
getGlobalScope
in interfaceAstTranslator.WalkContext
-
-