Home » Xerces-J-src.2.9.1 » org.apache.xerces » impl » xpath » regex » [javadoc | source]
org.apache.xerces.impl.xpath.regex
class: Token [javadoc | source]
java.lang.Object
   org.apache.xerces.impl.xpath.regex.Token

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ConcatToken, ParenToken, UnionToken, CharToken, ConditionToken, ClosureToken, StringToken, RangeToken, ModifierToken

This class represents a node in parse tree.
Nested Class Summary:
static class  Token.FixedStringContainer   
static class  Token.StringToken  This class represents a node in parse tree. 
static class  Token.ConcatToken  This class represents a node in parse tree. 
static class  Token.CharToken  This class represents a node in parse tree. 
static class  Token.ClosureToken  This class represents a node in parse tree. 
static class  Token.ParenToken  This class represents a node in parse tree. 
static class  Token.ConditionToken  (?(condition)yes-pattern|no-pattern) 
static class  Token.ModifierToken  (ims-ims: .... ) 
static class  Token.UnionToken  This class represents a node in parse tree. for UNION or CONCAT. 
Field Summary
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     
final  int type     
static  Token token_dot     
static  Token token_0to9     
static  Token token_wordchars     
static  Token token_not_0to9     
static  Token token_not_wordchars     
static  Token token_spaces     
static  Token token_not_spaces     
static  Token token_empty     
static  Token token_linebeginning     
static  Token token_linebeginning2     
static  Token token_lineend     
static  Token token_stringbeginning     
static  Token token_stringend     
static  Token token_stringend2     
static  Token token_wordedge     
static  Token token_not_wordedge     
static  Token token_wordbeginning     
static  Token token_wordend     
static final  int FC_CONTINUE     
static final  int FC_TERMINAL     
static final  int FC_ANY     
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 blockRanges     
static final  int[] nonBMPBlockRanges     
static  Hashtable nonxs     
static final  String viramaString     
Constructor:
 protected Token(int type) 
Method from org.apache.xerces.impl.xpath.regex.Token Summary:
addChild,   addRange,   analyzeFirstCharacter,   compactRanges,   complementRanges,   createBackReference,   createChar,   createClosure,   createConcat,   createConcat,   createCondition,   createEmpty,   createLook,   createModifierGroup,   createNGClosure,   createNRange,   createParen,   createRange,   createString,   createUnion,   findFixedString,   getChar,   getChild,   getCombiningCharacterSequence,   getGraphemePattern,   getMax,   getMaxLength,   getMin,   getMinLength,   getParenNumber,   getRange,   getRange,   getReferenceNumber,   getString,   intersectRanges,   isRegisterNonXS,   match,   mergeRanges,   registerNonXS,   setMax,   setMin,   size,   sortRanges,   subtractRanges,   toString,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.impl.xpath.regex.Token Detail:
  void addChild(Token tok) 
 protected  void addRange(int start,
    int end) 
 final int analyzeFirstCharacter(RangeToken result,
    int options) 
 protected  void compactRanges() 
 static Token complementRanges(Token tok) 
 static Token.StringToken createBackReference(int refno) 
 static Token.CharToken createChar(int ch) 
 static Token.ClosureToken createClosure(Token tok) 
 static Token.UnionToken createConcat() 
 static Token.ConcatToken createConcat(Token tok1,
    Token tok2) 
 static Token.ConditionToken createCondition(int refno,
    Token condition,
    Token yespat,
    Token nopat) 
 static Token createEmpty() 
 static Token.ParenToken createLook(int type,
    Token child) 
 static Token.ModifierToken createModifierGroup(Token child,
    int add,
    int mask) 
 static Token.ClosureToken createNGClosure(Token tok) 
 static RangeToken createNRange() 
 static Token.ParenToken createParen(Token child,
    int pnumber) 
 static RangeToken createRange() 
 static Token.StringToken createString(String str) 
 static Token.UnionToken createUnion() 
 final  void findFixedString(Token.FixedStringContainer container,
    int options) 
 int getChar() 
 Token getChild(int index) 
 static synchronized Token getCombiningCharacterSequence() 
 static synchronized Token getGraphemePattern() 
 int getMax() 
 final int getMaxLength() 
 int getMin() 
 final int getMinLength() 
    How many characters are needed?
 int getParenNumber() 
 protected static RangeToken getRange(String name,
    boolean positive) 
 protected static RangeToken getRange(String name,
    boolean positive,
    boolean xs) 
 int getReferenceNumber() 
 String getString() 
 protected  void intersectRanges(Token tok) 
 protected static boolean isRegisterNonXS(String name) 
 boolean match(int ch) 
 protected  void mergeRanges(Token tok) 
 protected static  void registerNonXS(String name) 
    This method is called by only getRange(). So this method need not MT-safe.
  void setMax(int max) 
  void setMin(int min) 
 int size() 
    A number of children.
 protected  void sortRanges() 
 protected  void subtractRanges(Token tok) 
 public String toString() 
 public String toString(int options)