public class PatternBasedRewriter extends CAstCloner
CAstBasicRewriter.NoKey, CAstBasicRewriter.NonCopyingContextCAstRewriter.CopyKey<Self extends CAstRewriter.CopyKey<Self>>, CAstRewriter.Rewrite, CAstRewriter.RewriteContext<K extends CAstRewriter.CopyKey<K>>Ast, DEBUG, recursive, rootContext| Constructor and Description |
|---|
PatternBasedRewriter(CAst ast,
CAstPattern pattern,
java.util.function.Function<CAstPattern.Segments,CAstNode> rewrite) |
| Modifier and Type | Method and Description |
|---|---|
protected CAstNode |
copyNodes(CAstNode root,
CAstControlFlowMap cfg,
CAstBasicRewriter.NonCopyingContext 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.
|
copy, copyNodescopyChildren, copyChildrenArray, copyChildrenArrayAndTargets, copyFlow, copySource, copySubtreesIntoNewNode, copySubtreesIntoNewNode, copyTypes, flowOutTo, rewrite, rewritepublic PatternBasedRewriter(CAst ast, CAstPattern pattern, java.util.function.Function<CAstPattern.Segments,CAstNode> rewrite)
protected CAstNode copyNodes(CAstNode root, CAstControlFlowMap cfg, CAstBasicRewriter.NonCopyingContext context, java.util.Map<com.ibm.wala.util.collections.Pair<CAstNode,CAstBasicRewriter.NoKey>,CAstNode> nodeMap)
CAstRewritercopyNodes in class CAstCloner