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

net.sourceforge.plantuml.regex.RegexOptional Maven / Gradle / Ivy

There is a newer version: 1.2025.0
Show newest version
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.regex;

import net.sourceforge.plantuml.text.StringLocated;

public class RegexOptional extends RegexComposed implements IRegex {

	public RegexOptional(IRegex partial) {
		super(partial);
	}

	@Override
	protected String getFullSlow() {
		final StringBuilder sb = new StringBuilder("(?:");
		sb.append(partials().get(0).getPattern());
		sb.append(")?");
		return sb.toString();
	}

	public boolean match(StringLocated full) {
		throw new UnsupportedOperationException();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy