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

org.freedesktop.dbus.utils.CommonRegexPattern Maven / Gradle / Ivy

Go to download

Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).

There is a newer version: 5.1.0
Show newest version
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() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy