Package com.sun.tools.rngom.digested
Class DPattern
java.lang.Object
com.sun.tools.rngom.digested.DPattern
- All Implemented Interfaces:
ParsedPattern
- Direct Known Subclasses:
DContainerPattern
,DDataPattern
,DEmptyPattern
,DGrammarPattern
,DNotAllowedPattern
,DRefPattern
,DTextPattern
,DUnaryPattern
,DValuePattern
Base class of all the patterns.
- Author:
- Kohsuke Kawaguchi ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract <V> V
accept
(DPatternVisitor<V> visitor) Creates aParseable
object that reparses this pattern.Returns the annotation associated with it.Returns where the pattern is defined in the source code.final boolean
Returns true if this isDAttributePattern
.final boolean
Returns true if this isDElementPattern
.abstract boolean
Returns true if this pattern is nullable.
-
Constructor Details
-
DPattern
public DPattern()
-
-
Method Details
-
getLocation
Returns where the pattern is defined in the source code. -
getAnnotation
Returns the annotation associated with it.- Returns:
- may be empty, but never be null.
-
isNullable
public abstract boolean isNullable()Returns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence. -
accept
-
createParseable
Creates aParseable
object that reparses this pattern. -
isElement
public final boolean isElement()Returns true if this isDElementPattern
. -
isAttribute
public final boolean isAttribute()Returns true if this isDAttributePattern
.
-