Package com.google.gerrit.server.project
Class RefPattern
- java.lang.Object
-
- com.google.gerrit.server.project.RefPattern
-
public class RefPattern extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
USERID_SHARDED
static String
USERNAME
-
Constructor Summary
Constructors Constructor Description RefPattern()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsParameters(String refPattern)
static boolean
isRE(String refPattern)
static String
shortestExample(String refPattern)
static dk.brics.automaton.RegExp
toRegExp(String refPattern)
static void
validate(String refPattern)
static void
validateRegExp(String refPattern)
-
-
-
Field Detail
-
USERID_SHARDED
public static final String USERID_SHARDED
- See Also:
- Constant Field Values
-
USERNAME
public static final String USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isRE
public static boolean isRE(String refPattern)
-
containsParameters
public static boolean containsParameters(String refPattern)
-
toRegExp
public static dk.brics.automaton.RegExp toRegExp(String refPattern)
-
validate
public static void validate(String refPattern) throws com.google.gerrit.exceptions.InvalidNameException
- Throws:
com.google.gerrit.exceptions.InvalidNameException
-
validateRegExp
public static void validateRegExp(String refPattern) throws com.google.gerrit.exceptions.InvalidNameException
- Throws:
com.google.gerrit.exceptions.InvalidNameException
-
-