| Modifier and Type | Class and Description |
|---|---|
static class |
TreeNavigation.Ancestor |
static class |
TreeNavigation.FirstAncestorOfType |
static class |
TreeNavigation.OfType |
static class |
TreeNavigation.Query |
static class |
TreeNavigation.SiblingBefore |
| Constructor and Description |
|---|
TreeNavigation() |
TreeNavigation(List<org.pegdown.ast.Node> ancestorsStack) |
| Modifier and Type | Method and Description |
|---|---|
static TreeNavigation.Ancestor |
ancestor(Class<? extends org.pegdown.ast.Node>... ancestorTypes) |
List<org.pegdown.ast.Node> |
ancestorsStack() |
boolean |
ancestorTreeMatches(Class<? extends org.pegdown.ast.Node>... ancestorTypes) |
static TreeNavigation.FirstAncestorOfType |
firstAncestorOfType(Class<? extends org.pegdown.ast.Node> ancestorType) |
static org.pegdown.ast.Node |
lookupChild(org.pegdown.ast.Node node,
Class<? extends org.pegdown.ast.Node>... childClasses) |
static TreeNavigation.OfType |
ofType(Class<? extends org.pegdown.ast.Node> nodeType) |
org.pegdown.ast.Node |
peek() |
<T extends org.pegdown.ast.Node> |
peek(Class<T> nodeType) |
org.pegdown.ast.Node |
pop() |
TreeNavigation |
push(org.pegdown.ast.Node node) |
TreeNavigation |
pushChild() |
TreeNavigation |
pushChild(int nth) |
static TreeNavigation.SiblingBefore |
siblingBefore() |
public TreeNavigation(List<org.pegdown.ast.Node> ancestorsStack)
public TreeNavigation()
public TreeNavigation push(org.pegdown.ast.Node node)
public TreeNavigation pushChild(int nth)
public TreeNavigation pushChild()
public org.pegdown.ast.Node pop()
public org.pegdown.ast.Node peek()
public boolean ancestorTreeMatches(Class<? extends org.pegdown.ast.Node>... ancestorTypes)
public List<org.pegdown.ast.Node> ancestorsStack()
public static org.pegdown.ast.Node lookupChild(org.pegdown.ast.Node node,
Class<? extends org.pegdown.ast.Node>... childClasses)
public <T extends org.pegdown.ast.Node> T peek(Class<T> nodeType)
public static TreeNavigation.Ancestor ancestor(Class<? extends org.pegdown.ast.Node>... ancestorTypes)
public static TreeNavigation.SiblingBefore siblingBefore()
public static TreeNavigation.FirstAncestorOfType firstAncestorOfType(Class<? extends org.pegdown.ast.Node> ancestorType)
public static TreeNavigation.OfType ofType(Class<? extends org.pegdown.ast.Node> nodeType)
Copyright © 2014. All Rights Reserved.