public abstract class DPattern extends java.lang.Object implements ParsedPattern
| Modifier and Type | Field and Description |
|---|---|
(package private) DAnnotation |
annotation |
(package private) org.xml.sax.Locator |
location |
(package private) DPattern |
next
Used to chain the child patterns in a doubly-linked list.
|
(package private) DPattern |
prev |
| Constructor and Description |
|---|
DPattern() |
| Modifier and Type | Method and Description |
|---|---|
abstract <V> V |
accept(DPatternVisitor<V> visitor) |
Parseable |
createParseable()
Creates a
Parseable object that reparses this pattern. |
DAnnotation |
getAnnotation()
Returns the annotation associated with it.
|
org.xml.sax.Locator |
getLocation()
Returns where the pattern is defined in the source code.
|
boolean |
isAttribute()
Returns true if this is
DAttributePattern. |
boolean |
isElement()
Returns true if this is
DElementPattern. |
abstract boolean |
isNullable()
Returns true if this pattern is nullable.
|
org.xml.sax.Locator location
DAnnotation annotation
DPattern next
DPattern prev
public org.xml.sax.Locator getLocation()
public DAnnotation getAnnotation()
public abstract boolean isNullable()
public abstract <V> V accept(DPatternVisitor<V> visitor)
public Parseable createParseable()
Parseable object that reparses this pattern.public final boolean isElement()
DElementPattern.public final boolean isAttribute()
DAttributePattern.