|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.utils.regex.Token
This class represents a node in parse tree.
Inner Class Summary | |
(package private) static class |
Token.CharToken
This class represents a node in parse tree. |
(package private) static class |
Token.ClosureToken
This class represents a node in parse tree. |
(package private) static class |
Token.ConcatToken
This class represents a node in parse tree. |
(package private) static class |
Token.ConditionToken
(?(condition)yes-pattern|no-pattern) |
(package private) static class |
Token.FixedStringContainer
|
(package private) static class |
Token.ModifierToken
(ims-ims: .... |
(package private) static class |
Token.ParenToken
This class represents a node in parse tree. |
(package private) static class |
Token.StringToken
This class represents a node in parse tree. |
(package private) static class |
Token.UnionToken
This class represents a node in parse tree. |
Field Summary | |
(package private) static int |
ANCHOR
|
(package private) static int |
BACKREFERENCE
|
(package private) static String[] |
blockNames
|
(package private) static String |
blockRanges
|
protected static Hashtable |
categories
|
protected static Hashtable |
categories2
|
(package private) static String[] |
categoryNames
|
(package private) static int |
CHAR
|
(package private) static int |
CHAR_FINAL_QUOTE
|
(package private) static int |
CHAR_INIT_QUOTE
|
(package private) static int |
CHAR_LETTER
|
(package private) static int |
CHAR_MARK
|
(package private) static int |
CHAR_NUMBER
|
(package private) static int |
CHAR_OTHER
|
(package private) static int |
CHAR_PUNCTUATION
|
(package private) static int |
CHAR_SEPARATOR
|
(package private) static int |
CHAR_SYMBOL
|
(package private) static int |
CLOSURE
|
(package private) static int |
CONCAT
|
(package private) static int |
CONDITION
|
(package private) static boolean |
COUNTTOKENS
|
(package private) static int |
DOT
|
(package private) static int |
EMPTY
|
(package private) static int |
FC_ANY
|
(package private) static int |
FC_CONTINUE
|
(package private) static int |
FC_TERMINAL
|
(package private) static int |
INDEPENDENT
|
(package private) static int |
LOOKAHEAD
|
(package private) static int |
LOOKBEHIND
|
(package private) static int |
MODIFIERGROUP
|
(package private) static int |
NEGATIVELOOKAHEAD
|
(package private) static int |
NEGATIVELOOKBEHIND
|
(package private) static int |
NONGREEDYCLOSURE
|
(package private) static int |
NRANGE
|
(package private) static int |
PAREN
|
(package private) static int |
RANGE
|
(package private) static int |
STRING
|
protected static Token |
token_0to9
|
protected static Token |
token_dot
|
protected static Token |
token_empty
|
protected static Token |
token_linebeginning
|
protected static Token |
token_linebeginning2
|
protected static Token |
token_lineend
|
protected static Token |
token_not_0to9
|
protected static Token |
token_not_spaces
|
protected static Token |
token_not_wordchars
|
protected static Token |
token_not_wordedge
|
protected static Token |
token_spaces
|
protected static Token |
token_stringbeginning
|
protected static Token |
token_stringend
|
protected static Token |
token_stringend2
|
protected static Token |
token_wordbeginning
|
protected static Token |
token_wordchars
|
protected static Token |
token_wordedge
|
protected static Token |
token_wordend
|
(package private) static int |
tokens
|
(package private) int |
type
|
(package private) static int |
UNION
|
(package private) static int |
UTF16_MAX
|
(package private) static String |
viramaString
|
Constructor Summary | |
protected |
Token(int type)
|
Method Summary | |
(package private) static void |
|
(package private) void |
addChild(Token tok)
|
protected void |
addRange(int start,
int end)
|
(package private) int |
analyzeFirstCharacter(RangeToken result,
int options)
|
protected void |
compactRanges()
|
(package private) static Token |
complementRanges(Token tok)
|
(package private) static Token.StringToken |
createBackReference(int refno)
|
(package private) static Token.CharToken |
createChar(int ch)
|
(package private) static Token.ClosureToken |
createClosure(Token tok)
|
(package private) static Token.UnionToken |
createConcat()
|
(package private) static Token.ConcatToken |
createConcat(Token tok1,
Token tok2)
|
(package private) static Token.ConditionToken |
createCondition(int refno,
Token condition,
Token yespat,
Token nopat)
|
(package private) static Token |
createEmpty()
|
(package private) static Token.ParenToken |
createLook(int type,
Token child)
|
(package private) static Token.ModifierToken |
createModifierGroup(Token child,
int add,
int mask)
|
(package private) static Token.ClosureToken |
createNGClosure(Token tok)
|
(package private) static RangeToken |
createNRange()
|
(package private) static Token.ParenToken |
createParen(Token child,
int pnumber)
|
(package private) static RangeToken |
createRange()
|
(package private) static Token.StringToken |
createString(String str)
|
(package private) static Token.UnionToken |
createUnion()
|
(package private) void |
findFixedString(Token.FixedStringContainer container,
int options)
|
(package private) int |
getChar()
|
(package private) Token |
getChild(int index)
|
protected static Token |
getCombiningCharacterSequence()
|
protected static Token |
getGraphemePattern()
|
(package private) int |
getMax()
|
(package private) int |
getMaxLength()
|
(package private) int |
getMin()
|
(package private) int |
getMinLength()
How many characters are needed? |
(package private) int |
getParenNumber()
|
protected static RangeToken |
getRange(String name,
boolean positive)
|
(package private) int |
getReferenceNumber()
|
(package private) String |
getString()
|
protected void |
intersectRanges(Token tok)
|
(package private) boolean |
match(int ch)
|
protected void |
mergeRanges(Token tok)
|
(package private) void |
setMax(int max)
|
(package private) void |
setMin(int min)
|
(package private) int |
size()
A number of children. |
protected void |
sortRanges()
|
protected void |
subtractRanges(Token tok)
|
String |
toString()
|
String |
toString(int options)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final boolean COUNTTOKENS
static int tokens
static final int CHAR
static final int DOT
static final int CONCAT
static final int UNION
static final int CLOSURE
static final int RANGE
static final int NRANGE
static final int PAREN
static final int EMPTY
static final int ANCHOR
static final int NONGREEDYCLOSURE
static final int STRING
static final int BACKREFERENCE
static final int LOOKAHEAD
static final int NEGATIVELOOKAHEAD
static final int LOOKBEHIND
static final int NEGATIVELOOKBEHIND
static final int INDEPENDENT
static final int MODIFIERGROUP
static final int CONDITION
static final int UTF16_MAX
int type
protected static Token token_dot
protected static Token token_0to9
protected static Token token_wordchars
protected static Token token_not_0to9
protected static Token token_not_wordchars
protected static Token token_spaces
protected static Token token_not_spaces
protected static Token token_empty
protected static Token token_linebeginning
protected static Token token_linebeginning2
protected static Token token_lineend
protected static Token token_stringbeginning
protected static Token token_stringend
protected static Token token_stringend2
protected static Token token_wordedge
protected static Token token_not_wordedge
protected static Token token_wordbeginning
protected static Token token_wordend
static final int FC_CONTINUE
static final int FC_TERMINAL
static final int FC_ANY
protected static Hashtable categories
protected static Hashtable categories2
static final String[] categoryNames
static final int CHAR_INIT_QUOTE
static final int CHAR_FINAL_QUOTE
static final int CHAR_LETTER
static final int CHAR_MARK
static final int CHAR_NUMBER
static final int CHAR_SEPARATOR
static final int CHAR_OTHER
static final int CHAR_PUNCTUATION
static final int CHAR_SYMBOL
static final String[] blockNames
static final String blockRanges
static final String viramaString
Constructor Detail |
protected Token(int type)
Method Detail |
static void()
static Token.ParenToken createLook(int type, Token child)
static Token.ParenToken createParen(Token child, int pnumber)
static Token.ClosureToken createClosure(Token tok)
static Token.ClosureToken createNGClosure(Token tok)
static Token.ConcatToken createConcat(Token tok1, Token tok2)
static Token.UnionToken createConcat()
static Token.UnionToken createUnion()
static Token createEmpty()
static RangeToken createRange()
static RangeToken createNRange()
static Token.CharToken createChar(int ch)
static Token.StringToken createBackReference(int refno)
static Token.StringToken createString(String str)
static Token.ModifierToken createModifierGroup(Token child, int add, int mask)
static Token.ConditionToken createCondition(int refno, Token condition, Token yespat, Token nopat)
int size()
Token getChild(int index)
void addChild(Token tok)
protected void addRange(int start, int end)
protected void sortRanges()
protected void compactRanges()
protected void mergeRanges(Token tok)
protected void subtractRanges(Token tok)
protected void intersectRanges(Token tok)
static Token complementRanges(Token tok)
void setMin(int min)
void setMax(int max)
int getMin()
int getMax()
int getReferenceNumber()
String getString()
int getParenNumber()
int getChar()
public String toString()
toString
in class Object
public String toString(int options)
final int getMinLength()
final int getMaxLength()
final int analyzeFirstCharacter(RangeToken result, int options)
final void findFixedString(Token.FixedStringContainer container, int options)
boolean match(int ch)
protected static RangeToken getRange(String name, boolean positive)
protected static Token getGraphemePattern()
protected static Token getCombiningCharacterSequence()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |