public class PatternMatcher
extends java.lang.Object
| Constructor and Description |
|---|
PatternMatcher(Pattern pattern) |
| Modifier and Type | Method and Description |
|---|---|
ObjectTable |
getMatchTable(PatternObject pattern) |
java.util.LinkedHashMap<PatternObject,ObjectTable> |
getObject2TableMap()
Deprecated.
since 1.2; for internal use only
|
ObjectTable |
match(PatternObject patternObject,
java.lang.Object... startObjects)
Matches the pattern against the structure of objects that can be discovered from the start objects,
and returns the table of matched values corresponding to the given pattern object.
|
ObjectTable |
match(java.lang.String patternObjectName,
java.lang.Object... startObjects)
Matches the pattern against the structure of objects that can be discovered from the start objects,
and returns the table of matched values corresponding to the named pattern object.
|
public PatternMatcher(Pattern pattern)
pattern - the pattern@Deprecated public java.util.LinkedHashMap<PatternObject,ObjectTable> getObject2TableMap()
public ObjectTable getMatchTable(PatternObject pattern)
pattern - the pattern objectnull if the pattern object was not reachedpublic ObjectTable match(java.lang.String patternObjectName, java.lang.Object... startObjects)
patternObjectName - the name of the pattern object the results are requested forstartObjects - the root objects for object structure discoveryNoApplicableConstraintException - if there were unmatched constraints, possibly due to disconnected pattern objectsmatch(PatternObject, Object...)public ObjectTable match(PatternObject patternObject, java.lang.Object... startObjects)
patternObject - the pattern object the results are requested forstartObjects - the root objects for object structure discoveryNoApplicableConstraintException - if there were unmatched constraints, possibly due to disconnected pattern objects