Package ch.qos.logback.core.joran.spi
Class ElementSelector
java.lang.Object
ch.qos.logback.core.joran.spi.ElementPath
ch.qos.logback.core.joran.spi.ElementSelector
ElementSelector extends
ElementPath with matching operations such as
fullPathMatch(ElementPath),
getPrefixMatchLength(ElementPath) and
getTailMatchLength(ElementPath).
Parts of the path may contain '*' for wildcard matching.
- Since:
- 1.1.0
- Author:
- Ceki Gülcü
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfullPathMatch(ElementPath path) intReturns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter.intReturns the number of "tail" components that this pattern has in common with the pattern p passed as parameter.inthashCode()booleanMethods inherited from class ch.qos.logback.core.joran.spi.ElementPath
duplicate, get, getCopyOfPartList, peekLast, pop, push, size, toStableString, toString
-
Constructor Details
-
ElementSelector
public ElementSelector() -
ElementSelector
-
ElementSelector
Build an elementPath from a string. Note that "/x" is considered equivalent to "x" and to "x/"
-
-
Method Details
-
fullPathMatch
-
getTailMatchLength
Returns the number of "tail" components that this pattern has in common with the pattern p passed as parameter. By "tail" components we mean the components at the end of the pattern. -
isContainedIn
-
getPrefixMatchLength
Returns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter. By "prefix" components we mean the components at the beginning of the pattern. -
equals
- Overrides:
equalsin classElementPath
-
hashCode
-