public interface ParentProviderElementType
A marker interface to be implemented by classes that provide
information about the parent element types.
Could be used to create hierarchy for IElementType
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsWithSourceParent(@NotNull IElementType source, @NotNull TokenSet tokenSet) @NotNull Set<IElementType>
-
Method Details
-
getParents
-
containsWithSourceParent
static boolean containsWithSourceParent(@NotNull @NotNull IElementType source, @NotNull @NotNull TokenSet tokenSet) - Parameters:
source- The source element type to check.tokenSet- The set of token types to check against (this token set must contain the highest parents to check against)- Returns:
- true if the provided token set contains given source element type or any of its parents, otherwise false
-