com.indexdata.namedgroups
Class NamedMatcher

java.lang.Object
  extended by com.indexdata.namedgroups.NamedMatcher
All Implemented Interfaces:
NamedMatchResult, MatchResult

public class NamedMatcher
extends Object
implements NamedMatchResult


Method Summary
 NamedMatcher appendReplacement(StringBuffer sb, String replacement)
           
 StringBuffer appendTail(StringBuffer sb)
           
 int end()
           
 int end(int group)
           
 int end(String groupName)
           
 boolean equals(Object obj)
           
 boolean find()
           
 boolean find(int start)
           
 String group()
           
 String group(int group)
           
 String group(String groupName)
           
 int groupCount()
           
 boolean hasAnchoringBounds()
           
 int hashCode()
           
 boolean hasTransparentBounds()
           
 boolean hitEnd()
           
 boolean lookingAt()
           
 boolean matches()
           
 Map<String,String> namedGroups()
           
 NamedPattern namedPattern()
           
 List<String> orderedGroups()
           
 NamedMatcher region(int start, int end)
           
 int regionEnd()
           
 int regionStart()
           
 String replaceAll(String replacement)
           
 String replaceFirst(String replacement)
           
 boolean requireEnd()
           
 NamedMatcher reset()
           
 NamedMatcher reset(CharSequence input)
           
 Pattern standardPattern()
           
 int start()
           
 int start(int group)
           
 int start(String groupName)
           
 NamedMatchResult toMatchResult()
           
 String toString()
           
 NamedMatcher useAnchoringBounds(boolean b)
           
 NamedMatcher usePattern(NamedPattern newPattern)
           
 NamedMatcher useTransparentBounds(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

standardPattern

public Pattern standardPattern()

namedPattern

public NamedPattern namedPattern()

usePattern

public NamedMatcher usePattern(NamedPattern newPattern)

reset

public NamedMatcher reset()

reset

public NamedMatcher reset(CharSequence input)

matches

public boolean matches()

toMatchResult

public NamedMatchResult toMatchResult()

find

public boolean find()

find

public boolean find(int start)

lookingAt

public boolean lookingAt()

appendReplacement

public NamedMatcher appendReplacement(StringBuffer sb,
                                      String replacement)

appendTail

public StringBuffer appendTail(StringBuffer sb)

group

public String group()
Specified by:
group in interface MatchResult

group

public String group(int group)
Specified by:
group in interface MatchResult

groupCount

public int groupCount()
Specified by:
groupCount in interface MatchResult

orderedGroups

public List<String> orderedGroups()
Specified by:
orderedGroups in interface NamedMatchResult

group

public String group(String groupName)
Specified by:
group in interface NamedMatchResult

namedGroups

public Map<String,String> namedGroups()
Specified by:
namedGroups in interface NamedMatchResult

start

public int start()
Specified by:
start in interface MatchResult

start

public int start(int group)
Specified by:
start in interface MatchResult

start

public int start(String groupName)
Specified by:
start in interface NamedMatchResult

end

public int end()
Specified by:
end in interface MatchResult

end

public int end(int group)
Specified by:
end in interface MatchResult

end

public int end(String groupName)
Specified by:
end in interface NamedMatchResult

region

public NamedMatcher region(int start,
                           int end)

regionEnd

public int regionEnd()

regionStart

public int regionStart()

hitEnd

public boolean hitEnd()

requireEnd

public boolean requireEnd()

hasAnchoringBounds

public boolean hasAnchoringBounds()

hasTransparentBounds

public boolean hasTransparentBounds()

replaceAll

public String replaceAll(String replacement)

replaceFirst

public String replaceFirst(String replacement)

useAnchoringBounds

public NamedMatcher useAnchoringBounds(boolean b)

useTransparentBounds

public NamedMatcher useTransparentBounds(boolean b)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.