|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrita.support.RegexRule
public class RegexRule
Adapted from the SnlgPatternRule class in the SimpleNLG package
| Field Summary | |
|---|---|
static int |
DEFAULT
The Constant DEFAULT. |
static int |
EXCEPTION
The Constant EXCEPTION. |
static int |
GENERIC
The Constant GENERIC. |
| Constructor Summary | |
|---|---|
RegexRule(java.lang.String regex,
int truncate,
java.lang.String suff)
Instantiates a new pattern action rule. |
|
RegexRule(java.lang.String regex,
int truncate,
java.lang.String suff,
int notused)
Instantiates a new pattern action rule. |
|
| Method Summary | |
|---|---|
boolean |
analyse(java.lang.String word)
Analyse. |
boolean |
applies(java.lang.String word)
Applies. |
java.lang.String |
fire(java.lang.String word)
Fire. |
java.lang.String |
getLeftHandSide()
Gets the left hand side. |
java.lang.String |
toString()
The type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int EXCEPTION
public static final int GENERIC
public static final int DEFAULT
| Constructor Detail |
|---|
public RegexRule(java.lang.String regex,
int truncate,
java.lang.String suff,
int notused)
regex - the regextruncate - the truncatesuff - the suff
public RegexRule(java.lang.String regex,
int truncate,
java.lang.String suff)
regex - the regextruncate - the truncatesuff - the suff| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getLeftHandSide()
public boolean applies(java.lang.String word)
word - the word
public java.lang.String fire(java.lang.String word)
word - the word
public boolean analyse(java.lang.String word)
word - the word
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||