Package org.intellij.grammar.generator
Class RuleGraphHelper
- java.lang.Object
-
- org.intellij.grammar.generator.RuleGraphHelper
-
public class RuleGraphHelper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRuleGraphHelper.Cardinality
-
Constructor Summary
Constructors Constructor Description RuleGraphHelper(BnfFile file)RuleGraphHelper(BnfFile file, com.intellij.util.containers.MultiMap<BnfRule,BnfRule> ruleExtendsMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.intellij.util.containers.MultiMap<BnfRule,BnfRule>buildExtendsMap(BnfFile file)booleancanCollapse(@NotNull BnfRule rule)static KnownAttribute.ListValuecomputeTokens(BnfFile file)booleancontainsTokens(BnfRule rule)static RuleGraphHelpergetCached(@NotNull BnfFile file)static java.lang.StringgetCardinalityText(RuleGraphHelper.Cardinality cardinality)java.util.Collection<BnfRule>getExtendsRules(BnfRule rule)BnfFilegetFile()@NotNull java.util.Map<com.intellij.psi.PsiElement,RuleGraphHelper.Cardinality>getFor(BnfRule rule)com.intellij.util.containers.MultiMap<BnfRule,BnfRule>getRuleExtendsMap()java.util.Collection<BnfRule>getSubRules(BnfRule rule)static BnfRulegetSynonymTargetOrSelf(BnfRule rule)static @NotNull java.util.Map<java.lang.String,java.lang.String>getTokenNameToTextMap(BnfFile file)static @NotNull java.util.Map<java.lang.String,java.lang.String>getTokenTextToNameMap(BnfFile file)static booleanhasElementType(BnfRule rule)static booleanhasPsiClass(BnfRule rule)static booleanisPrivateOrNoType(BnfRule rule)
-
-
-
Method Detail
-
getCardinalityText
public static java.lang.String getCardinalityText(RuleGraphHelper.Cardinality cardinality)
-
buildExtendsMap
public static com.intellij.util.containers.MultiMap<BnfRule,BnfRule> buildExtendsMap(BnfFile file)
-
getTokenNameToTextMap
@NotNull public static @NotNull java.util.Map<java.lang.String,java.lang.String> getTokenNameToTextMap(BnfFile file)
-
getTokenTextToNameMap
@NotNull public static @NotNull java.util.Map<java.lang.String,java.lang.String> getTokenTextToNameMap(BnfFile file)
-
computeTokens
public static KnownAttribute.ListValue computeTokens(BnfFile file)
-
getCached
public static RuleGraphHelper getCached(@NotNull @NotNull BnfFile file)
-
getRuleExtendsMap
public com.intellij.util.containers.MultiMap<BnfRule,BnfRule> getRuleExtendsMap()
-
getFile
public BnfFile getFile()
-
canCollapse
public boolean canCollapse(@NotNull @NotNull BnfRule rule)
-
containsTokens
public boolean containsTokens(BnfRule rule)
-
getFor
@NotNull public @NotNull java.util.Map<com.intellij.psi.PsiElement,RuleGraphHelper.Cardinality> getFor(BnfRule rule)
-
hasPsiClass
public static boolean hasPsiClass(BnfRule rule)
-
hasElementType
public static boolean hasElementType(BnfRule rule)
-
isPrivateOrNoType
public static boolean isPrivateOrNoType(BnfRule rule)
-
-