Package com.ibm.wala.cast.js.translator
Class PropertyReadExpander
- java.lang.Object
-
- com.ibm.wala.cast.tree.rewrite.CAstRewriter<com.ibm.wala.cast.js.translator.PropertyReadExpander.RewriteContext,com.ibm.wala.cast.js.translator.PropertyReadExpander.ExpanderKey>
-
- com.ibm.wala.cast.js.translator.PropertyReadExpander
-
public class PropertyReadExpander extends com.ibm.wala.cast.tree.rewrite.CAstRewriter<com.ibm.wala.cast.js.translator.PropertyReadExpander.RewriteContext,com.ibm.wala.cast.js.translator.PropertyReadExpander.ExpanderKey>Transforms property reads to make prototype chain operations explicit. Each read is converted to a do loop that walks up the prototype chain until the property is found or the chain has ended.
-
-
Constructor Summary
Constructors Constructor Description PropertyReadExpander(com.ibm.wala.cast.tree.CAst Ast)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.ibm.wala.cast.tree.CAstNodecopyNodes(com.ibm.wala.cast.tree.CAstNode root, com.ibm.wala.cast.tree.CAstControlFlowMap cfg, com.ibm.wala.cast.js.translator.PropertyReadExpander.RewriteContext context, java.util.Map<com.ibm.wala.util.collections.Pair<com.ibm.wala.cast.tree.CAstNode,com.ibm.wala.cast.js.translator.PropertyReadExpander.ExpanderKey>,com.ibm.wala.cast.tree.CAstNode> nodeMap)
-
-
-
Method Detail
-
copyNodes
protected com.ibm.wala.cast.tree.CAstNode copyNodes(com.ibm.wala.cast.tree.CAstNode root, com.ibm.wala.cast.tree.CAstControlFlowMap cfg, com.ibm.wala.cast.js.translator.PropertyReadExpander.RewriteContext context, java.util.Map<com.ibm.wala.util.collections.Pair<com.ibm.wala.cast.tree.CAstNode,com.ibm.wala.cast.js.translator.PropertyReadExpander.ExpanderKey>,com.ibm.wala.cast.tree.CAstNode> nodeMap)- Specified by:
copyNodesin classcom.ibm.wala.cast.tree.rewrite.CAstRewriter<com.ibm.wala.cast.js.translator.PropertyReadExpander.RewriteContext,com.ibm.wala.cast.js.translator.PropertyReadExpander.ExpanderKey>
-
-