|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonig4j.OnigSyntaxType
public final class OnigSyntaxType
Pattern syntax class.
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 |
---|
public static final OnigSyntaxType ONIG_SYNTAX_ASIS
public static final OnigSyntaxType ONIG_SYNTAX_POSIX_BASIC
public static final OnigSyntaxType ONIG_SYNTAX_POSIX_EXTENDED
public static final OnigSyntaxType ONIG_SYNTAX_EMACS
public static final OnigSyntaxType ONIG_SYNTAX_GREP
public static final OnigSyntaxType ONIG_SYNTAX_GNU_REGEX
public static final OnigSyntaxType ONIG_SYNTAX_JAVA
public static final OnigSyntaxType ONIG_SYNTAX_PERL
public static final OnigSyntaxType ONIG_SYNTAX_PERL_NG
public static final OnigSyntaxType ONIG_SYNTAX_RUBY
public static final OnigSyntaxType ONIG_SYNTAX_DEFAULT
public static final int ONIG_SYN_OP_VARIABLE_META_CHARACTERS
public static final int ONIG_SYN_OP_DOT_ANYCHAR
public static final int ONIG_SYN_OP_ASTERISK_ZERO_INF
public static final int ONIG_SYN_OP_ESC_ASTERISK_ZERO_INF
public static final int ONIG_SYN_OP_PLUS_ONE_INF
public static final int ONIG_SYN_OP_ESC_PLUS_ONE_INF
public static final int ONIG_SYN_OP_QMARK_ZERO_ONE
public static final int ONIG_SYN_OP_ESC_QMARK_ZERO_ONE
public static final int ONIG_SYN_OP_BRACE_INTERVAL
public static final int ONIG_SYN_OP_ESC_BRACE_INTERVAL
public static final int ONIG_SYN_OP_VBAR_ALT
public static final int ONIG_SYN_OP_ESC_VBAR_ALT
public static final int ONIG_SYN_OP_LPAREN_SUBEXP
public static final int ONIG_SYN_OP_ESC_LPAREN_SUBEXP
public static final int ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR
public static final int ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR
public static final int ONIG_SYN_OP_DECIMAL_BACKREF
public static final int ONIG_SYN_OP_BRACKET_CC
public static final int ONIG_SYN_OP_ESC_W_WORD
public static final int ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
public static final int ONIG_SYN_OP_ESC_B_WORD_BOUND
public static final int ONIG_SYN_OP_ESC_S_WHITE_SPACE
public static final int ONIG_SYN_OP_ESC_D_DIGIT
public static final int ONIG_SYN_OP_LINE_ANCHOR
public static final int ONIG_SYN_OP_POSIX_BRACKET
public static final int ONIG_SYN_OP_QMARK_NON_GREEDY
public static final int ONIG_SYN_OP_ESC_CONTROL_CHARS
public static final int ONIG_SYN_OP_ESC_C_CONTROL
public static final int ONIG_SYN_OP_ESC_OCTAL3
public static final int ONIG_SYN_OP_ESC_X_HEX2
public static final int ONIG_SYN_OP_ESC_X_BRACE_HEX8
public static final int ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE
public static final int ONIG_SYN_OP2_QMARK_GROUP_EFFECT
public static final int ONIG_SYN_OP2_OPTION_PERL
public static final int ONIG_SYN_OP2_OPTION_RUBY
public static final int ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT
public static final int ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL
public static final int ONIG_SYN_OP2_CCLASS_SET_OP
public static final int ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP
public static final int ONIG_SYN_OP2_ESC_K_NAMED_BACKREF
public static final int ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
public static final int ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY
public static final int ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL
public static final int ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META
public static final int ONIG_SYN_OP2_ESC_V_VTAB
public static final int ONIG_SYN_OP2_ESC_U_HEX4
public static final int ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR
public static final int ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
public static final int ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
public static final int ONIG_SYN_OP2_ESC_H_XDIGIT
public static final int ONIG_SYN_OP2_INEFFECTIVE_ESCAPE
public static final int ONIG_SYN_CONTEXT_INDEP_ANCHORS
public static final int ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS
public static final int ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS
public static final int ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP
public static final int ONIG_SYN_ALLOW_INVALID_INTERVAL
public static final int ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV
public static final int ONIG_SYN_STRICT_CHECK_BACKREF
public static final int ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND
public static final int ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP
public static final int ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME
public static final int ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY
public static final int ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC
public static final int ONIG_SYN_BACKSLASH_ESCAPE_IN_CC
public static final int ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC
public static final int ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC
public static final int ONIG_SYN_WARN_CC_OP_NOT_ESCAPED
public static final int ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT
public static final int ONIG_META_CHAR_ESCAPE
public static final int ONIG_META_CHAR_ANYCHAR
public static final int ONIG_META_CHAR_ANYTIME
public static final int ONIG_META_CHAR_ZERO_OR_ONE_TIME
public static final int ONIG_META_CHAR_ONE_OR_MORE_TIME
public static final int ONIG_META_CHAR_ANYCHAR_ANYTIME
public static final int ONIG_INEFFECTIVE_META_CHAR
protected volatile long handle
Constructor Detail |
---|
public OnigSyntaxType()
clone()
Method Detail |
---|
public OnigSyntaxType clone()
clone
in class java.lang.Object
protected void free()
public boolean isActiveCaputureHistory()
ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY
public int getOperator()
public int getOperator2()
public int getBehavior()
public int getOptions()
public void setOperator(int op)
op
- The parameter valuepublic void setOperator2(int op2)
op2
- The parameter valuepublic void setBehavior(int behavior)
behavior
- The parameter valuepublic void setOptions(int options)
options
- The parameter valuepublic void setOptions(OnigOptionType... options)
options
- The parameter valuepublic void setOptions(java.util.Collection<OnigOptionType> options)
options
- The parameter valuepublic void setMetaChar(int what, int codePoint)
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_CHARONIG_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
public static OnigSyntaxType getDefaultSyntax()
public static void setDefaultSyntax(OnigSyntaxType syntax)
syntax
- The OnigSyntaxType object (null is allowed)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 |