Class Expression

java.lang.Object
org.jboss.resteasy.core.registry.Expression
All Implemented Interfaces:
Comparable<Expression>
Direct Known Subclasses:
ClassExpression, MethodExpression

public abstract class Expression extends Object implements Comparable<Expression>
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

    • GROUP

      public static final Pattern GROUP
    • pathExpression

      protected String pathExpression
    • regex

      protected String regex
    • pattern

      protected Pattern pattern
    • groups

      protected List<Expression.Group> groups
    • literalCharacters

      protected int literalCharacters
    • numCapturingGroups

      protected int numCapturingGroups
    • numNonDefaultGroups

      protected int numNonDefaultGroups
  • Constructor Details

    • Expression

      public Expression(String segment, String additionalRegex)
  • Method Details

    • compareTo

      public int compareTo(Expression expression)
      Specified by:
      compareTo in interface Comparable<Expression>
    • groupCount

      protected static int groupCount(String regex)
      Find the number of groups in the regular expression don't count escaped '('.
      Parameters:
      regex - regular expression
      Returns:
      number of groups
    • isStatic

      public boolean isStatic()
    • getNumGroups

      public int getNumGroups()
    • getRegex

      public String getRegex()
    • getPathExpression

      public String getPathExpression()
    • getPattern

      public Pattern getPattern()