
net.sourceforge.plantuml.klimt.creole.command.CommandCreoleCache Maven / Gradle / Ivy
// 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