Package com.ibm.wala.cast.ir.translator
Class AstTranslator.CodeEntityContext
- java.lang.Object
-
- com.ibm.wala.cast.ir.translator.AstTranslator.CodeEntityContext
-
- All Implemented Interfaces:
AstTranslator.WalkContext
,CAstVisitor.Context
- Enclosing class:
- AstTranslator
public class AstTranslator.CodeEntityContext extends Object
-
-
Constructor Summary
Constructors Constructor Description CodeEntityContext(AstTranslator.WalkContext parent, AstTranslator.Scope entityScope, CAstEntity s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AstTranslator.IncipientCFG
cfg()
AstTranslator.Scope
currentScope()
Set<AstTranslator.Scope>
entityScopes()
Set<Pair<Pair<String,String>,Integer>>
exposeNameSet(CAstEntity entity, boolean writeSet)
Set<AstLexicalAccess.Access>
getAccesses(CAstEntity e)
Map<IBasicBlock,TypeReference[]>
getCatchTypes()
CAstControlFlowMap
getControlFlow()
AstTranslator.UnwindState
getUnwindState()
int
getValue(CAstNode n)
boolean
hasValue(CAstNode n)
void
setCatchType(CAstNode catchNode, TypeReference catchType)
void
setCatchType(IBasicBlock bb, TypeReference catchType)
int
setValue(CAstNode n, int v)
-
-
-
Constructor Detail
-
CodeEntityContext
public CodeEntityContext(AstTranslator.WalkContext parent, AstTranslator.Scope entityScope, CAstEntity s)
-
-
Method Detail
-
getAccesses
public Set<AstLexicalAccess.Access> getAccesses(CAstEntity e)
- Specified by:
getAccesses
in interfaceAstTranslator.WalkContext
-
exposeNameSet
public Set<Pair<Pair<String,String>,Integer>> exposeNameSet(CAstEntity entity, boolean writeSet)
- Specified by:
exposeNameSet
in interfaceAstTranslator.WalkContext
-
getControlFlow
public CAstControlFlowMap getControlFlow()
- Specified by:
getControlFlow
in interfaceAstTranslator.WalkContext
-
cfg
public AstTranslator.IncipientCFG cfg()
- Specified by:
cfg
in interfaceAstTranslator.WalkContext
-
currentScope
public AstTranslator.Scope currentScope()
- Specified by:
currentScope
in interfaceAstTranslator.WalkContext
-
entityScopes
public Set<AstTranslator.Scope> entityScopes()
- Specified by:
entityScopes
in interfaceAstTranslator.WalkContext
-
getUnwindState
public AstTranslator.UnwindState getUnwindState()
- Specified by:
getUnwindState
in interfaceAstTranslator.WalkContext
-
setCatchType
public void setCatchType(CAstNode catchNode, TypeReference catchType)
- Specified by:
setCatchType
in interfaceAstTranslator.WalkContext
-
setCatchType
public void setCatchType(IBasicBlock bb, TypeReference catchType)
- Specified by:
setCatchType
in interfaceAstTranslator.WalkContext
-
getCatchTypes
public Map<IBasicBlock,TypeReference[]> getCatchTypes()
- Specified by:
getCatchTypes
in interfaceAstTranslator.WalkContext
-
hasValue
public boolean hasValue(CAstNode n)
- Specified by:
hasValue
in interfaceAstTranslator.WalkContext
-
setValue
public final int setValue(CAstNode n, int v)
- Specified by:
setValue
in interfaceAstTranslator.WalkContext
-
getValue
public final int getValue(CAstNode n)
- Specified by:
getValue
in interfaceAstTranslator.WalkContext
-
-