The exp field keeps the start pattern.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public final DataTypeVocabularyMap | dataTypes
data type vocabularies used and defined by this grammar. |
| public final TREXGrammar. | namedPatterns
named patterns which are defined by using <define> element. |
| protected final TREXGrammar | parentGrammar
in case of nested grammar, this variable points to the parent grammar. |
| public final ExpressionPool | pool
ExpressionPool that is associated with this grammar |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | TREXGrammar(ExpressionPool pool, TREXGrammar
this object is used to resolve <ref> element with parent
attribute. parentGrammar)
|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final TREXGrammar | |
| public ExpressionPool | getPool()
Implements com. |
| public Expression |
| dataTypes | back to summary |
|---|---|
| public final DataTypeVocabularyMap dataTypes data type vocabularies used and defined by this grammar. | |
| namedPatterns | back to summary |
|---|---|
| public final TREXGrammar. named patterns which are defined by using <define> element. this is a map from pattern name to RefPattern object | |
| parentGrammar | back to summary |
|---|---|
| protected final TREXGrammar parentGrammar in case of nested grammar, this variable points to the parent grammar. Otherwise null. | |
| pool | back to summary |
|---|---|
| public final ExpressionPool pool ExpressionPool that is associated with this grammar | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TREXGrammar | back to summary |
|---|---|
public TREXGrammar(ExpressionPool pool, TREXGrammar parentGrammar)
| |
| TREXGrammar | back to summary |
|---|---|
| public TREXGrammar(ExpressionPool pool) | |
| TREXGrammar | back to summary |
|---|---|
| public TREXGrammar() | |
| getParentGrammar | back to summary |
|---|---|
| public final TREXGrammar getParentGrammar() gets a parent TREXGrammar. In case of nested grammar, the parent grammar will be returned. Otherwise, it returns null. | |
| getPool | back to summary |
|---|---|
| public ExpressionPool getPool() Implements com. Doc from com. gets ExpressionPool object which was used to construct this grammar. Never return null. | |
| getTopLevel | back to summary |
|---|---|
| public Expression getTopLevel() Implements com. gets the start pattern. The pattern defined under <start> element. This pattern will be used to verify document element. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ReferenceExp | createReference(String name)
Implements abstract com. |
| public ReferenceExp |
| RefContainer | back to summary |
|---|---|
| public RefContainer() | |
| createReference | back to summary |
|---|---|
| protected ReferenceExp createReference(String name) Implements abstract com. Doc from com. creates a new reference object with given name | |
| getOrCreate | back to summary |
|---|---|
| public ReferenceExp getOrCreate(String name) | |