Skip to content

Package: RegexConstants

RegexConstants

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 71
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 11
100%
M: 0 C: 1
100%

Coverage

1: package util;
2:
3: import java.util.regex.Pattern;
4:
5: /**
6: * Konstantendatei für Regexes.
7: */
8: public final class RegexConstants {
9:
10:
11:         private RegexConstants() {
12:                 // Konstants.
13:         }
14:
15:
16:
17:         public static final Pattern VERGLEICHSOPERATOR = Pattern.compile("(<=|>=|<|>)\\s*");
18:         public static final Pattern DATUM = Pattern.compile("([0-3]?[0-9]\\.[0-1]?[1-9]\\.[1-9]\\d\\d\\d)");
19:         public static final Pattern ZAHL = Pattern.compile("(\\d+)");
20:         public static final Pattern VERGLEICHS_OPERATOR_MIT_DATUM = Pattern.compile(RegexConstants.VERGLEICHSOPERATOR + RegexConstants.DATUM.pattern());
21:         public static final Pattern MINUS = Pattern.compile("\\s*-\\s*");
22:         public static final Pattern ZWISCHEN_ZWEI_DATEN = Pattern.compile(RegexConstants.DATUM + RegexConstants.MINUS.pattern() + RegexConstants.DATUM.pattern());
23:         public static final Pattern UHRZEIT = Pattern.compile("(\\d{2}):(\\d{2})");
24:         public static final Pattern UHRZEITEN_SPANNE = Pattern.compile(RegexConstants.UHRZEIT + RegexConstants.MINUS.pattern() + RegexConstants.UHRZEIT);
25:         public static final Pattern ZWISCHEN_ZWEI_ZAHLEN = Pattern.compile("(\\d+)\\s*-\\s*(\\d+)");
26:         public static final Pattern VERGLEICHS_OPERATOR_MIT_ZAHL = Pattern.compile(RegexConstants.VERGLEICHSOPERATOR + RegexConstants.ZAHL.pattern());
27:         public static final Pattern TAGE = Pattern.compile("(\\d+)\\s*Tage?");
28:
29: }