ipipan.spejd.rules
Class MatchPattern
java.lang.Object
ipipan.spejd.rules.MatchPattern
- All Implemented Interfaces:
- Match
public class MatchPattern
- extends java.lang.Object
- implements Match
Constructor Summary |
MatchPattern(java.lang.String[] left,
java.lang.String[] match,
java.lang.String[] right,
boolean[] required)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MatchPattern
public MatchPattern(java.lang.String[] left,
java.lang.String[] match,
java.lang.String[] right,
boolean[] required)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
feed
public void feed(Sentence sentence)
nextMatch
public boolean nextMatch()
printMatch
public void printMatch()
getSingle
public Entity getSingle(int s)
- Specified by:
getSingle
in interface Match
getSpec
public Entity[] getSpec(int s)
- Specified by:
getSpec
in interface Match
get
public Entity[] get(int[] s)
- Specified by:
get
in interface Match
getMatch
public Entity[] getMatch()
- Specified by:
getMatch
in interface Match