Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xpath.regex

pack-priv final Class RangeToken

extends Token
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

This class represents a character class such as [a-z] or a period.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv RangeToken
pack-priv int[]
private static final int
pack-priv int
pack-priv int[]
private static final long
pack-priv boolean
Inherited from com.sun.org.apache.xerces.internal.impl.xpath.regex.Token:
ANCHORBACKREFERENCEblockRangesCHARCHAR_FINAL_QUOTECHAR_INIT_QUOTECHAR_LETTERCHAR_MARKCHAR_NUMBERCHAR_OTHERCHAR_PUNCTUATIONCHAR_SEPARATORCHAR_SYMBOLCLOSURECONCATCONDITIONCOUNTTOKENSDOTEMPTYFC_ANYFC_CONTINUEFC_TERMINALINDEPENDENTLOOKAHEADLOOKBEHINDMODIFIERGROUPNEGATIVELOOKAHEADNEGATIVELOOKBEHINDnonBMPBlockRangesNONGREEDYCLOSUREnonxsNRANGEPARENRANGESTRINGtoken_0to9token_dottoken_emptytoken_linebeginningtoken_linebeginning2token_lineendtoken_not_0to9token_not_spacestoken_not_wordcharstoken_not_wordedgetoken_spacestoken_stringbeginningtoken_stringendtoken_stringend2token_wordbeginningtoken_wordcharstoken_wordedgetoken_wordendtokenstypeUNIONUTF16_MAXviramaString

Constructor Summary

AccessConstructor and Description
pack-priv
RangeToken(int type)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
pack-priv static Token
private void
pack-priv void
private static String
pack-priv synchronized RangeToken
protected void
private final boolean
private final boolean
pack-priv boolean
protected void
private final void
private final void
setSorted(boolean sort)

protected void
protected void
public String
Inherited from com.sun.org.apache.xerces.internal.impl.xpath.regex.Token:
addChildanalyzeFirstCharactercreateBackReferencecreateCharcreateClosurecreateConcatcreateConcatcreateConditioncreateEmptycreateLookcreateModifierGroupcreateNGClosurecreateNRangecreateParencreateRangecreateStringcreateUnionfindFixedStringgetChargetChildgetCombiningCharacterSequencegetGraphemePatterngetMaxgetMaxLengthgetMingetMinLengthgetParenNumbergetRangegetRangegetReferenceNumbergetStringisRegisterNonXSregisterNonXSsetMaxsetMinsizetoString

Field Detail

compactedback to summary
pack-priv boolean compacted
icaseCacheback to summary
pack-priv RangeToken icaseCache
mapback to summary
pack-priv int[] map
MAPSIZEback to summary
private static final int MAPSIZE
nonMapIndexback to summary
pack-priv int nonMapIndex
rangesback to summary
pack-priv int[] ranges
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.serialVersionUID.

sortedback to summary
pack-priv boolean sorted

Constructor Detail

RangeTokenback to summary
pack-priv RangeToken(int type)

Method Detail

addRangeback to summary
protected void addRange(int start, int end)

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.addRange.

compactRangesback to summary
protected void compactRanges()

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.compactRanges.

this.ranges is sorted.

complementRangesback to summary
pack-priv static Token complementRanges(Token token)

Hides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.complementRanges.

for RANGE: Creates complement. for NRANGE: Creates the same meaning RANGE.

createMapback to summary
private void createMap()
dumpRangesback to summary
pack-priv void dumpRanges()
escapeCharInCharClassback to summary
private static String escapeCharInCharClass(int ch)
getCaseInsensitiveTokenback to summary
pack-priv synchronized RangeToken getCaseInsensitiveToken()
intersectRangesback to summary
protected void intersectRanges(Token token)

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.intersectRanges.

Parameters
token:Token

Ignore whether it is NRANGE or not.

isCompactedback to summary
private final boolean isCompacted()
isSortedback to summary
private final boolean isSorted()
matchback to summary
pack-priv boolean match(int ch)

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.match.

mergeRangesback to summary
protected void mergeRanges(Token token)

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.mergeRanges.

setCompactedback to summary
private final void setCompacted()
setSortedback to summary
private final void setSorted(boolean sort)
sortRangesback to summary
protected void sortRanges()

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.sortRanges.

subtractRangesback to summary
protected void subtractRanges(Token token)

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.subtractRanges.

toStringback to summary
public String toString(int options)

Overrides com.sun.org.apache.xerces.internal.impl.xpath.regex.Token.toString.