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.IncipientCFGcfg()AstTranslator.ScopecurrentScope()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()CAstControlFlowMapgetControlFlow()AstTranslator.UnwindStategetUnwindState()intgetValue(CAstNode n)booleanhasValue(CAstNode n)voidsetCatchType(CAstNode catchNode, TypeReference catchType)voidsetCatchType(IBasicBlock bb, TypeReference catchType)intsetValue(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:
getAccessesin interfaceAstTranslator.WalkContext
-
exposeNameSet
public Set<Pair<Pair<String,String>,Integer>> exposeNameSet(CAstEntity entity, boolean writeSet)
- Specified by:
exposeNameSetin interfaceAstTranslator.WalkContext
-
getControlFlow
public CAstControlFlowMap getControlFlow()
- Specified by:
getControlFlowin interfaceAstTranslator.WalkContext
-
cfg
public AstTranslator.IncipientCFG cfg()
- Specified by:
cfgin interfaceAstTranslator.WalkContext
-
currentScope
public AstTranslator.Scope currentScope()
- Specified by:
currentScopein interfaceAstTranslator.WalkContext
-
entityScopes
public Set<AstTranslator.Scope> entityScopes()
- Specified by:
entityScopesin interfaceAstTranslator.WalkContext
-
getUnwindState
public AstTranslator.UnwindState getUnwindState()
- Specified by:
getUnwindStatein interfaceAstTranslator.WalkContext
-
setCatchType
public void setCatchType(CAstNode catchNode, TypeReference catchType)
- Specified by:
setCatchTypein interfaceAstTranslator.WalkContext
-
setCatchType
public void setCatchType(IBasicBlock bb, TypeReference catchType)
- Specified by:
setCatchTypein interfaceAstTranslator.WalkContext
-
getCatchTypes
public Map<IBasicBlock,TypeReference[]> getCatchTypes()
- Specified by:
getCatchTypesin interfaceAstTranslator.WalkContext
-
hasValue
public boolean hasValue(CAstNode n)
- Specified by:
hasValuein interfaceAstTranslator.WalkContext
-
setValue
public final int setValue(CAstNode n, int v)
- Specified by:
setValuein interfaceAstTranslator.WalkContext
-
getValue
public final int getValue(CAstNode n)
- Specified by:
getValuein interfaceAstTranslator.WalkContext
-
-