org.sonar.sslr.internal.grammar
Class MutableGrammar

java.lang.Object
  extended by com.sonar.sslr.api.Grammar
      extended by org.sonar.sslr.parser.LexerlessGrammar
          extended by org.sonar.sslr.internal.grammar.MutableGrammar

public class MutableGrammar
extends LexerlessGrammar


Constructor Summary
MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules, GrammarRuleKey rootRuleKey)
           
 
Method Summary
 Rule getRootRule()
          Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".
 Rule rule(GrammarRuleKey ruleKey)
          Allows to obtain an instance of grammar rule, which was constructed by LexerlessGrammarBuilder and LexerfulGrammarBuilder.
 
Methods inherited from class com.sonar.sslr.api.Grammar
getAllRuleFields, getRuleFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableGrammar

public MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules,
                      GrammarRuleKey rootRuleKey)
Method Detail

rule

public Rule rule(GrammarRuleKey ruleKey)
Description copied from class: Grammar
Allows to obtain an instance of grammar rule, which was constructed by LexerlessGrammarBuilder and LexerfulGrammarBuilder.

Overrides:
rule in class Grammar

getRootRule

public Rule getRootRule()
Description copied from class: Grammar
Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".

Specified by:
getRootRule in class Grammar
Returns:
the entry point of this Grammar


Copyright © 2009-2014 SonarSource. All Rights Reserved.