private static final class JavaAstVisitor.DetailAstPair extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private DetailAstImpl |
child
The child (potentially with siblings) of this pair.
|
private DetailAstImpl |
root
The root DetailAstImpl of this pair.
|
| Modifier | Constructor and Description |
|---|---|
private |
DetailAstPair() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addAstChild(JavaAstVisitor.DetailAstPair pair,
DetailAstImpl ast)
Adds a child (or new root) to the given DetailAstPair.
|
private void |
advanceChildToEnd()
Moves child reference to the last child.
|
private DetailAstImpl |
getRoot()
Returns the root node.
|
private static void |
makeAstRoot(JavaAstVisitor.DetailAstPair pair,
DetailAstImpl ast)
This method is used to replace the
^ (set as root node) ANTLR2
operator. |
private DetailAstImpl root
private DetailAstImpl child
private DetailAstPair()
private void advanceChildToEnd()
private DetailAstImpl getRoot()
private static void makeAstRoot(JavaAstVisitor.DetailAstPair pair, DetailAstImpl ast)
^ (set as root node) ANTLR2
operator.pair - the DetailAstPair to use for swapping nodesast - the new rootprivate static void addAstChild(JavaAstVisitor.DetailAstPair pair, DetailAstImpl ast)
pair - the DetailAstPair to add child toast - the child to addCopyright © 2001-2022. All Rights Reserved.