public class DataPattern extends Pattern
Constructor and Description |
---|
DataPattern(java.lang.String type)
Creates a new empty pattern.
|
Modifier and Type | Method and Description |
---|---|
Item |
createItem(GrammarPattern grammar)
Creates the program (somewhat bogus)
|
boolean |
equals(java.lang.Object o) |
boolean |
hasData()
Returns true if it contains a data element.
|
java.lang.String |
toProduction()
Returns a string for the production.
|
java.lang.String |
toString()
Debugging.
|
addChild, addNameChild, createNameItem, endElement, error, getElementName, getLocation, getParent, getTagName, hasElement, setElementName, setFilename, setLine, setParent
public DataPattern(java.lang.String type)
public Item createItem(GrammarPattern grammar) throws RelaxException
createItem
in class Pattern
RelaxException
public java.lang.String toProduction()
toProduction
in class Pattern
public boolean hasData()
public java.lang.String toString()
toString
in class java.lang.Object