public abstract class Expression extends Object implements Comparable<Expression>
Modifier and Type | Class and Description |
---|---|
protected static class |
Expression.Group |
Modifier and Type | Field and Description |
---|---|
static Pattern |
GROUP |
protected List<Expression.Group> |
groups |
protected int |
literalCharacters |
protected int |
numCapturingGroups |
protected int |
numNonDefaultGroups |
protected String |
pathExpression |
protected Pattern |
pattern |
protected String |
regex |
Constructor and Description |
---|
Expression(String segment,
String additionalRegex) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Expression expression) |
int |
getNumGroups() |
String |
getPathExpression() |
Pattern |
getPattern() |
String |
getRegex() |
protected static int |
groupCount(String regex)
Find the number of groups in the regular expression
don't count escaped '('
|
public static final Pattern GROUP
protected String pathExpression
protected String regex
protected Pattern pattern
protected List<Expression.Group> groups
protected int literalCharacters
protected int numCapturingGroups
protected int numNonDefaultGroups
public int compareTo(Expression expression)
compareTo
in interface Comparable<Expression>
protected static int groupCount(String regex)
regex
- public int getNumGroups()
public String getRegex()
public String getPathExpression()
public Pattern getPattern()
Copyright © 2017 JBoss by Red Hat. All rights reserved.