![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.klimt.creole.command.CommandCreoleCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.klimt.creole.command;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import net.sourceforge.plantuml.regex.MyPattern;
import net.sourceforge.plantuml.regex.Pattern2;
abstract class CommandCreoleCache implements Command {
private static final Map cache = new ConcurrentHashMap<>();
protected final Pattern2 mypattern;
protected CommandCreoleCache(String p) {
Pattern2 result = cache.get(p);
if (result == null) {
result = MyPattern.cmpile(p);
cache.put(p, result);
}
this.mypattern = result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy