public class SignatureRegexes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static @Regex java.lang.String |
ARRAY
A regex that matches the nested-class part of a class name.
|
static java.util.regex.Pattern |
ArrayWithoutPackagePattern
A pattern that matches ArrayWithoutPackage strings.
|
static @Regex java.lang.String |
ArrayWithoutPackageRegex
A regex that matches ArrayWithoutPackage strings.
|
private static @Regex java.lang.String |
BINARY_NAME
An unanchored regex that matches BinaryName strings.
|
static java.util.regex.Pattern |
BinaryNameOrPrimitiveTypePattern
A pattern that matches BinaryNameOrPrimitiveType strings.
|
static @Regex java.lang.String |
BinaryNameOrPrimitiveTypeRegex
A regex that matches BinaryNameOrPrimitiveType strings.
|
static java.util.regex.Pattern |
BinaryNamePattern
A pattern that matches BinaryName strings.
|
static @Regex java.lang.String |
BinaryNameRegex
A regex that matches BinaryName strings.
|
static java.util.regex.Pattern |
BinaryNameWithoutPackagePattern
A pattern that matches BinaryNameWithoutPackage strings.
|
static @Regex java.lang.String |
BinaryNameWithoutPackageRegex
A regex that matches BinaryNameWithoutPackage strings.
|
private static @Regex java.lang.String |
CLASS_GET_NAME_NONPRIMITIVE_NONARRAY
A regex that matches ClassGetName, for non-primitive, non-array types.
|
static java.util.regex.Pattern |
ClassGetNamePattern
A pattern that matches ClassGetName strings.
|
static @Regex java.lang.String |
ClassGetNameRegex
A regex that matches ClassGetName strings.
|
static java.util.regex.Pattern |
ClassGetSimpleNamePattern
A pattern that matches ClassGetSimpleName strings.
|
static @Regex java.lang.String |
ClassGetSimpleNameRegex
A regex that matches ClassGetSimpleName strings.
|
private static @Regex java.lang.String |
DOT_SEPARATED_IDENTIFIERS
An unanchored regex that matches DotSeparatedIdentifiers strings.
|
static java.util.regex.Pattern |
DotSeparatedIdentifiersOrPrimitiveTypePattern
A pattern that matches DotSeparatedIdentifiersOrPrimitiveType strings.
|
static @Regex java.lang.String |
DotSeparatedIdentifiersOrPrimitiveTypeRegex
A regex that matches DotSeparatedIdentifiersOrPrimitiveType strings.
|
static java.util.regex.Pattern |
DotSeparatedIdentifiersPattern
A pattern that matches DotSeparatedIdentifiers strings.
|
static @Regex java.lang.String |
DotSeparatedIdentifiersRegex
A regex that matches DotSeparatedIdentifiers strings.
|
private static @Regex java.lang.String |
FD_PRIMITIVE
A regex that matches field descriptors for primitive types.
|
static java.util.regex.Pattern |
FieldDescriptorForPrimitivePattern
A pattern that matches FieldDescriptorForPrimitive strings.
|
static @Regex java.lang.String |
FieldDescriptorForPrimitiveRegex
A regex that matches FieldDescriptorForPrimitive strings.
|
static java.util.regex.Pattern |
FieldDescriptorPattern
A pattern that matches FieldDescriptor strings.
|
static @Regex java.lang.String |
FieldDescriptorRegex
A regex that matches FieldDescriptor strings.
|
static java.util.regex.Pattern |
FieldDescriptorWithoutPackagePattern
A pattern that matches FieldDescriptorWithoutPackage strings.
|
static @Regex java.lang.String |
FieldDescriptorWithoutPackageRegex
A regex that matches FieldDescriptorWithoutPackage strings.
|
static java.util.regex.Pattern |
FqBinaryNamePattern
A pattern that matches FqBinaryName strings.
|
static @Regex java.lang.String |
FqBinaryNameRegex
A regex that matches FqBinaryName strings.
|
static java.util.regex.Pattern |
FullyQualifiedNamePattern
A pattern that matches FullyQualifiedName strings.
|
static @Regex java.lang.String |
FullyQualifiedNameRegex
A regex that matches FullyQualifiedName strings.
|
private static @Regex java.lang.String |
IDENTIFIER
A grouped regex that matches identifiers.
|
static @Regex java.lang.String |
IDENTIFIER_OR_PRIMITIVE_TYPE
An anchored regex that matches Identifier strings.
|
private static @Regex java.lang.String |
IDENTIFIER_TOKEN
A regex that matches Java identifier tokens, as defined by the Java grammar.
|
static java.util.regex.Pattern |
IdentifierOrPrimitiveTypePattern
A pattern that matches IdentifierOrPrimitiveType strings.
|
static @Regex java.lang.String |
IdentifierOrPrimitiveTypeRegex
A regex that matches IdentifierOrPrimitiveType strings.
|
static java.util.regex.Pattern |
IdentifierPattern
A pattern that matches Identifier strings.
|
static @Regex java.lang.String |
IdentifierRegex
A regex that matches Identifier strings.
|
static @Regex java.lang.String |
INTERNAL_FORM
A regex that matches InternalForm strings.
|
static java.util.regex.Pattern |
InternalFormPattern
A pattern that matches InternalForm strings.
|
static @Regex java.lang.String |
InternalFormRegex
A regex that matches InternalForm strings.
|
private static @Regex java.lang.String |
KEYWORD
An unanchored regex that matches keywords.
|
private static @Regex java.lang.String |
KEYWORD_NON_PRIMITIVE_TYPE
An unanchored regex that matches keywords, except primitive types.
|
private static @Regex java.lang.String |
KEYWORD_OR_LITERAL
A regex that matches identifier tokens that are not identifiers (keywords, boolean literals,
and the null literal).
|
private static @Regex java.lang.String |
NESTED
A regex that matches the nested-class part of a class name.
|
private static @Regex java.lang.String |
NESTED_ONE
A regex that matches the nested-class part of a class name, for one nested class.
|
private static @Regex java.lang.String |
PRIMITIVE_TYPE
An unanchored regex that matches primitive types.
|
static java.util.regex.Pattern |
PrimitiveTypePattern
A pattern that matches PrimitiveType strings.
|
static @Regex java.lang.String |
PrimitiveTypeRegex
A regex that matches PrimitiveType strings.
|
private static @Regex java.lang.String |
SLASH_SEPARATED_IDENTIFIERS
An unanchored regex that matches slash-separated identifiers.
|
Modifier | Constructor and Description |
---|---|
private |
SignatureRegexes()
Do not instantiate this class.
|
Modifier and Type | Method and Description |
---|---|
private static @Regex java.lang.String |
ALTERNATE(java.lang.String... args)
An ungrouped alternation.
|
private static @Regex java.lang.String |
ANCHORED(@Regex java.lang.String arg)
Create a regex that must match the entire string.
|
private static @Regex java.lang.String |
ANY(@Regex java.lang.String arg)
Create a regex matching zero or more of the given argument (Kleene star).
|
private static @Regex java.lang.String |
GROUPED_ALTERNATE(java.lang.String... args)
A grouped alternation.
|
private static @Regex java.lang.String |
GROUPED(@Regex java.lang.String arg)
Create a capturing group.
|
private static final @Regex java.lang.String KEYWORD_NON_PRIMITIVE_TYPE
private static final @Regex java.lang.String PRIMITIVE_TYPE
private static final @Regex java.lang.String FD_PRIMITIVE
private static final @Regex java.lang.String KEYWORD
private static final @Regex java.lang.String KEYWORD_OR_LITERAL
private static final @Regex java.lang.String IDENTIFIER_TOKEN
private static final @Regex java.lang.String IDENTIFIER
public static final @Regex java.lang.String IDENTIFIER_OR_PRIMITIVE_TYPE
private static final @Regex java.lang.String DOT_SEPARATED_IDENTIFIERS
private static final @Regex java.lang.String SLASH_SEPARATED_IDENTIFIERS
private static final @Regex java.lang.String NESTED_ONE
private static final @Regex java.lang.String NESTED
private static final @Regex java.lang.String BINARY_NAME
private static final @Regex java.lang.String ARRAY
public static final @Regex java.lang.String INTERNAL_FORM
private static final @Regex java.lang.String CLASS_GET_NAME_NONPRIMITIVE_NONARRAY
public static final @Regex java.lang.String ArrayWithoutPackageRegex
public static final java.util.regex.Pattern ArrayWithoutPackagePattern
public static final @Regex java.lang.String BinaryNameRegex
public static final java.util.regex.Pattern BinaryNamePattern
public static final @Regex java.lang.String BinaryNameWithoutPackageRegex
public static final java.util.regex.Pattern BinaryNameWithoutPackagePattern
public static final @Regex java.lang.String BinaryNameOrPrimitiveTypeRegex
public static final java.util.regex.Pattern BinaryNameOrPrimitiveTypePattern
public static final @Regex java.lang.String ClassGetNameRegex
public static final java.util.regex.Pattern ClassGetNamePattern
public static final @Regex java.lang.String ClassGetSimpleNameRegex
public static final java.util.regex.Pattern ClassGetSimpleNamePattern
public static final @Regex java.lang.String DotSeparatedIdentifiersRegex
public static final java.util.regex.Pattern DotSeparatedIdentifiersPattern
public static final @Regex java.lang.String DotSeparatedIdentifiersOrPrimitiveTypeRegex
public static final java.util.regex.Pattern DotSeparatedIdentifiersOrPrimitiveTypePattern
public static final @Regex java.lang.String FieldDescriptorRegex
public static final java.util.regex.Pattern FieldDescriptorPattern
public static final @Regex java.lang.String FieldDescriptorWithoutPackageRegex
public static final java.util.regex.Pattern FieldDescriptorWithoutPackagePattern
public static final @Regex java.lang.String FieldDescriptorForPrimitiveRegex
public static final java.util.regex.Pattern FieldDescriptorForPrimitivePattern
public static final @Regex java.lang.String FqBinaryNameRegex
public static final java.util.regex.Pattern FqBinaryNamePattern
public static final @Regex java.lang.String FullyQualifiedNameRegex
public static final java.util.regex.Pattern FullyQualifiedNamePattern
public static final @Regex java.lang.String IdentifierRegex
public static final java.util.regex.Pattern IdentifierPattern
public static final @Regex java.lang.String IdentifierOrPrimitiveTypeRegex
public static final java.util.regex.Pattern IdentifierOrPrimitiveTypePattern
public static final @Regex java.lang.String InternalFormRegex
public static final java.util.regex.Pattern InternalFormPattern
public static final @Regex java.lang.String PrimitiveTypeRegex
public static final java.util.regex.Pattern PrimitiveTypePattern
private static final @Regex java.lang.String GROUPED(@Regex java.lang.String arg)
arg
- a regular expressionprivate static final @Regex java.lang.String ANY(@Regex java.lang.String arg)
arg
- a regular expressionprivate static final @Regex java.lang.String ANCHORED(@Regex java.lang.String arg)
arg
- a regular expressionprivate static final @Regex java.lang.String ALTERNATE(java.lang.String... args)
args
- regular expressionsprivate static final @Regex java.lang.String GROUPED_ALTERNATE(java.lang.String... args)
args
- regular expressions