| 1 |
package com.thaiopensource.relaxng.parse; |
| 2 |
|
| 3 |
public interface GrammarSection<P, L, EA, CL extends CommentList<L>, A extends Annotations<L, EA, CL>> { |
| 4 |
|
| 5 |
static final class Combine { |
| 6 |
private final String name; |
| 7 |
private Combine(String name) { |
| 8 |
this.name = name; |
| 9 |
} |
| 10 |
final public String toString() { |
| 11 |
return name; |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
static final Combine COMBINE_CHOICE = new Combine("choice"); |
| 16 |
static final Combine COMBINE_INTERLEAVE = new Combine("interleave"); |
| 17 |
|
| 18 |
static final String START = "#start"; |
| 19 |
|
| 20 |
void define(String name, Combine combine, P pattern, L loc, A anno) |
| 21 |
throws BuildException; |
| 22 |
void topLevelAnnotation(EA ea) throws BuildException; |
| 23 |
void topLevelComment(CL comments) throws BuildException; |
| 24 |
Div<P, L, EA, CL, A> makeDiv(); |
| 25 |
/* |
| 26 |
* Returns null if already in an include. |
| 27 |
*/ |
| 28 |
Include<P, L, EA, CL, A> makeInclude(); |
| 29 |
} |