com.indexdata.namedgroups
Class NamedMatcher
java.lang.Object
com.indexdata.namedgroups.NamedMatcher
- All Implemented Interfaces:
- NamedMatchResult, MatchResult
public class NamedMatcher
- extends Object
- implements NamedMatchResult
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.