|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ch.elca.dependency.graph.AbstractGraphProcessor | +--ch.elca.dependency.graph.Aggregator
This class is responsible for aggregating nodes in a graph accordingly to a regexp.
Field Summary | |
protected boolean |
m_noRegexp
A flag, telling whether the specified regular expression could be successfully used for building a RE Program. |
protected java.util.regex.Pattern |
m_regexp
A precompiled regexp matcher. |
protected java.lang.String |
m_regexpString
A regexp String associated with this
Aggregator . |
Fields inherited from class ch.elca.dependency.graph.AbstractGraphProcessor |
m_name |
Constructor Summary | |
Aggregator()
Creates a new Aggregator instance. |
|
Aggregator(java.lang.String name,
java.lang.String regexpString)
Creates a new Aggregator with a name and a String
used to be used for building a RE (regular expression program). |
Method Summary | |
java.util.regex.Pattern |
getPattern()
Returns the Pattern (Regexp) used by this Aggregator. |
java.lang.String |
getRegexp()
Get the regexp used to aggregate nodes. |
Graph |
process(Graph graph)
Aggregate nodes accordingl to a regexp. |
void |
setRegexp(java.lang.String regexpString)
Set a regular expression for aggregating nodes. |
Methods inherited from class ch.elca.dependency.graph.AbstractGraphProcessor |
getName, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String m_regexpString
regexp String
associated with this
Aggregator
.
protected java.util.regex.Pattern m_regexp
protected boolean m_noRegexp
RE
Program.
Constructor Detail |
public Aggregator()
Aggregator
instance.
public Aggregator(java.lang.String name, java.lang.String regexpString)
Aggregator
with a name and a String
used to be used for building a RE (regular expression program).
name
- a String
valueregexpString
- a String
valueMethod Detail |
public void setRegexp(java.lang.String regexpString)
regexpString
- a String
valuepublic java.lang.String getRegexp()
String
valuepublic java.util.regex.Pattern getPattern()
Pattern
valuepublic Graph process(Graph graph)
AbstractGraphProcessor
.
graph
- a Graph
value
Graph
valueGraphUtils.copy(Graph)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |