org.freedesktop.dbus.utils.CommonRegexPattern Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbus-java-core Show documentation
Show all versions of dbus-java-core Show documentation
Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).
package org.freedesktop.dbus.utils;
import java.util.regex.Pattern;
/**
* Utility class containing commonly used regular expression patterns.
*
* @author hypfvieh
* @version 4.1.0 - 2022-02-08
*/
public final class CommonRegexPattern {
public static final Pattern PROXY_SPLIT_PATTERN = Pattern.compile("[<>]");
public static final Pattern IFACE_PATTERN = Pattern.compile("^interface *name *= *['\"]([^'\"]*)['\"].*$");
public static final Pattern DBUS_IFACE_PATTERN = Pattern.compile("^.*\\.([^\\.]+)$");
public static final Pattern EXCEPTION_EXTRACT_PATTERN = Pattern.compile("\\.([^\\.]*)$");
public static final Pattern EXCEPTION_PARTIAL_PATTERN = Pattern.compile(".*\\..*");
private CommonRegexPattern() {
}
}