public abstract class DPattern extends Object implements ParsedPattern
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.
|
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.
|
public 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
.Copyright © 2019 JBoss by Red Hat. All rights reserved.