public class CAstCloner extends CAstBasicRewriter
CAstBasicRewriter.NoKey, CAstBasicRewriter.NonCopyingContext
CAstRewriter.CopyKey<Self extends CAstRewriter.CopyKey>, CAstRewriter.Rewrite, CAstRewriter.RewriteContext<K extends CAstRewriter.CopyKey>
Ast, DEBUG, recursive, rootContext
Constructor and Description |
---|
CAstCloner(CAst Ast) |
CAstCloner(CAst Ast,
boolean recursive) |
Modifier and Type | Method and Description |
---|---|
CAstRewriter.Rewrite |
copy(CAstNode root,
CAstControlFlowMap cfg,
CAstSourcePositionMap pos,
CAstNodeTypeMap types,
Map<CAstNode,Collection<CAstEntity>> children) |
protected CAstNode |
copyNodes(CAstNode root,
CAstControlFlowMap cfg,
CAstBasicRewriter.NonCopyingContext c,
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,
CAstControlFlowMap cfg,
CAstBasicRewriter.NonCopyingContext c,
Map<Pair<CAstNode,CAstBasicRewriter.NoKey>,CAstNode> nodeMap)
what is the hack here? --MS
|
copyChildren, copyFlow, copySource, copyTypes, flowOutTo, rewrite, rewrite
public CAstCloner(CAst Ast, boolean recursive)
public CAstCloner(CAst Ast)
protected CAstNode copyNodes(CAstNode root, CAstControlFlowMap cfg, CAstBasicRewriter.NonCopyingContext c, Map<Pair<CAstNode,CAstBasicRewriter.NoKey>,CAstNode> nodeMap)
CAstRewriter
copyNodes
in class CAstBasicRewriter
protected CAstNode copyNodesHackForEclipse(CAstNode root, CAstControlFlowMap cfg, CAstBasicRewriter.NonCopyingContext c, Map<Pair<CAstNode,CAstBasicRewriter.NoKey>,CAstNode> nodeMap)
public CAstRewriter.Rewrite copy(CAstNode root, CAstControlFlowMap cfg, CAstSourcePositionMap pos, CAstNodeTypeMap types, Map<CAstNode,Collection<CAstEntity>> children)