|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonig4j.OnigRegion
public class OnigRegion
Oniguruma region class
Nested Class Summary | |
---|---|
static interface |
OnigRegion.Callback
Callback interface for onig_capture_tree_traverse() function. |
Field Summary | |
---|---|
protected long |
handle
object handle. |
static int |
ONIG_TRAVERSE_CALLBACK_AT_BOTH
callback first, then traverse childs, and at last callback again |
static int |
ONIG_TRAVERSE_CALLBACK_AT_FIRST
callback first, then traverse childs |
static int |
ONIG_TRAVERSE_CALLBACK_AT_LAST
traverse childs first, then callback |
Constructor Summary | |
---|---|
OnigRegion()
invoke onig_region_new() function. |
Method Summary | |
---|---|
int |
allocated()
Returns the value of OnigRegion.allocated. |
int |
begin(int index)
Returns the value of OnigRegion.beg[index]. |
void |
clear()
invoke onig_region_clear() function. |
OnigRegion |
clone()
invoke onig_region_copy() function. |
void |
close()
invoke free() method. |
int |
count()
Returns the value of OnigRegion.num_regs. |
int |
end(int index)
Returns the value of OnigRegion.end[index]. |
protected void |
finalize()
invoke close() method. |
protected void |
free()
invoke onig_region_free(1) function. |
OnigCaptureTreeNode |
getCaptureTreeNode()
invoke onig_get_capture_tree() function. |
void |
resize(int n)
invoke onig_region_resize() funcation. |
int |
traverseCaptureTree(OnigRegion.Callback callback,
int at)
invoke onig_capture_tree_traverse() function. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ONIG_TRAVERSE_CALLBACK_AT_FIRST
public static final int ONIG_TRAVERSE_CALLBACK_AT_LAST
public static final int ONIG_TRAVERSE_CALLBACK_AT_BOTH
protected volatile long handle
Constructor Detail |
---|
public OnigRegion()
Method Detail |
---|
protected final void free()
public void clear()
public OnigRegion clone()
clone
in class java.lang.Object
public OnigCaptureTreeNode getCaptureTreeNode()
OnigSyntaxType.isActiveCaputureHistory()
public void resize(int n)
n
- The new sizepublic int allocated()
public int count()
public int begin(int index)
index
- The index value
public int end(int index)
index
- The index value
public int traverseCaptureTree(OnigRegion.Callback callback, int at)
callback
- The callback objectat
- The callback position (ONIG_TRAVERSE_CALLBACK_AT_FIRST or ONIG_TRAVERSE_CALLBACK_AT_LAST or ONIG_TRAVERSE_CALLBACK_AT_BOTH)
public final void close()
close
in interface java.io.Closeable
free()
protected final void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |