Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jext.search
Class LiteralSearchMatcher  view LiteralSearchMatcher download LiteralSearchMatcher.java

java.lang.Object
  extended byorg.jext.search.LiteralSearchMatcher

public class LiteralSearchMatcher
extends java.lang.Object


Field Summary
private  boolean ignoreCase
           
private  java.lang.String replace
           
private  char[] search
           
 
Constructor Summary
LiteralSearchMatcher(java.lang.String search, java.lang.String replace, boolean ignoreCase)
          Creates a new string literal matcher.
 
Method Summary
 int[] nextMatch(java.lang.String text)
          Returns the offset of the first match of the specified text within this matcher.
 int[] nextMatch(java.lang.String text, int index)
           
 java.lang.String substitute(java.lang.String text)
          Returns the specified text, with any substitution specified within this matcher performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

search

private char[] search

replace

private java.lang.String replace

ignoreCase

private boolean ignoreCase
Constructor Detail

LiteralSearchMatcher

public LiteralSearchMatcher(java.lang.String search,
                            java.lang.String replace,
                            boolean ignoreCase)
Creates a new string literal matcher.

Method Detail

nextMatch

public int[] nextMatch(java.lang.String text)
Returns the offset of the first match of the specified text within this matcher.


nextMatch

public int[] nextMatch(java.lang.String text,
                       int index)

substitute

public java.lang.String substitute(java.lang.String text)
Returns the specified text, with any substitution specified within this matcher performed.