com.judoscript.jdk14
Class RegexCompiler
java.lang.Object
com.judoscript.jdk14.RegexCompiler
- All Implemented Interfaces:
- RegexEngine
public final class RegexCompiler
- extends java.lang.Object
- implements RegexEngine
Method Summary |
Variable |
compile(Expr[] args)
|
Variable |
compile(java.lang.String pat,
int flags)
|
Variable |
compile(java.lang.String pat,
java.lang.String flags)
|
Variable |
matcher(java.lang.String s,
Expr[] params)
|
Variable |
matches(java.lang.String s,
Expr[] params)
|
Variable |
matchesStart(java.lang.String s,
Expr[] params)
|
Variable |
replaceAll(java.lang.String s,
Expr[] params)
|
Variable |
replaceFirst(java.lang.String s,
Expr[] params)
|
Variable |
split(java.lang.String s,
Expr[] params)
|
Variable |
splitWithMatches(java.lang.String s,
Expr[] params,
boolean needNonMatches)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexCompiler
public RegexCompiler()
compile
public Variable compile(Expr[] args)
throws java.lang.Throwable
- Specified by:
compile
in interface RegexEngine
- Throws:
java.lang.Throwable
compile
public Variable compile(java.lang.String pat,
java.lang.String flags)
throws java.lang.Exception
- Throws:
java.lang.Exception
compile
public Variable compile(java.lang.String pat,
int flags)
throws java.lang.Exception
- Throws:
java.lang.Exception
matcher
public Variable matcher(java.lang.String s,
Expr[] params)
throws java.lang.Throwable
- Specified by:
matcher
in interface RegexEngine
- Throws:
java.lang.Throwable
matches
public Variable matches(java.lang.String s,
Expr[] params)
throws java.lang.Throwable
- Specified by:
matches
in interface RegexEngine
- Throws:
java.lang.Throwable
matchesStart
public Variable matchesStart(java.lang.String s,
Expr[] params)
throws java.lang.Throwable
- Specified by:
matchesStart
in interface RegexEngine
- Throws:
java.lang.Throwable
replaceAll
public Variable replaceAll(java.lang.String s,
Expr[] params)
throws java.lang.Throwable
- Specified by:
replaceAll
in interface RegexEngine
- Throws:
java.lang.Throwable
replaceFirst
public Variable replaceFirst(java.lang.String s,
Expr[] params)
throws java.lang.Throwable
- Specified by:
replaceFirst
in interface RegexEngine
- Throws:
java.lang.Throwable
split
public Variable split(java.lang.String s,
Expr[] params)
throws java.lang.Throwable
- Specified by:
split
in interface RegexEngine
- Throws:
java.lang.Throwable
splitWithMatches
public Variable splitWithMatches(java.lang.String s,
Expr[] params,
boolean needNonMatches)
throws java.lang.Throwable
- Specified by:
splitWithMatches
in interface RegexEngine
- Throws:
java.lang.Throwable