onig4j
Class OnigSyntaxType

java.lang.Object
  extended by onig4j.OnigSyntaxType
All Implemented Interfaces:
java.io.Closeable, java.lang.Cloneable

public final class OnigSyntaxType
extends java.lang.Object
implements java.lang.Cloneable

Pattern syntax class.

See Also:
Oniguruma, 鬼車

Field Summary
protected  long handle
          object handle.
static int ONIG_INEFFECTIVE_META_CHAR
           
static int ONIG_META_CHAR_ANYCHAR
           
static int ONIG_META_CHAR_ANYCHAR_ANYTIME
           
static int ONIG_META_CHAR_ANYTIME
           
static int ONIG_META_CHAR_ESCAPE
           
static int ONIG_META_CHAR_ONE_OR_MORE_TIME
           
static int ONIG_META_CHAR_ZERO_OR_ONE_TIME
           
static int ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC
           
static int ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC
           
static int ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV
           
static int ONIG_SYN_ALLOW_INVALID_INTERVAL
           
static int ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME
           
static int ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP
           
static int ONIG_SYN_BACKSLASH_ESCAPE_IN_CC
           
static int ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP
           
static int ONIG_SYN_CONTEXT_INDEP_ANCHORS
           
static int ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS
           
static int ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS
           
static int ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND
           
static int ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY
           
static int ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC
           
static int ONIG_SYN_OP_ASTERISK_ZERO_INF
           
static int ONIG_SYN_OP_BRACE_INTERVAL
           
static int ONIG_SYN_OP_BRACKET_CC
           
static int ONIG_SYN_OP_DECIMAL_BACKREF
           
static int ONIG_SYN_OP_DOT_ANYCHAR
           
static int ONIG_SYN_OP_ESC_ASTERISK_ZERO_INF
           
static int ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR
           
static int ONIG_SYN_OP_ESC_B_WORD_BOUND
           
static int ONIG_SYN_OP_ESC_BRACE_INTERVAL
           
static int ONIG_SYN_OP_ESC_C_CONTROL
           
static int ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR
           
static int ONIG_SYN_OP_ESC_CONTROL_CHARS
           
static int ONIG_SYN_OP_ESC_D_DIGIT
           
static int ONIG_SYN_OP_ESC_LPAREN_SUBEXP
           
static int ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
           
static int ONIG_SYN_OP_ESC_OCTAL3
           
static int ONIG_SYN_OP_ESC_PLUS_ONE_INF
           
static int ONIG_SYN_OP_ESC_QMARK_ZERO_ONE
           
static int ONIG_SYN_OP_ESC_S_WHITE_SPACE
           
static int ONIG_SYN_OP_ESC_VBAR_ALT
           
static int ONIG_SYN_OP_ESC_W_WORD
           
static int ONIG_SYN_OP_ESC_X_BRACE_HEX8
           
static int ONIG_SYN_OP_ESC_X_HEX2
           
static int ONIG_SYN_OP_LINE_ANCHOR
           
static int ONIG_SYN_OP_LPAREN_SUBEXP
           
static int ONIG_SYN_OP_PLUS_ONE_INF
           
static int ONIG_SYN_OP_POSIX_BRACKET
           
static int ONIG_SYN_OP_QMARK_NON_GREEDY
           
static int ONIG_SYN_OP_QMARK_ZERO_ONE
           
static int ONIG_SYN_OP_VARIABLE_META_CHARACTERS
           
static int ONIG_SYN_OP_VBAR_ALT
           
static int ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY
           
static int ONIG_SYN_OP2_CCLASS_SET_OP
           
static int ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL
           
static int ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META
           
static int ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE
           
static int ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
           
static int ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR
           
static int ONIG_SYN_OP2_ESC_H_XDIGIT
           
static int ONIG_SYN_OP2_ESC_K_NAMED_BACKREF
           
static int ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
           
static int ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
           
static int ONIG_SYN_OP2_ESC_U_HEX4
           
static int ONIG_SYN_OP2_ESC_V_VTAB
           
static int ONIG_SYN_OP2_INEFFECTIVE_ESCAPE
           
static int ONIG_SYN_OP2_OPTION_PERL
           
static int ONIG_SYN_OP2_OPTION_RUBY
           
static int ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL
           
static int ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT
           
static int ONIG_SYN_OP2_QMARK_GROUP_EFFECT
           
static int ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP
           
static int ONIG_SYN_STRICT_CHECK_BACKREF
           
static int ONIG_SYN_WARN_CC_OP_NOT_ESCAPED
           
static int ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT
           
static OnigSyntaxType ONIG_SYNTAX_ASIS
          plain text
static OnigSyntaxType ONIG_SYNTAX_DEFAULT
          default (== Ruby)
static OnigSyntaxType ONIG_SYNTAX_EMACS
          Emacs
static OnigSyntaxType ONIG_SYNTAX_GNU_REGEX
          GNU regex
static OnigSyntaxType ONIG_SYNTAX_GREP
          grep
static OnigSyntaxType ONIG_SYNTAX_JAVA
          Java (Sun java.util.regex)
static OnigSyntaxType ONIG_SYNTAX_PERL
          Perl
static OnigSyntaxType ONIG_SYNTAX_PERL_NG
          Perl + named group
static OnigSyntaxType ONIG_SYNTAX_POSIX_BASIC
          POSIX Basic RE
static OnigSyntaxType ONIG_SYNTAX_POSIX_EXTENDED
          POSIX Extended RE
static OnigSyntaxType ONIG_SYNTAX_RUBY
          Ruby
 
Constructor Summary
OnigSyntaxType()
          Allocates a OnigSyntaxType object.
NOTE: All fields have been initialized by 0.
 
Method Summary
 OnigSyntaxType clone()
          invoke onig_copy_syntax() function.
 void close()
          invoke free() method.
protected  void finalize()
          invoke close() method.
protected  void free()
          invoke free() function.
NOTE: Ignored if the built-in type.
 int getBehavior()
          invoke onig_get_syntax_behavior() function.
static OnigSyntaxType getDefaultSyntax()
          Returns the ONIG_SYNTAX_DEFAULT object.
 int getOperator()
          invoke onig_get_syntax_op() function.
 int getOperator2()
          invoke onig_get_syntax_op2() function.
 int getOptions()
          invoke onig_get_syntax_options() function.
 boolean isActiveCaputureHistory()
          Returns the capture histories activity.
 void setBehavior(int behavior)
          invoke onig_set_syntax_behavior() function.
NOTE: Ignored if the built-in type.
static void setDefaultSyntax(OnigSyntaxType syntax)
          invoke onig_set_default_syntax() function.
When the parameter is null, the default value is reset.
 void setMetaChar(int what, int codePoint)
          invoke onig_set_meta_char() function.
NOTE: Ignored if the built-in type.
 void setOperator(int op)
          invoke onig_set_syntax_op() function.
 void setOperator2(int op2)
          invoke onig_set_syntax_op2() function.
NOTE: Ignored if the built-in type.
 void setOptions(java.util.Collection<OnigOptionType> options)
          invoke onig_set_syntax_options() function.
NOTE: Ignored if the built-in type.
 void setOptions(int options)
          invoke onig_set_syntax_options() function.
NOTE: Ignored if the built-in type.
 void setOptions(OnigOptionType... options)
          invoke onig_set_syntax_options() function.
NOTE: Ignored if the built-in type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONIG_SYNTAX_ASIS

public static final OnigSyntaxType ONIG_SYNTAX_ASIS
plain text


ONIG_SYNTAX_POSIX_BASIC

public static final OnigSyntaxType ONIG_SYNTAX_POSIX_BASIC
POSIX Basic RE


ONIG_SYNTAX_POSIX_EXTENDED

public static final OnigSyntaxType ONIG_SYNTAX_POSIX_EXTENDED
POSIX Extended RE


ONIG_SYNTAX_EMACS

public static final OnigSyntaxType ONIG_SYNTAX_EMACS
Emacs


ONIG_SYNTAX_GREP

public static final OnigSyntaxType ONIG_SYNTAX_GREP
grep


ONIG_SYNTAX_GNU_REGEX

public static final OnigSyntaxType ONIG_SYNTAX_GNU_REGEX
GNU regex


ONIG_SYNTAX_JAVA

public static final OnigSyntaxType ONIG_SYNTAX_JAVA
Java (Sun java.util.regex)


ONIG_SYNTAX_PERL

public static final OnigSyntaxType ONIG_SYNTAX_PERL
Perl


ONIG_SYNTAX_PERL_NG

public static final OnigSyntaxType ONIG_SYNTAX_PERL_NG
Perl + named group


ONIG_SYNTAX_RUBY

public static final OnigSyntaxType ONIG_SYNTAX_RUBY
Ruby


ONIG_SYNTAX_DEFAULT

public static final OnigSyntaxType ONIG_SYNTAX_DEFAULT
default (== Ruby)


ONIG_SYN_OP_VARIABLE_META_CHARACTERS

public static final int ONIG_SYN_OP_VARIABLE_META_CHARACTERS
See Also:
Constant Field Values

ONIG_SYN_OP_DOT_ANYCHAR

public static final int ONIG_SYN_OP_DOT_ANYCHAR
See Also:
Constant Field Values

ONIG_SYN_OP_ASTERISK_ZERO_INF

public static final int ONIG_SYN_OP_ASTERISK_ZERO_INF
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_ASTERISK_ZERO_INF

public static final int ONIG_SYN_OP_ESC_ASTERISK_ZERO_INF
See Also:
Constant Field Values

ONIG_SYN_OP_PLUS_ONE_INF

public static final int ONIG_SYN_OP_PLUS_ONE_INF
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_PLUS_ONE_INF

public static final int ONIG_SYN_OP_ESC_PLUS_ONE_INF
See Also:
Constant Field Values

ONIG_SYN_OP_QMARK_ZERO_ONE

public static final int ONIG_SYN_OP_QMARK_ZERO_ONE
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_QMARK_ZERO_ONE

public static final int ONIG_SYN_OP_ESC_QMARK_ZERO_ONE
See Also:
Constant Field Values

ONIG_SYN_OP_BRACE_INTERVAL

public static final int ONIG_SYN_OP_BRACE_INTERVAL
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_BRACE_INTERVAL

public static final int ONIG_SYN_OP_ESC_BRACE_INTERVAL
See Also:
Constant Field Values

ONIG_SYN_OP_VBAR_ALT

public static final int ONIG_SYN_OP_VBAR_ALT
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_VBAR_ALT

public static final int ONIG_SYN_OP_ESC_VBAR_ALT
See Also:
Constant Field Values

ONIG_SYN_OP_LPAREN_SUBEXP

public static final int ONIG_SYN_OP_LPAREN_SUBEXP
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_LPAREN_SUBEXP

public static final int ONIG_SYN_OP_ESC_LPAREN_SUBEXP
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR

public static final int ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR

public static final int ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR
See Also:
Constant Field Values

ONIG_SYN_OP_DECIMAL_BACKREF

public static final int ONIG_SYN_OP_DECIMAL_BACKREF
See Also:
Constant Field Values

ONIG_SYN_OP_BRACKET_CC

public static final int ONIG_SYN_OP_BRACKET_CC
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_W_WORD

public static final int ONIG_SYN_OP_ESC_W_WORD
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END

public static final int ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_B_WORD_BOUND

public static final int ONIG_SYN_OP_ESC_B_WORD_BOUND
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_S_WHITE_SPACE

public static final int ONIG_SYN_OP_ESC_S_WHITE_SPACE
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_D_DIGIT

public static final int ONIG_SYN_OP_ESC_D_DIGIT
See Also:
Constant Field Values

ONIG_SYN_OP_LINE_ANCHOR

public static final int ONIG_SYN_OP_LINE_ANCHOR
See Also:
Constant Field Values

ONIG_SYN_OP_POSIX_BRACKET

public static final int ONIG_SYN_OP_POSIX_BRACKET
See Also:
Constant Field Values

ONIG_SYN_OP_QMARK_NON_GREEDY

public static final int ONIG_SYN_OP_QMARK_NON_GREEDY
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_CONTROL_CHARS

public static final int ONIG_SYN_OP_ESC_CONTROL_CHARS
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_C_CONTROL

public static final int ONIG_SYN_OP_ESC_C_CONTROL
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_OCTAL3

public static final int ONIG_SYN_OP_ESC_OCTAL3
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_X_HEX2

public static final int ONIG_SYN_OP_ESC_X_HEX2
See Also:
Constant Field Values

ONIG_SYN_OP_ESC_X_BRACE_HEX8

public static final int ONIG_SYN_OP_ESC_X_BRACE_HEX8
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE

public static final int ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE
See Also:
Constant Field Values

ONIG_SYN_OP2_QMARK_GROUP_EFFECT

public static final int ONIG_SYN_OP2_QMARK_GROUP_EFFECT
See Also:
Constant Field Values

ONIG_SYN_OP2_OPTION_PERL

public static final int ONIG_SYN_OP2_OPTION_PERL
See Also:
Constant Field Values

ONIG_SYN_OP2_OPTION_RUBY

public static final int ONIG_SYN_OP2_OPTION_RUBY
See Also:
Constant Field Values

ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT

public static final int ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT
See Also:
Constant Field Values

ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL

public static final int ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL
See Also:
Constant Field Values

ONIG_SYN_OP2_CCLASS_SET_OP

public static final int ONIG_SYN_OP2_CCLASS_SET_OP
See Also:
Constant Field Values

ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP

public static final int ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_K_NAMED_BACKREF

public static final int ONIG_SYN_OP2_ESC_K_NAMED_BACKREF
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_G_SUBEXP_CALL

public static final int ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
See Also:
Constant Field Values

ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY

public static final int ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL

public static final int ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META

public static final int ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_V_VTAB

public static final int ONIG_SYN_OP2_ESC_V_VTAB
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_U_HEX4

public static final int ONIG_SYN_OP2_ESC_U_HEX4
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR

public static final int ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY

public static final int ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT

public static final int ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
See Also:
Constant Field Values

ONIG_SYN_OP2_ESC_H_XDIGIT

public static final int ONIG_SYN_OP2_ESC_H_XDIGIT
See Also:
Constant Field Values

ONIG_SYN_OP2_INEFFECTIVE_ESCAPE

public static final int ONIG_SYN_OP2_INEFFECTIVE_ESCAPE
See Also:
Constant Field Values

ONIG_SYN_CONTEXT_INDEP_ANCHORS

public static final int ONIG_SYN_CONTEXT_INDEP_ANCHORS
See Also:
Constant Field Values

ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS

public static final int ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS
See Also:
Constant Field Values

ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS

public static final int ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS
See Also:
Constant Field Values

ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP

public static final int ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP
See Also:
Constant Field Values

ONIG_SYN_ALLOW_INVALID_INTERVAL

public static final int ONIG_SYN_ALLOW_INVALID_INTERVAL
See Also:
Constant Field Values

ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV

public static final int ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV
See Also:
Constant Field Values

ONIG_SYN_STRICT_CHECK_BACKREF

public static final int ONIG_SYN_STRICT_CHECK_BACKREF
See Also:
Constant Field Values

ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND

public static final int ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND
See Also:
Constant Field Values

ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP

public static final int ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP
See Also:
Constant Field Values

ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME

public static final int ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME
See Also:
Constant Field Values

ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY

public static final int ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY
See Also:
Constant Field Values

ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC

public static final int ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC
See Also:
Constant Field Values

ONIG_SYN_BACKSLASH_ESCAPE_IN_CC

public static final int ONIG_SYN_BACKSLASH_ESCAPE_IN_CC
See Also:
Constant Field Values

ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC

public static final int ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC
See Also:
Constant Field Values

ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC

public static final int ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC
See Also:
Constant Field Values

ONIG_SYN_WARN_CC_OP_NOT_ESCAPED

public static final int ONIG_SYN_WARN_CC_OP_NOT_ESCAPED
See Also:
Constant Field Values

ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT

public static final int ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT
See Also:
Constant Field Values

ONIG_META_CHAR_ESCAPE

public static final int ONIG_META_CHAR_ESCAPE
See Also:
Constant Field Values

ONIG_META_CHAR_ANYCHAR

public static final int ONIG_META_CHAR_ANYCHAR
See Also:
Constant Field Values

ONIG_META_CHAR_ANYTIME

public static final int ONIG_META_CHAR_ANYTIME
See Also:
Constant Field Values

ONIG_META_CHAR_ZERO_OR_ONE_TIME

public static final int ONIG_META_CHAR_ZERO_OR_ONE_TIME
See Also:
Constant Field Values

ONIG_META_CHAR_ONE_OR_MORE_TIME

public static final int ONIG_META_CHAR_ONE_OR_MORE_TIME
See Also:
Constant Field Values

ONIG_META_CHAR_ANYCHAR_ANYTIME

public static final int ONIG_META_CHAR_ANYCHAR_ANYTIME
See Also:
Constant Field Values

ONIG_INEFFECTIVE_META_CHAR

public static final int ONIG_INEFFECTIVE_META_CHAR
See Also:
Constant Field Values

handle

protected volatile long handle
object handle.

Constructor Detail

OnigSyntaxType

public OnigSyntaxType()
Allocates a OnigSyntaxType object.
NOTE: All fields have been initialized by 0.

See Also:
clone()
Method Detail

clone

public OnigSyntaxType clone()
invoke onig_copy_syntax() function.

Overrides:
clone in class java.lang.Object
Returns:
a clone of this instance

free

protected void free()
invoke free() function.
NOTE: Ignored if the built-in type.


isActiveCaputureHistory

public boolean isActiveCaputureHistory()
Returns the capture histories activity.

Returns:
true if the capture histories is active in the pattern syntax
See Also:
ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY

getOperator

public int getOperator()
invoke onig_get_syntax_op() function.

Returns:
The return value of onig_get_syntax_op() function

getOperator2

public int getOperator2()
invoke onig_get_syntax_op2() function.

Returns:
The return value of onig_get_syntax_op2() function

getBehavior

public int getBehavior()
invoke onig_get_syntax_behavior() function.

Returns:
The return value of onig_get_syntax_behavior() function

getOptions

public int getOptions()
invoke onig_get_syntax_options() function.

Returns:
The return value of onig_get_syntax_options() function

setOperator

public void setOperator(int op)
invoke onig_set_syntax_op() function. NOTE: Ignored if the built-in type.

Parameters:
op - The parameter value

setOperator2

public void setOperator2(int op2)
invoke onig_set_syntax_op2() function.
NOTE: Ignored if the built-in type.

Parameters:
op2 - The parameter value

setBehavior

public void setBehavior(int behavior)
invoke onig_set_syntax_behavior() function.
NOTE: Ignored if the built-in type.

Parameters:
behavior - The parameter value

setOptions

public void setOptions(int options)
invoke onig_set_syntax_options() function.
NOTE: Ignored if the built-in type.

Parameters:
options - The parameter value

setOptions

public void setOptions(OnigOptionType... options)
invoke onig_set_syntax_options() function.
NOTE: Ignored if the built-in type.

Parameters:
options - The parameter value

setOptions

public void setOptions(java.util.Collection<OnigOptionType> options)
invoke onig_set_syntax_options() function.
NOTE: Ignored if the built-in type.

Parameters:
options - The parameter value

setMetaChar

public void setMetaChar(int what,
                        int codePoint)
invoke onig_set_meta_char() function.
NOTE: Ignored if the built-in type.

Parameters:
what - The specifies which meta character it is. (ONIG_META_CHAR_ESCAPE, ONIG_META_CHAR_ANYCHAR, ONIG_META_CHAR_ANYTIME, ONIG_META_CHAR_ZERO_OR_ONE_TIME, ONIG_META_CHAR_ONE_OR_MORE_TIME, ONIG_META_CHAR_ANYCHAR_ANYTIME)
codePoint - The code point of meta character or ONIG_INEFFECTIVE_META_CHAR
See Also:
ONIG_META_CHAR_ESCAPE, ONIG_META_CHAR_ANYCHAR, ONIG_META_CHAR_ANYTIME, ONIG_META_CHAR_ZERO_OR_ONE_TIME, ONIG_META_CHAR_ONE_OR_MORE_TIME, ONIG_META_CHAR_ANYCHAR_ANYTIME, ONIG_INEFFECTIVE_META_CHAR, Character

getDefaultSyntax

public static OnigSyntaxType getDefaultSyntax()
Returns the ONIG_SYNTAX_DEFAULT object.

Returns:
The default syntax object

setDefaultSyntax

public static void setDefaultSyntax(OnigSyntaxType syntax)
invoke onig_set_default_syntax() function.
When the parameter is null, the default value is reset.

Parameters:
syntax - The OnigSyntaxType object (null is allowed)

close

public final void close()
invoke free() method.

Specified by:
close in interface java.io.Closeable
See Also:
free()

finalize

protected final void finalize()
                       throws java.lang.Throwable
invoke close() method.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable
See Also:
close()