org.unlaxer.parser.combinator.ZeroOrMore Maven / Gradle / Ivy
package org.unlaxer.parser.combinator;
import org.unlaxer.Name;
import org.unlaxer.parser.Parser;
public class ZeroOrMore extends ChildOccursWithTerminator {
private static final long serialVersionUID = 4026350324813186034L;
public ZeroOrMore(Parser inner) {
super(inner);
}
public ZeroOrMore(Name name , Parser inner) {
super(name , inner);
}
private ZeroOrMore(Name name , Parser inner,Parser terminator) {
super(name , inner,terminator);
}
public ZeroOrMore newWithTerminator(Parser terminator){
return new ZeroOrMore(getName() , getChild(), terminator);
}
@Override
public int min() {
return 0;
}
@Override
public int max() {
return Integer.MAX_VALUE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy