Package org.kohsuke.rngom.digested
Class DChoicePattern
- java.lang.Object
-
- org.kohsuke.rngom.digested.DPattern
-
- org.kohsuke.rngom.digested.DContainerPattern
-
- org.kohsuke.rngom.digested.DChoicePattern
-
- All Implemented Interfaces:
java.lang.Iterable<DPattern>
,ParsedPattern
public class DChoicePattern extends DContainerPattern
<choice>
pattern.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Constructor Summary
Constructors Constructor Description DChoicePattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> V
accept(DPatternVisitor<V> visitor)
boolean
isNullable()
Returns true if this pattern is nullable.-
Methods inherited from class org.kohsuke.rngom.digested.DContainerPattern
countChildren, firstChild, iterator, lastChild
-
Methods inherited from class org.kohsuke.rngom.digested.DPattern
createParseable, getAnnotation, getLocation, isAttribute, isElement
-
-
-
-
Method Detail
-
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
public <V> V accept(DPatternVisitor<V> visitor)
-
-