public class SyntaxTraverser<T> extends FilteredTraverserBase<T,SyntaxTraverser<T>> implements UserDataHolder
Modifier and Type | Class and Description |
---|---|
static class |
SyntaxTraverser.Api<T> |
static class |
SyntaxTraverser.ApiEx<T> |
FilteredTraverserBase.EdgeFilter<T>, FilteredTraverserBase.Meta<T>
Modifier and Type | Field and Description |
---|---|
SyntaxTraverser.Api<T> |
api |
Modifier | Constructor and Description |
---|---|
protected |
SyntaxTraverser(SyntaxTraverser.Api<T> api,
FilteredTraverserBase.Meta<T> meta) |
bfsTraversal, biOrderDfsTraversal, cached, children, expand, expandAndFilter, expandAndSkip, filter, filter, forceDisregard, forceIgnore, getRoot, getRoots, getTree, interceptTraversal, iterator, mapImpl, mapImpl, onRange, postOrderDfsTraversal, preOrderDfsTraversal, regard, reset, toList, toSet, toString, tracingBfsTraversal, traverse, traverse, unique, unique, withRoot, withRoots, withRoots, withTraversal
public final SyntaxTraverser.Api<T> api
protected SyntaxTraverser(SyntaxTraverser.Api<T> api, FilteredTraverserBase.Meta<T> meta)
public static SyntaxTraverser.ApiEx<PsiElement> psiApi()
public static SyntaxTraverser.ApiEx<PsiElement> psiApiReversed()
public static SyntaxTraverser.ApiEx<ASTNode> astApi()
public static SyntaxTraverser.Api<LighterASTNode> lightApi(PsiBuilder builder)
public static <T> SyntaxTraverser<T> syntaxTraverser(SyntaxTraverser.Api<T> api)
public static SyntaxTraverser<PsiElement> psiTraverser()
public static SyntaxTraverser<PsiElement> psiTraverser(PsiElement root)
public static SyntaxTraverser<PsiElement> revPsiTraverser()
public static SyntaxTraverser<ASTNode> astTraverser()
public static SyntaxTraverser<ASTNode> astTraverser(ASTNode root)
public static SyntaxTraverser<LighterASTNode> lightTraverser(PsiBuilder builder)
protected SyntaxTraverser<T> newInstance(FilteredTraverserBase.Meta<T> meta)
newInstance
in class FilteredTraverserBase<T,SyntaxTraverser<T>>
public final <S> SyntaxTraverser<S> map(Function<? super T,? extends S> function, Function<? super S,? extends T> reverse)
public final <S> SyntaxTraverser<S> map(Function<? super T,? extends S> function)
public <K> K getUserData(Key<K> key)
getUserData
in interface UserDataHolder
public <K> void putUserData(Key<K> key, K value)
UserDataHolder
putUserData
in interface UserDataHolder
public SyntaxTraverser<T> expandTypes(Condition<? super IElementType> c)
public SyntaxTraverser<T> filterTypes(Condition<? super IElementType> c)
public SyntaxTraverser<T> forceDisregardTypes(Condition<? super IElementType> c)
public T getRawDeepestLast()
public final SyntaxTraverser<T> onRange(TextRange range)