onig4j
Class OnigSyntaxType
java.lang.Object
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
[0-9-a]=[0-9\-a] |
static int |
ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC
|
static int |
ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV
{,n} => {0,n} |
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
[..\w..] etc.. |
static int |
ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP
see doc/RE |
static int |
ONIG_SYN_CONTEXT_INDEP_ANCHORS
not implemented |
static int |
ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS
?, *, +, {n,m} |
static int |
ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS
error or ignore |
static int |
ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND
(?<=a|bc) |
static int |
ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY
a{n}?=(?:a{n})? |
static int |
ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC
[^...] |
static int |
ONIG_SYN_OP_ASTERISK_ZERO_INF
|
static int |
ONIG_SYN_OP_BRACE_INTERVAL
{lower,upper} |
static int |
ONIG_SYN_OP_BRACKET_CC
[...] |
static int |
ONIG_SYN_OP_DECIMAL_BACKREF
\num |
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
\A, \Z, \z |
static int |
ONIG_SYN_OP_ESC_B_WORD_BOUND
\b, \B |
static int |
ONIG_SYN_OP_ESC_BRACE_INTERVAL
\{lower,upper\} |
static int |
ONIG_SYN_OP_ESC_C_CONTROL
\cx |
static int |
ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR
\G |
static int |
ONIG_SYN_OP_ESC_CONTROL_CHARS
\n, \r, \t, \a ... |
static int |
ONIG_SYN_OP_ESC_D_DIGIT
\d, \D |
static int |
ONIG_SYN_OP_ESC_LPAREN_SUBEXP
\(...\) |
static int |
ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
{@literal \<. |
static int |
ONIG_SYN_OP_ESC_OCTAL3
\OOO |
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
\s, \S |
static int |
ONIG_SYN_OP_ESC_VBAR_ALT
\| |
static int |
ONIG_SYN_OP_ESC_W_WORD
\w, \W |
static int |
ONIG_SYN_OP_ESC_X_BRACE_HEX8
|
static int |
ONIG_SYN_OP_ESC_X_HEX2
\xHH |
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
[:xxxx:] |
static int |
ONIG_SYN_OP_QMARK_NON_GREEDY
??, *?, +?, {n,m}? |
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
(?@..),(?@<x>..) |
static int |
ONIG_SYN_OP2_CCLASS_SET_OP
[...&&..[..]..] |
static int |
ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL
\C-x |
static int |
ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META
\M-x |
static int |
ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE
\Q...\E |
static int |
ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
\g<name>, \g<n> |
static int |
ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR
\`, \' |
static int |
ONIG_SYN_OP2_ESC_H_XDIGIT
\h, \H |
static int |
ONIG_SYN_OP2_ESC_K_NAMED_BACKREF
\k<name> |
static int |
ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
\p{...}, \P{...} |
static int |
ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
\p{^..}, \P{^..} |
static int |
ONIG_SYN_OP2_ESC_U_HEX4
\\uHHHH |
static int |
ONIG_SYN_OP2_ESC_V_VTAB
\v as VTAB |
static int |
ONIG_SYN_OP2_INEFFECTIVE_ESCAPE
\ |
static int |
ONIG_SYN_OP2_OPTION_JAVA
(?idmsux), (?-idmsux)
NOTE: This is an original option. |
static int |
ONIG_SYN_OP2_OPTION_PERL
(?imsx), (?-imsx) |
static int |
ONIG_SYN_OP2_OPTION_RUBY
(?imx), (?-imx) |
static int |
ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL
{n,m}+ |
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
(?<name>...) |
static int |
ONIG_SYN_STRICT_CHECK_BACKREF
/(\1)/,/\1()/ .. |
static int |
ONIG_SYN_WARN_CC_OP_NOT_ESCAPED
[,-,] |
static int |
ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT
(?:a*)+ |
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)
NOTE: If the Oniruguma extended version 5.9.1.1 or later is used, the ONIG_SYN_OP2_OPTION_JAVA, the ONIG_OPTION_JAVA_LINES and the ONIG_OPTION_CASE_FOLD_ASCII_ONLY are added. |
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 |
void |
addBehavior(int behavior)
invoke onig_set_syntax_behavior(onig_get_syntax_behavior() | behavior) function.
NOTE: Ignored if the built-in type. |
void |
addOperator(int op)
invoke onig_set_syntax_op(onig_get_syntax_op() | op) function. |
void |
addOperator2(int op2)
invoke onig_set_syntax_op2(onig_get_syntax_op2() | op2) function.
NOTE: Ignored if the built-in type. |
void |
addOptions(java.util.Collection<OnigOptionType> options)
invoke onig_set_syntax_options(onig_get_syntax_options() | options) function.
NOTE: Ignored if the built-in type. |
void |
addOptions(int options)
invoke onig_set_syntax_options(onig_get_syntax_options() | options) function.
NOTE: Ignored if the built-in type. |
void |
addOptions(OnigOptionType... options)
invoke onig_set_syntax_options(onig_get_syntax_options() | options) function.
NOTE: Ignored if the built-in type. |
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 |
removeBehavior(int behavior)
invoke onig_set_syntax_behavior(onig_get_syntax_behavior() & ~behavior) function.
NOTE: Ignored if the built-in type. |
void |
removeOperator(int op)
invoke onig_set_syntax_op(onig_get_syntax_op() & ~op) function. |
void |
removeOperator2(int op2)
invoke onig_set_syntax_op2(onig_get_syntax_op2() & ~op2) function.
NOTE: Ignored if the built-in type. |
void |
removeOptions(java.util.Collection<OnigOptionType> options)
invoke onig_set_syntax_options(onig_get_syntax_options() & ~options) function.
NOTE: Ignored if the built-in type. |
void |
removeOptions(int options)
invoke onig_set_syntax_options(onig_get_syntax_options() & ~options) function.
NOTE: Ignored if the built-in type. |
void |
removeOptions(OnigOptionType... options)
invoke onig_set_syntax_options(onig_get_syntax_options() & ~options) function.
NOTE: Ignored if the built-in type. |
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 |
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)
NOTE: If the Oniruguma extended version 5.9.1.1 or later is used, the ONIG_SYN_OP2_OPTION_JAVA, the ONIG_OPTION_JAVA_LINES and the ONIG_OPTION_CASE_FOLD_ASCII_ONLY are added.
- See Also:
ONIG_SYN_OP2_OPTION_JAVA
,
OnigOptionType.ONIG_OPTION_JAVA_LINES
,
OnigOptionType.ONIG_OPTION_CASE_FOLD_ASCII_ONLY
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
- {lower,upper}
- See Also:
- Constant Field Values
ONIG_SYN_OP_ESC_BRACE_INTERVAL
public static final int ONIG_SYN_OP_ESC_BRACE_INTERVAL
- \{lower,upper\}
- 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
- \A, \Z, \z
- 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
- \G
- See Also:
- Constant Field Values
ONIG_SYN_OP_DECIMAL_BACKREF
public static final int ONIG_SYN_OP_DECIMAL_BACKREF
- \num
- 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
- \w, \W
- 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
- \b, \B
- See Also:
- Constant Field Values
ONIG_SYN_OP_ESC_S_WHITE_SPACE
public static final int ONIG_SYN_OP_ESC_S_WHITE_SPACE
- \s, \S
- See Also:
- Constant Field Values
ONIG_SYN_OP_ESC_D_DIGIT
public static final int ONIG_SYN_OP_ESC_D_DIGIT
- \d, \D
- 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
- [:xxxx:]
- See Also:
- Constant Field Values
ONIG_SYN_OP_QMARK_NON_GREEDY
public static final int ONIG_SYN_OP_QMARK_NON_GREEDY
- ??, *?, +?, {n,m}?
- See Also:
- Constant Field Values
ONIG_SYN_OP_ESC_CONTROL_CHARS
public static final int ONIG_SYN_OP_ESC_CONTROL_CHARS
- \n, \r, \t, \a ...
- See Also:
- Constant Field Values
ONIG_SYN_OP_ESC_C_CONTROL
public static final int ONIG_SYN_OP_ESC_C_CONTROL
- \cx
- See Also:
- Constant Field Values
ONIG_SYN_OP_ESC_OCTAL3
public static final int ONIG_SYN_OP_ESC_OCTAL3
- \OOO
- See Also:
- Constant Field Values
ONIG_SYN_OP_ESC_X_HEX2
public static final int ONIG_SYN_OP_ESC_X_HEX2
- \xHH
- 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
- \Q...\E
- 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
- (?imsx), (?-imsx)
- See Also:
- Constant Field Values
ONIG_SYN_OP2_OPTION_RUBY
public static final int ONIG_SYN_OP2_OPTION_RUBY
- (?imx), (?-imx)
- 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
- {n,m}+
- 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
- (?<name>...)
- See Also:
- Constant Field Values
ONIG_SYN_OP2_ESC_K_NAMED_BACKREF
public static final int ONIG_SYN_OP2_ESC_K_NAMED_BACKREF
- \k<name>
- See Also:
- Constant Field Values
ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
public static final int ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
- \g<name>, \g<n>
- See Also:
- Constant Field Values
ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY
public static final int ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY
- (?@..),(?@<x>..)
- 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
- \C-x
- 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
- \M-x
- See Also:
- Constant Field Values
ONIG_SYN_OP2_ESC_V_VTAB
public static final int ONIG_SYN_OP2_ESC_V_VTAB
- \v as VTAB
- See Also:
- Constant Field Values
ONIG_SYN_OP2_ESC_U_HEX4
public static final int ONIG_SYN_OP2_ESC_U_HEX4
- \\uHHHH
- 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
- \p{...}, \P{...}
- 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
- \p{^..}, \P{^..}
- See Also:
- Constant Field Values
ONIG_SYN_OP2_ESC_H_XDIGIT
public static final int ONIG_SYN_OP2_ESC_H_XDIGIT
- \h, \H
- 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_OP2_OPTION_JAVA
public static final int ONIG_SYN_OP2_OPTION_JAVA
- (?idmsux), (?-idmsux)
NOTE: This is an original option. If it wants to use this option, the Oniruguma extended version 5.9.1.1 or later is required. (Not exist in the Oniguruma version 5.9.1)
- See Also:
- Constant Field Values
ONIG_SYN_CONTEXT_INDEP_ANCHORS
public static final int ONIG_SYN_CONTEXT_INDEP_ANCHORS
- not implemented
- See Also:
- Constant Field Values
ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS
public static final int ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS
- ?, *, +, {n,m}
- See Also:
- Constant Field Values
ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS
public static final int ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS
- error or ignore
- 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
- {,n} => {0,n}
- See Also:
- Constant Field Values
ONIG_SYN_STRICT_CHECK_BACKREF
public static final int ONIG_SYN_STRICT_CHECK_BACKREF
- /(\1)/,/\1()/ ..
- See Also:
- Constant Field Values
ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND
public static final int ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND
- (?<=a|bc)
- See Also:
- Constant Field Values
ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP
public static final int ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP
- see doc/RE
- See Also:
- Oniguruma Regular Expressions,
鬼車 正規表現,
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
- a{n}?=(?:a{n})?
- 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
- [..\w..] etc..
- 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
- [0-9-a]=[0-9\-a]
- 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
- (?:a*)+
- See Also:
- Constant Field Values
ONIG_META_CHAR_ESCAPE
public static final int ONIG_META_CHAR_ESCAPE
- See Also:
setMetaChar(int, int)
,
Constant Field Values
ONIG_META_CHAR_ANYCHAR
public static final int ONIG_META_CHAR_ANYCHAR
- See Also:
setMetaChar(int, int)
,
Constant Field Values
ONIG_META_CHAR_ANYTIME
public static final int ONIG_META_CHAR_ANYTIME
- See Also:
setMetaChar(int, int)
,
Constant Field Values
ONIG_META_CHAR_ZERO_OR_ONE_TIME
public static final int ONIG_META_CHAR_ZERO_OR_ONE_TIME
- See Also:
setMetaChar(int, int)
,
Constant Field Values
ONIG_META_CHAR_ONE_OR_MORE_TIME
public static final int ONIG_META_CHAR_ONE_OR_MORE_TIME
- See Also:
setMetaChar(int, int)
,
Constant Field Values
ONIG_META_CHAR_ANYCHAR_ANYTIME
public static final int ONIG_META_CHAR_ANYCHAR_ANYTIME
- See Also:
setMetaChar(int, int)
,
Constant Field Values
ONIG_INEFFECTIVE_META_CHAR
public static final int ONIG_INEFFECTIVE_META_CHAR
- See Also:
setMetaChar(int, int)
,
Constant Field Values
handle
protected volatile long handle
- object handle.
OnigSyntaxType
public OnigSyntaxType()
- Allocates a OnigSyntaxType object.
NOTE: All fields have been initialized by 0.
- See Also:
clone()
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
addOperator
public void addOperator(int op)
- invoke onig_set_syntax_op(onig_get_syntax_op() | op) function.
NOTE: Ignored if the built-in type.
- Parameters:
op
- The parameter value
addOperator2
public void addOperator2(int op2)
- invoke onig_set_syntax_op2(onig_get_syntax_op2() | op2) function.
NOTE: Ignored if the built-in type.
- Parameters:
op2
- The parameter value
addBehavior
public void addBehavior(int behavior)
- invoke onig_set_syntax_behavior(onig_get_syntax_behavior() | behavior) function.
NOTE: Ignored if the built-in type.
- Parameters:
behavior
- The parameter value
addOptions
public void addOptions(int options)
- invoke onig_set_syntax_options(onig_get_syntax_options() | options) function.
NOTE: Ignored if the built-in type.
- Parameters:
options
- The parameter value
addOptions
public void addOptions(OnigOptionType... options)
- invoke onig_set_syntax_options(onig_get_syntax_options() | options) function.
NOTE: Ignored if the built-in type.
- Parameters:
options
- The parameter value
addOptions
public void addOptions(java.util.Collection<OnigOptionType> options)
- invoke onig_set_syntax_options(onig_get_syntax_options() | options) function.
NOTE: Ignored if the built-in type.
- Parameters:
options
- The parameter value
removeOperator
public void removeOperator(int op)
- invoke onig_set_syntax_op(onig_get_syntax_op() & ~op) function.
NOTE: Ignored if the built-in type.
- Parameters:
op
- The parameter value
removeOperator2
public void removeOperator2(int op2)
- invoke onig_set_syntax_op2(onig_get_syntax_op2() & ~op2) function.
NOTE: Ignored if the built-in type.
- Parameters:
op2
- The parameter value
removeBehavior
public void removeBehavior(int behavior)
- invoke onig_set_syntax_behavior(onig_get_syntax_behavior() & ~behavior) function.
NOTE: Ignored if the built-in type.
- Parameters:
behavior
- The parameter value
removeOptions
public void removeOptions(int options)
- invoke onig_set_syntax_options(onig_get_syntax_options() & ~options) function.
NOTE: Ignored if the built-in type.
- Parameters:
options
- The parameter value
removeOptions
public void removeOptions(OnigOptionType... options)
- invoke onig_set_syntax_options(onig_get_syntax_options() & ~options) function.
NOTE: Ignored if the built-in type.
- Parameters:
options
- The parameter value
removeOptions
public void removeOptions(java.util.Collection<OnigOptionType> options)
- invoke onig_set_syntax_options(onig_get_syntax_options() & ~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()