Package com.ibm.wala.cast.tree.rewrite
Class CAstBasicRewriter
- java.lang.Object
-
- com.ibm.wala.cast.tree.rewrite.CAstRewriter<CAstBasicRewriter.NonCopyingContext,CAstBasicRewriter.NoKey>
-
- com.ibm.wala.cast.tree.rewrite.CAstBasicRewriter
-
- Direct Known Subclasses:
CAstCloner
,ConstantFoldingRewriter
public abstract class CAstBasicRewriter extends CAstRewriter<CAstBasicRewriter.NonCopyingContext,CAstBasicRewriter.NoKey>
abstract base class forCAstRewriter
s that do no cloning of nodes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CAstBasicRewriter.NoKey
key indicating that no duplication is being performedstatic class
CAstBasicRewriter.NonCopyingContext
context indicating that no cloning is being performed-
Nested classes/interfaces inherited from class com.ibm.wala.cast.tree.rewrite.CAstRewriter
CAstRewriter.CopyKey<Self extends CAstRewriter.CopyKey>, CAstRewriter.Rewrite, CAstRewriter.RewriteContext<K extends CAstRewriter.CopyKey>
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.cast.tree.rewrite.CAstRewriter
Ast, DEBUG, recursive, rootContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CAstBasicRewriter(CAst Ast, boolean recursive)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract CAstNode
copyNodes(CAstNode root, CAstControlFlowMap cfg, CAstBasicRewriter.NonCopyingContext 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, copyFlow, copySource, copyTypes, flowOutTo, rewrite, rewrite
-
-
-
-
Constructor Detail
-
CAstBasicRewriter
protected CAstBasicRewriter(CAst Ast, boolean recursive)
-
-
Method Detail
-
copyNodes
protected abstract CAstNode copyNodes(CAstNode root, CAstControlFlowMap cfg, CAstBasicRewriter.NonCopyingContext 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<CAstBasicRewriter.NonCopyingContext,CAstBasicRewriter.NoKey>
-
-