java.lang.Object
com.intellij.psi.tree.ParentAwareTokenSet
Analogue
TokenSet.
The main purpose is to check if a given token type is present in the token set.
The main difference is that this class supports hierarchy with ParentProviderElementType-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(@Nullable IElementType iElementType) static @NotNull ParentAwareTokenSetstatic @NotNull ParentAwareTokenSetcreate(@NotNull Set<IElementType> set) static @NotNull ParentAwareTokenSetcreate(IElementType... set) static @NotNull ParentAwareTokenSetorSet(ParentAwareTokenSet... sets)
-
Method Details
-
contains
- Returns:
- true if the provided token set contains given source element type or any of its parents, otherwise false
- See Also:
-
create
-
create
-
orSet
-
create
-