All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kohsuke.rngom.digested.DChoicePattern Maven / Gradle / Ivy

package org.kohsuke.rngom.digested;

/**
 * <choice> pattern.
 *
 * @author Kohsuke Kawaguchi ([email protected])
 */
public class DChoicePattern extends DContainerPattern {
    public boolean isNullable() {
        for( DPattern p=firstChild(); p!=null; p=p.next )
            if(p.isNullable())
                return true;
        return false;
    }
    public  V accept( DPatternVisitor visitor ) {
        return visitor.onChoice(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy