public class RegexpState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Regexp |
_regexp |
static int |
FAIL |
static int |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
static RegexpState |
create(Env env,
Regexp regexp) |
static RegexpState |
create(Env env,
Regexp regexp,
StringValue subject) |
int |
end() |
int |
end(int i) |
int |
exec(Env env,
StringValue subject,
int start)
XXX: not proper behaviour with /g
|
boolean |
find() |
boolean |
find(Env env,
StringValue subject) |
int |
find(Env env,
StringValue subject,
int first) |
static void |
free(Env env,
RegexpState state) |
int |
getBegin(int i) |
int |
getEnd(int i) |
StringValue |
getGroupName(int i) |
int |
getLength() |
int |
getSubjectLength() |
StringValue |
group(Env env) |
StringValue |
group(Env env,
int i) |
int |
groupCount() |
boolean |
isFinalized(int i) |
boolean |
isMatchedGroup(int i) |
int |
length() |
void |
setBegin(int i,
int v) |
void |
setEnd(int i,
int v) |
void |
setFinalized(int i,
boolean isFinalized) |
void |
setFirst(int first) |
void |
setLength(int length) |
boolean |
setSubject(Env env,
StringValue subject) |
int |
start() |
int |
start(int i) |
StringValue |
substring(Env env,
int start) |
StringValue |
substring(Env env,
int start,
int end) |
java.lang.String |
toString() |
public static final int FAIL
public static final int SUCCESS
public Regexp _regexp
public static RegexpState create(Env env, Regexp regexp)
public static RegexpState create(Env env, Regexp regexp, StringValue subject)
public static void free(Env env, RegexpState state)
public int getSubjectLength()
public boolean setSubject(Env env, StringValue subject)
public void setFirst(int first)
public boolean find()
public boolean find(Env env, StringValue subject)
public int find(Env env, StringValue subject, int first)
public int exec(Env env, StringValue subject, int start)
public int getBegin(int i)
public int getEnd(int i)
public void setBegin(int i, int v)
public boolean isFinalized(int i)
public void setFinalized(int i, boolean isFinalized)
public void setEnd(int i, int v)
public int getLength()
public void setLength(int length)
public int length()
public int start()
public int start(int i)
public int end()
public int end(int i)
public int groupCount()
public boolean isMatchedGroup(int i)
public StringValue group(Env env)
public StringValue group(Env env, int i)
public StringValue getGroupName(int i)
public StringValue substring(Env env, int start)
public StringValue substring(Env env, int start, int end)
public java.lang.String toString()
toString
in class java.lang.Object