类 LiteralPathElement

java.lang.Object
cn.taketoday.web.util.pattern.PathElement
cn.taketoday.web.util.pattern.LiteralPathElement

class LiteralPathElement extends PathElement
A literal path element. In the pattern '/foo/bar/goo' there are three literal path elements 'foo', 'bar' and 'goo'.
从以下版本开始:
4.0
作者:
Andy Clement, Harry Yang
  • 字段详细资料

    • len

      private final int len
    • text

      private final String text
    • caseSensitive

      private final boolean caseSensitive
  • 构造器详细资料

    • LiteralPathElement

      public LiteralPathElement(int pos, char[] literalText, boolean caseSensitive, char separator)
  • 方法详细资料

    • matches

      public boolean matches(int pathIndex, PathPattern.MatchingContext matchingContext)
      从类复制的说明: PathElement
      Attempt to match this path element.
      指定者:
      matches 在类中 PathElement
      参数:
      pathIndex - the current position within the candidate path
      matchingContext - encapsulates context for the match including the candidate
      返回:
      true if it matches, otherwise false
    • getNormalizedLength

      public int getNormalizedLength()
      从类复制的说明: PathElement
      Return the length of the path element where captures are considered to be one character long.
      指定者:
      getNormalizedLength 在类中 PathElement
      返回:
      the normalized length
    • getChars

      public char[] getChars()
      指定者:
      getChars 在类中 PathElement
    • isLiteral

      public boolean isLiteral()
      从类复制的说明: PathElement
      Return whether this PathElement can be strictly compared against another element for matching.
      覆盖:
      isLiteral 在类中 PathElement
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object