org.apache.joran
Class Pattern
java.lang.Object
|
+--org.apache.joran.Pattern
- public class Pattern
- extends java.lang.Object
Constructor Summary |
Pattern()
|
Pattern(java.lang.String p)
Build a pattern from a string.
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
get(int i)
|
int |
hashCode()
|
java.lang.String |
peekLast()
|
void |
pop()
|
void |
push(java.lang.String s)
|
int |
size()
|
int |
tailMatch(Pattern p)
Returns the number of "tail" components that this pattern has in common
with the pattern p passed as parameter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Pattern
public Pattern()
Pattern
public Pattern(java.lang.String p)
- Build a pattern from a string.
Note that "/x" is considered equivalent to "x" and to "x/"
push
public void push(java.lang.String s)
size
public int size()
get
public java.lang.String get(int i)
pop
public void pop()
peekLast
public java.lang.String peekLast()
tailMatch
public int tailMatch(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.
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright 2000-2003 Apache Software Foundation.