Class CAstBasicRewriter<T extends CAstBasicRewriter.NonCopyingContext>
java.lang.Object
com.ibm.wala.cast.tree.rewrite.CAstRewriter<T,CAstBasicRewriter.NoKey>
com.ibm.wala.cast.tree.rewrite.CAstBasicRewriter<T>
- Direct Known Subclasses:
CAstCloner
,ConstantFoldingRewriter
public abstract class CAstBasicRewriter<T extends CAstBasicRewriter.NonCopyingContext>
extends CAstRewriter<T,CAstBasicRewriter.NoKey>
abstract base class for
CAstRewriter
s that do no cloning of nodes-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
key indicating that no duplication is being performedstatic class
context indicating that no cloning is being performedNested classes/interfaces inherited from class com.ibm.wala.cast.tree.rewrite.CAstRewriter
CAstRewriter.CopyKey<Self extends CAstRewriter.CopyKey<Self>>, CAstRewriter.Rewrite, CAstRewriter.RewriteContext<K extends CAstRewriter.CopyKey<K>>
-
Field Summary
Fields inherited from class com.ibm.wala.cast.tree.rewrite.CAstRewriter
Ast, DEBUG, recursive, rootContext
-
Constructor Summary
ModifierConstructorDescriptionprotected
CAstBasicRewriter
(CAst Ast, T context, boolean recursive) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CAstNode
copyNodes
(CAstNode root, CAstControlFlowMap cfg, T context, Map<Pair<CAstNode, CAstBasicRewriter.NoKey>, CAstNode> nodeMap) rewrite the CAst rooted at root under some context, returning the node at the root of the rewritten tree.Methods inherited from class com.ibm.wala.cast.tree.rewrite.CAstRewriter
copyChildren, copyChildrenArray, copyChildrenArrayAndTargets, copyFlow, copySource, copySubtreesIntoNewNode, copySubtreesIntoNewNode, copyTypes, flowOutTo, rewrite, rewrite
-
Constructor Details
-
CAstBasicRewriter
-
-
Method Details
-
copyNodes
protected abstract CAstNode copyNodes(CAstNode root, CAstControlFlowMap cfg, T context, Map<Pair<CAstNode, CAstBasicRewriter.NoKey>, CAstNode> nodeMap) Description copied from class:CAstRewriter
rewrite the CAst rooted at root under some context, returning the node at the root of the rewritten tree. mutate nodeMap in the process, indicating how (original node, copy key) pairs are mapped to nodes in the rewritten tree.- Specified by:
copyNodes
in classCAstRewriter<T extends CAstBasicRewriter.NonCopyingContext,
CAstBasicRewriter.NoKey>
-