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 (kk@kohsuke.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <V> Vaccept(DPatternVisitor<V> visitor) Creates aParseableobject that reparses this pattern.Returns the annotation associated with it.Returns where the pattern is defined in the source code.final booleanReturns true if this isDAttributePattern.final booleanReturns true if this isDElementPattern.abstract booleanReturns 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 aParseableobject that reparses this pattern. -
isElement
public final boolean isElement()Returns true if this isDElementPattern. -
isAttribute
public final boolean isAttribute()Returns true if this isDAttributePattern.
-