Top Description Fields Constructors Methods
com.sun.msv.datatype.regexp

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.
Version
RangeToken.java,v 1.4 2002/08/09 15:18:17 neilg Exp

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[]
pack-priv boolean
Inherited from com.sun.msv.datatype.regexp.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
intersectRanges(Token
Ignore whether it is NRANGE or not.
token
)

Overrides com.sun.msv.datatype.regexp.Token.intersectRanges.

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.msv.datatype.regexp.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
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.msv.datatype.regexp.Token.addRange.

compactRangesback to summary
protected void compactRanges()

Overrides com.sun.msv.datatype.regexp.Token.compactRanges.

this.ranges is sorted.

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

Hides com.sun.msv.datatype.regexp.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.msv.datatype.regexp.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.msv.datatype.regexp.Token.match.

mergeRangesback to summary
protected void mergeRanges(Token token)

Overrides com.sun.msv.datatype.regexp.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.msv.datatype.regexp.Token.sortRanges.

subtractRangesback to summary
protected void subtractRanges(Token token)

Overrides com.sun.msv.datatype.regexp.Token.subtractRanges.

toStringback to summary
public String toString(int options)

Overrides com.sun.msv.datatype.regexp.Token.toString.