public class TREXGrammar extends ReferenceExp implements Grammar
The exp field keeps the start pattern.
| Modifier and Type | Class and Description |
|---|---|
static class |
TREXGrammar.RefContainer |
| Modifier and Type | Field and Description |
|---|---|
DataTypeVocabularyMap |
dataTypes
data type vocabularies used and defined by this grammar.
|
TREXGrammar.RefContainer |
namedPatterns
named patterns which are defined by using <define> element.
|
protected TREXGrammar |
parentGrammar
in case of nested grammar, this variable points to the parent grammar.
|
ExpressionPool |
pool
ExpressionPool that is associated with this grammar
|
exp, nameanyString, epsilon, nullSet, verifierTag| Constructor and Description |
|---|
TREXGrammar() |
TREXGrammar(ExpressionPool pool) |
TREXGrammar(ExpressionPool pool,
TREXGrammar parentGrammar) |
| Modifier and Type | Method and Description |
|---|---|
TREXGrammar |
getParentGrammar()
gets a parent TREXGrammar.
|
ExpressionPool |
getPool()
gets ExpressionPool object which was used to construct this grammar.
|
Expression |
getTopLevel()
gets the start pattern.
|
calcEpsilonReducibility, calcHashCode, equals, isDefined, visit, visit, visit, visitgetExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visitpublic final TREXGrammar.RefContainer namedPatterns
public final ExpressionPool pool
protected final TREXGrammar parentGrammar
public final DataTypeVocabularyMap dataTypes
public TREXGrammar(ExpressionPool pool, TREXGrammar parentGrammar)
parentGrammar - this object is used to resolve <ref> element with parent
attribute.public TREXGrammar(ExpressionPool pool)
public TREXGrammar()
public Expression getTopLevel()
getTopLevel in interface Grammarpublic ExpressionPool getPool()
Grammarpublic final TREXGrammar getParentGrammar()
Copyright © 2016 Oracle Corporation. All Rights Reserved.