onig4j
Interface OnigRegion.Callback

Enclosing class:
OnigRegion

public static interface OnigRegion.Callback

Callback interface for onig_capture_tree_traverse() function.

See Also:
OnigRegion.traverseCaptureTree(onig4j.OnigRegion.Callback, int), Oniguruma, Oniguruma API, 鬼車, 鬼車インターフェース

Method Summary
 int call(int group, int begin, int end, int level, int at)
          Called from onig_capture_tree_traverse() function.
 

Method Detail

call

int call(int group,
         int begin,
         int end,
         int level,
         int at)
Called from onig_capture_tree_traverse() function.

Parameters:
group - The group number
begin - The capture start position
end - The capture end position
level - The nest level (from 0)
at - The callback position (ONIG_TRAVERSE_CALLBACK_AT_FIRST or ONIG_TRAVERSE_CALLBACK_AT_LAST)
Returns:
if func does not return 0, then traverse is stopped
See Also:
OnigRegion.ONIG_TRAVERSE_CALLBACK_AT_FIRST, OnigRegion.ONIG_TRAVERSE_CALLBACK_AT_LAST