public abstract class Pattern
extends java.lang.Object
Constructor and Description |
---|
Pattern() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Pattern child)
Adds an element child.
|
void |
addNameChild(NameClassPattern child)
Adds a name child.
|
Item |
createItem(GrammarPattern grammar)
Creates the current state
|
NameClassItem |
createNameItem()
Creates the name program
|
void |
endElement()
Ends the element.
|
abstract boolean |
equals(java.lang.Object o) |
RelaxException |
error(java.lang.String msg)
creates an error.
|
java.lang.String |
getElementName()
Returns the element-name.
|
java.lang.String |
getLocation()
Gets the location.
|
Pattern |
getParent()
Gets the parent.
|
java.lang.String |
getTagName()
Returns the relax config name.
|
boolean |
hasData()
Returns true if it contains a data element.
|
boolean |
hasElement()
Returns true if it contains an element.
|
void |
setElementName(java.lang.String elementName)
Sets the element-name.
|
void |
setFilename(java.lang.String filename)
Sets the pattern source location.
|
void |
setLine(int line)
Sets the pattern line
|
void |
setParent(Pattern parent)
Sets the parent.
|
java.lang.String |
toProduction()
Returns a string for the production.
|
protected static final L10N L
public java.lang.String getTagName()
public void setFilename(java.lang.String filename)
public void setLine(int line)
public java.lang.String getLocation()
public java.lang.String getElementName()
public void setElementName(java.lang.String elementName)
public void setParent(Pattern parent) throws RelaxException
RelaxException
public Pattern getParent()
public boolean hasData()
public boolean hasElement()
public void addNameChild(NameClassPattern child) throws RelaxException
RelaxException
public void addChild(Pattern child) throws RelaxException
RelaxException
public void endElement() throws RelaxException
RelaxException
public Item createItem(GrammarPattern grammar) throws RelaxException
RelaxException
public NameClassItem createNameItem() throws RelaxException
RelaxException
public abstract boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toProduction()
public RelaxException error(java.lang.String msg)