public abstract class CAstBasicRewriter<T extends CAstBasicRewriter.NonCopyingContext> extends CAstRewriter<T,CAstBasicRewriter.NoKey>
CAstRewriters that do no cloning of nodes| Modifier and Type | Class and Description |
|---|---|
static class |
CAstBasicRewriter.NoKey
key indicating that no duplication is being performed
|
static class |
CAstBasicRewriter.NonCopyingContext
context indicating that no cloning is being performed
|
CAstRewriter.CopyKey<Self extends CAstRewriter.CopyKey<Self>>, CAstRewriter.Rewrite, CAstRewriter.RewriteContext<K extends CAstRewriter.CopyKey<K>>Ast, DEBUG, recursive, rootContext| Modifier | Constructor and Description |
|---|---|
protected |
CAstBasicRewriter(CAst Ast,
T context,
boolean recursive) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CAstNode |
copyNodes(CAstNode root,
CAstControlFlowMap cfg,
T context,
java.util.Map<com.ibm.wala.util.collections.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.
|
copyChildren, copyChildrenArray, copyChildrenArrayAndTargets, copyFlow, copySource, copySubtreesIntoNewNode, copySubtreesIntoNewNode, copyTypes, flowOutTo, rewrite, rewriteprotected abstract CAstNode copyNodes(CAstNode root, CAstControlFlowMap cfg, T context, java.util.Map<com.ibm.wala.util.collections.Pair<CAstNode,CAstBasicRewriter.NoKey>,CAstNode> nodeMap)
CAstRewritercopyNodes in class CAstRewriter<T extends CAstBasicRewriter.NonCopyingContext,CAstBasicRewriter.NoKey>