Package com.sun.tools.rngom.digested
Class DChoicePattern
java.lang.Object
com.sun.tools.rngom.digested.DPattern
com.sun.tools.rngom.digested.DContainerPattern
com.sun.tools.rngom.digested.DChoicePattern
- All Implemented Interfaces:
ParsedPattern
,Iterable<DPattern>
<choice>
pattern.- Author:
- Kohsuke Kawaguchi ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<V> V
accept
(DPatternVisitor<V> visitor) boolean
Returns true if this pattern is nullable.Methods inherited from class com.sun.tools.rngom.digested.DContainerPattern
countChildren, firstChild, iterator, lastChild
Methods inherited from class com.sun.tools.rngom.digested.DPattern
createParseable, getAnnotation, getLocation, isAttribute, isElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DChoicePattern
public DChoicePattern()
-
-
Method Details
-
isNullable
public boolean isNullable()Description copied from class:DPattern
Returns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.- Specified by:
isNullable
in classDPattern
-
accept
-