com.ibm.wala.cast.tree.impl
Class CAstCloner
java.lang.Object
com.ibm.wala.cast.tree.impl.CAstRewriter<CAstBasicRewriter.NonCopyingContext,CAstBasicRewriter.NoKey>
com.ibm.wala.cast.tree.impl.CAstBasicRewriter
com.ibm.wala.cast.tree.impl.CAstCloner
public class CAstCloner
- extends CAstBasicRewriter
|
Method Summary |
CAstRewriter.Rewrite |
copy(CAstNode root,
CAstControlFlowMap cfg,
CAstSourcePositionMap pos,
CAstNodeTypeMap types,
java.util.Map<CAstNode,java.util.Collection<CAstEntity>> children)
|
protected CAstNode |
copyNodes(CAstNode root,
CAstBasicRewriter.NonCopyingContext c,
java.util.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 |
copyNodesHackForEclipse(CAstNode root,
CAstBasicRewriter.NonCopyingContext c,
java.util.Map<Pair<CAstNode,CAstBasicRewriter.NoKey>,CAstNode> nodeMap)
what is the hack here? --MS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CAstCloner
public CAstCloner(CAst Ast,
boolean recursive)
CAstCloner
public CAstCloner(CAst Ast)
copyNodes
protected CAstNode copyNodes(CAstNode root,
CAstBasicRewriter.NonCopyingContext c,
java.util.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 class CAstBasicRewriter
copyNodesHackForEclipse
protected CAstNode copyNodesHackForEclipse(CAstNode root,
CAstBasicRewriter.NonCopyingContext c,
java.util.Map<Pair<CAstNode,CAstBasicRewriter.NoKey>,CAstNode> nodeMap)
- what is the hack here? --MS
copy
public CAstRewriter.Rewrite copy(CAstNode root,
CAstControlFlowMap cfg,
CAstSourcePositionMap pos,
CAstNodeTypeMap types,
java.util.Map<CAstNode,java.util.Collection<CAstEntity>> children)