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 (kk@kohsuke.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Vaccept(DPatternVisitor<V> visitor) booleanReturns true if this pattern is nullable.Methods inherited from class com.sun.tools.rngom.digested.DContainerPattern
countChildren, firstChild, iterator, lastChildMethods inherited from class com.sun.tools.rngom.digested.DPattern
createParseable, getAnnotation, getLocation, isAttribute, isElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DChoicePattern
public DChoicePattern()
-
-
Method Details
-
isNullable
public boolean isNullable()Description copied from class:DPatternReturns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.- Specified by:
isNullablein classDPattern
-
accept
-