|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kmy.regex.util.Regex | +--kmy.regex.jvm.JavaClassRegexStub
Field Summary | |
protected int[] |
cells
Variable values. |
protected int |
end
Index (in the buffer) of the last character in the string being matched plus one. |
protected char[][] |
extCells
Character buffers for referenced variable values. |
protected int |
forkPtr
Number of elements used in the forks array. |
protected int[] |
forks
This keeps information about forks in matching. |
protected int |
headStart
Starting index for the next search/match. |
protected int |
matchEnd
On successful match/search - index of the last character in matching string plus one. |
protected int |
matchStart
On successful match/search - index of the first character in matching string. |
protected int |
maxStart
Maximum value for the start of the matching string. |
protected RegexRefiller |
refiller
RegexRefiller to use when end of buffer is reached. |
protected boolean |
searching
True if searching is going on, false if matching. |
protected int |
start
Index (in the buffer) of the first character of the string being matched. |
protected char[] |
string
Character buffer which stores the string being matched. |
Fields inherited from class kmy.regex.util.Regex |
factory |
Constructor Summary | |
protected |
JavaClassRegexStub()
|
Method Summary | |
Regex |
cloneRegex()
|
void |
dumpForks()
Debugging method to print regex state. |
char[] |
getCharBuffer(int extHandle)
Returns external variable buffer by its buffer handle. |
int |
getExtVariableHandle(java.lang.String var)
Returns external variable buffer handle that can be used later to get or set variable value efficiently. |
int |
getIndex(int handle)
Returns external or internal variable index using its index handle. |
int |
getMatchEnd()
After successiful search returns matching substring's final position in the input buffer (that was set up by init method). |
int |
getMatchStart()
After successiful search returns matching substring's initial position in the input buffer (that was set up by init method). |
int |
getVariableHandle(java.lang.String var,
boolean begin)
Returns variable index handle that can be used later to get or set variable value efficiently. |
protected abstract java.util.Hashtable |
getVars()
|
boolean |
match()
Match the beginning of the buffer (that was set up by init method) against this regex. |
boolean |
matchWhole()
Match the buffer (that was set up by init method) against this regex. |
protected abstract boolean |
nextMatchInt()
|
boolean |
search()
Search the buffer (that was set up by init method) for a substring that matches this regex. |
boolean |
searchAgain()
Search the buffer (that was set up by init method) for a substring that matches this regex. |
void |
setExtVariableBuffer(int extHandle,
char[] arr)
Assignes external variable buffer by its buffer handle. |
void |
setIndex(int handle,
int value)
Returns internal variable index using its index handle. |
void |
setRefilledBuffer(char[] buf)
Refiller can call this method after refilling the buffer, if buffer has been reallocated. |
void |
setRefiller(RegexRefiller r)
|
java.util.Enumeration |
variables()
Enumerates all external and internal variables in this regex. |
Methods inherited from class kmy.regex.util.Regex |
accept,
clone,
createFilePattern,
createLowerCaseRegex,
createRegex,
createRegex,
createRegex,
get,
getMatch,
getMatchString,
init,
init,
init,
initFactory,
matches,
matches,
matchesWhole,
matchesWhole,
searchOnce,
searchOnce,
searchOnce,
searchOnce,
set,
setExtVariable,
setExtVariable,
setExtVariable,
setExtVariable,
setFactory |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected char[] string
protected int[] cells
protected int start
protected int end
protected int[] forks
protected int forkPtr
protected int headStart
protected int matchStart
protected int matchEnd
protected char[][] extCells
protected boolean searching
protected int maxStart
protected RegexRefiller refiller
Constructor Detail |
protected JavaClassRegexStub()
Method Detail |
protected abstract boolean nextMatchInt()
protected abstract java.util.Hashtable getVars()
public void dumpForks()
public int getVariableHandle(java.lang.String var, boolean begin)
public int getExtVariableHandle(java.lang.String var)
public void setExtVariableBuffer(int extHandle, char[] arr)
public java.util.Enumeration variables()
public char[] getCharBuffer(int extHandle)
public int getMatchStart()
public int getMatchEnd()
public int getIndex(int handle)
public void setIndex(int handle, int value)
public void setRefiller(RegexRefiller r)
public void setRefilledBuffer(char[] buf)
public boolean searchAgain()
public boolean search()
public boolean matchWhole()
public boolean match()
public Regex cloneRegex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |