org.apache.regexp
public class REDemo extends Applet implements TextListener
Version: $Id: REDemo.java 518156 2007-03-14 14:31:26Z vgritsenko $
Field Summary | |
---|---|
REDebugCompiler | compiler |
TextField | fieldMatch |
TextField | fieldRE
Components |
TextArea | outMatch |
TextArea | outRE |
RE | r
Matcher and compiler objects |
Method Summary | |
---|---|
void | init()
Add controls and init applet |
static void | main(String[] arg)
Main application entrypoint. |
void | sayMatch(String s)
Say something into match text area |
void | sayRE(String s)
Say something into RE text area |
void | textValueChanged(TextEvent e)
Called when text values change |
String | throwableToString(Throwable t)
Convert throwable to string |
void | updateMatch(String match)
Update matching info by matching the string against the current
compiled regular expression. |
void | updateRE(String expr)
Change regular expression |
Parameters: arg Command line arguments
Parameters: s What to say
Parameters: s What to say
Parameters: e TextEvent
Parameters: t Throwable to convert to string
Parameters: match String to match against
Parameters: expr Expression to compile