01: package org.kohsuke.rngom.digested;
02:
03: /**
04: * @author Kohsuke Kawaguchi (kk@kohsuke.org)
05: */
06: public class DInterleavePattern extends DContainerPattern {
07: public boolean isNullable() {
08: for (DPattern p = firstChild(); p != null; p = p.next)
09: if (!p.isNullable())
10: return false;
11: return true;
12: }
13:
14: public Object accept(DPatternVisitor visitor) {
15: return visitor.onInterleave(this);
16: }
17: }
|