Logback API
Version 0.9.8

ch.qos.logback.core.joran.spi
Class Pattern

java.lang.Object
  extended by ch.qos.logback.core.joran.spi.Pattern

public class Pattern
extends Object


Constructor Summary
Pattern()
           
Pattern(String p)
          Build a pattern from a string.
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 String get(int i)
           
 int getPrefixMatchLength(Pattern p)
          Returns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter.
 int getTailMatchLength(Pattern p)
          Returns the number of "tail" components that this pattern has in common with the pattern p passed as parameter.
 int hashCode()
           
 String peekLast()
           
 void pop()
           
 void push(String s)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern()

Pattern

public Pattern(String p)
Build a pattern from a string. Note that "/x" is considered equivalent to "x" and to "x/"

Method Detail

clone

public Object clone()
Overrides:
clone in class Object

push

public void push(String s)

size

public int size()

get

public String get(int i)

pop

public void pop()

peekLast

public String peekLast()

getTailMatchLength

public int getTailMatchLength(Pattern p)
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.


getPrefixMatchLength

public int getPrefixMatchLength(Pattern p)
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

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.