Class JavaScriptScopeMappingInstanceKeys
java.lang.Object
com.ibm.wala.cast.ipa.callgraph.ScopeMappingInstanceKeys
com.ibm.wala.cast.js.ipa.callgraph.JavaScriptScopeMappingInstanceKeys
- All Implemented Interfaces:
InstanceKeyFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class ScopeMappingInstanceKeys
ScopeMappingInstanceKeys.ScopeMappingInstanceKey -
Field Summary
Fields inherited from class ScopeMappingInstanceKeys
builder -
Constructor Summary
ConstructorsConstructorDescriptionJavaScriptScopeMappingInstanceKeys(IClassHierarchy cha, PropagationCallGraphBuilder builder, InstanceKeyFactory basic) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<CGNode> getConstructorCallers(ScopeMappingInstanceKeys.ScopeMappingInstanceKey smik, Pair<String, String> name) get the CGNodes corresponding to the method that invoked the constructor for smikprotected AstMethod.LexicalParent[]getParents(InstanceKey base) protected booleanisTrueConstructorCall(Pair<String, String> name, CGNode callerOfConstructor) protected booleandoes base require a scope mapping key? Typically, true if base is allocated in a nested lexical scope, to handle the case of base being a function that performs closure accesses
-
Constructor Details
-
JavaScriptScopeMappingInstanceKeys
public JavaScriptScopeMappingInstanceKeys(IClassHierarchy cha, PropagationCallGraphBuilder builder, InstanceKeyFactory basic)
-
-
Method Details
-
getParents
-
needsScopeMappingKey
Description copied from class:ScopeMappingInstanceKeysdoes base require a scope mapping key? Typically, true if base is allocated in a nested lexical scope, to handle the case of base being a function that performs closure accesses- Specified by:
needsScopeMappingKeyin classScopeMappingInstanceKeys
-
getConstructorCallers
protected Collection<CGNode> getConstructorCallers(ScopeMappingInstanceKeys.ScopeMappingInstanceKey smik, Pair<String, String> name) Description copied from class:ScopeMappingInstanceKeysget the CGNodes corresponding to the method that invoked the constructor for smik- Specified by:
getConstructorCallersin classScopeMappingInstanceKeys
-
isTrueConstructorCall
- Specified by:
isTrueConstructorCallin classScopeMappingInstanceKeys- Parameters:
name- the variable name and creator paircallerOfConstructor- the purported caller of the constructor- Returns:
- whether this is a real constructor call or an artifact of function pointers (always true for lexical scoping in Java)
-