Class NGCCGrammar
java.lang.Object
relaxngcc.NGCCGrammar
Keeps information about the global setting effective
across the entire grammar.
A "grammar" in RELAX NG could be nested inside another grammar, so we need a bit different name. This class needs a better name.
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddump(PrintStream strm) voiddumpAutomata(File outDir) generates automaton gif files.Gets the class name of the runtime type alone without the package name.getScopeInfo(Scope scope) booleanGenerates the source code.
-
Field Details
-
grammar
Parsed grammar. -
packageName
Package name to which generated classes should go. The value will be the empty string if the classes will be generated into the root package. -
globalImportDecls
globally effective import statements. -
globalBody
globally effective <java-body> statements.
-
-
Constructor Details
-
NGCCGrammar
-
-
Method Details
-
getRuntimeTypeShortName
Gets the class name of the runtime type alone without the package name. -
getRuntimeTypeFullName
-
getScopeInfo
-
iterateScopeInfos
-
buildAutomaton
public void buildAutomaton() -
dump
-
dumpAutomata
generates automaton gif files. -
output
Generates the source code.- Returns:
- true if files are in fact generated.
- Throws:
IOExceptionNoDefinitionException
-