Class CAstCloner
java.lang.Object
com.ibm.wala.cast.tree.rewrite.CAstRewriter<CAstBasicRewriter.NonCopyingContext,CAstBasicRewriter.NoKey>
com.ibm.wala.cast.tree.rewrite.CAstBasicRewriter<CAstBasicRewriter.NonCopyingContext>
com.ibm.wala.cast.tree.rewrite.CAstCloner
- Direct Known Subclasses:
PatternBasedRewriter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.wala.cast.tree.rewrite.CAstBasicRewriter
CAstBasicRewriter.NoKey, CAstBasicRewriter.NonCopyingContext
Nested 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
ModifierConstructorDescriptionCAstCloner
(CAst Ast) CAstCloner
(CAst Ast, boolean recursive) protected
CAstCloner
(CAst Ast, CAstBasicRewriter.NonCopyingContext context, boolean recursive) -
Method Summary
Modifier and TypeMethodDescriptioncopy
(CAstNode root, CAstControlFlowMap cfg, CAstSourcePositionMap pos, CAstNodeTypeMap types, Map<CAstNode, Collection<CAstEntity>> children, CAstNode[] defaults) protected 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.protected CAstNode
copyNodes
(CAstNode root, CAstControlFlowMap cfg, CAstBasicRewriter.NonCopyingContext context, Map<Pair<CAstNode, CAstBasicRewriter.NoKey>, CAstNode> nodeMap, Pair<CAstNode, CAstBasicRewriter.NoKey> pairKey) Methods inherited from class com.ibm.wala.cast.tree.rewrite.CAstRewriter
copyChildren, copyChildrenArray, copyChildrenArrayAndTargets, copyFlow, copySource, copySubtreesIntoNewNode, copySubtreesIntoNewNode, copyTypes, flowOutTo, rewrite, rewrite
-
Constructor Details
-
CAstCloner
-
CAstCloner
-
CAstCloner
-
-
Method Details
-
copyNodes
protected 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 classCAstBasicRewriter<CAstBasicRewriter.NonCopyingContext>
-
copyNodes
protected CAstNode copyNodes(CAstNode root, CAstControlFlowMap cfg, CAstBasicRewriter.NonCopyingContext context, Map<Pair<CAstNode, CAstBasicRewriter.NoKey>, CAstNode> nodeMap, Pair<CAstNode, CAstBasicRewriter.NoKey> pairKey) -
copy
public CAstRewriter.Rewrite copy(CAstNode root, CAstControlFlowMap cfg, CAstSourcePositionMap pos, CAstNodeTypeMap types, Map<CAstNode, Collection<CAstEntity>> children, CAstNode[] defaults)
-