Interface IncludedGrammar<P extends ParsedPattern,E extends ParsedElementAnnotation,L extends Location,A extends Annotations<E,L,CL>,CL extends CommentList<L>>
-
- All Superinterfaces:
GrammarSection<P,E,L,A,CL>
,Scope<P,E,L,A,CL>
public interface IncludedGrammar<P extends ParsedPattern,E extends ParsedElementAnnotation,L extends Location,A extends Annotations<E,L,CL>,CL extends CommentList<L>> extends GrammarSection<P,E,L,A,CL>, Scope<P,E,L,A,CL>
Scope
for <grammar> element of the <include>d grammar.This object builds <define>s in the included grammar that override the definitions in the original grammar.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kohsuke.rngom.rngparser.ast.builder.GrammarSection
GrammarSection.Combine
-
-
Field Summary
-
Fields inherited from interface org.kohsuke.rngom.rngparser.ast.builder.GrammarSection
COMBINE_CHOICE, COMBINE_INTERLEAVE, START
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description P
endIncludedGrammar(L loc, A anno)
-
Methods inherited from interface org.kohsuke.rngom.rngparser.ast.builder.GrammarSection
define, makeDiv, makeInclude, topLevelAnnotation, topLevelComment
-
Methods inherited from interface org.kohsuke.rngom.rngparser.ast.builder.Scope
makeParentRef, makeRef
-
-
-
-
Method Detail
-
endIncludedGrammar
P endIncludedGrammar(L loc, A anno) throws BuildException
- Returns:
- technically, an included gramamr does not produce a pattern,
but this allows
Parseable.parseInclude(String, SchemaBuilder, IncludedGrammar, String)
to return the result fromIncludedGrammar
nicely.The value returned from this method will be returned from the abovementioned method.
- Throws:
BuildException
-
-