Package org.intellij.grammar.psi.impl
Class GrammarUtil
java.lang.Object
org.intellij.grammar.psi.impl.GrammarUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.intellij.psi.SyntaxTraverser<com.intellij.psi.PsiElement>bnfTraverser(com.intellij.psi.PsiElement root) static com.intellij.psi.SyntaxTraverser<com.intellij.psi.PsiElement>bnfTraverserNoAttrs(com.intellij.psi.PsiElement root) collectMetaParameters(BnfRule rule, BnfExpression expression) static booleanequalsElement(BnfExpression e1, BnfExpression e2) static com.intellij.psi.PsiElementgetDummyAwarePrevSibling(com.intellij.psi.PsiElement child) static List<BnfExpression>getExternalRuleExpressions(@NotNull BnfRule subRule) static @NotNull StringgetIdText(@Nullable com.intellij.psi.PsiElement id) static StringgetMethodName(BnfRule rule, com.intellij.psi.PsiElement element) static booleanstatic booleanisDoubleAngles(@Nullable String str) static booleanisExternalReference(@Nullable com.intellij.psi.PsiElement psiElement) static booleanisIdQuoted(@Nullable String text) static booleanisInAttributesReference(@Nullable com.intellij.psi.PsiElement element) static booleanisOneTokenExpression(@Nullable BnfExpression e1) static booleanprocessExpressionNames(BnfRule rule, String funcName, BnfExpression expression, com.intellij.util.PairProcessor<? super String, ? super BnfExpression> processor) static booleanprocessPinnedExpressions(BnfRule rule, com.intellij.util.PairProcessor<? super BnfExpression, ? super ParserGeneratorUtil.PinMatcher> processor) static booleanprocessPinnedExpressions(BnfRule rule, com.intellij.util.Processor<? super BnfExpression> processor) static StringstripQuotesAroundId(String text) static @NotNull String
-
Field Details
-
EMPTY_EXPRESSIONS_ARRAY
-
-
Constructor Details
-
GrammarUtil
public GrammarUtil()
-
-
Method Details
-
getDummyAwarePrevSibling
public static com.intellij.psi.PsiElement getDummyAwarePrevSibling(com.intellij.psi.PsiElement child) -
equalsElement
-
isInAttributesReference
public static boolean isInAttributesReference(@Nullable @Nullable com.intellij.psi.PsiElement element) -
isOneTokenExpression
-
isExternalReference
public static boolean isExternalReference(@Nullable @Nullable com.intellij.psi.PsiElement psiElement) -
getExternalRuleExpressions
-
collectMetaParameters
-
unquote
-
isDoubleAngles
-
processExpressionNames
public static boolean processExpressionNames(BnfRule rule, String funcName, BnfExpression expression, com.intellij.util.PairProcessor<? super String, ? super BnfExpression> processor) -
processPinnedExpressions
public static boolean processPinnedExpressions(BnfRule rule, com.intellij.util.Processor<? super BnfExpression> processor) -
processPinnedExpressions
public static boolean processPinnedExpressions(BnfRule rule, com.intellij.util.PairProcessor<? super BnfExpression, ? super ParserGeneratorUtil.PinMatcher> processor) -
isAtomicExpression
-
bnfTraverser
public static com.intellij.psi.SyntaxTraverser<com.intellij.psi.PsiElement> bnfTraverser(com.intellij.psi.PsiElement root) -
bnfTraverserNoAttrs
public static com.intellij.psi.SyntaxTraverser<com.intellij.psi.PsiElement> bnfTraverserNoAttrs(com.intellij.psi.PsiElement root) -
getMethodName
-
getIdText
@NotNull public static @NotNull String getIdText(@Nullable @Nullable com.intellij.psi.PsiElement id) -
stripQuotesAroundId
-
isIdQuoted
-