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

pack-priv Class StringRecoveryToken

extends StringToken
Class Inheritance
Imports
java.util.Set, com.sun.msv.grammar.DataExp, .ListExp, .ValueExp, com.sun.msv.util.DatatypeRef

special StringToken that acts as a wild card. This object is used for error recovery. It collects all TypedStringExps that ate the token.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
pack-priv final Set<Object>
failedExps

TypedStringExps and ListExps that rejected this token are collected into this set.

Inherited from com.sun.msv.verifier.regexp.StringToken:
contextignorableliteralrefTyperesCalcsaturated

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected StringToken
public boolean
match(DataExp exp)

Overrides com.sun.msv.verifier.regexp.StringToken.match.

DataExp can consume this token if its datatype can accept this string
public boolean
public boolean
match(ListExp exp)

Overrides com.sun.msv.verifier.regexp.StringToken.match.

ListExp can consume this token if its pattern accepts this string
Inherited from com.sun.msv.verifier.regexp.StringToken:
isIgnorablematchAnyString

Field Detail

failedExpsback to summary
pack-priv final Set<Object> failedExps

TypedStringExps and ListExps that rejected this token are collected into this set.

Constructor Detail

StringRecoveryTokenback to summary
pack-priv StringRecoveryToken(StringToken base)
StringRecoveryTokenback to summary
pack-priv StringRecoveryToken(StringToken base, Set<Object> failedExps)

Method Detail

createChildStringTokenback to summary
protected StringToken createChildStringToken(String literal, DatatypeRef dtRef)

Overrides com.sun.msv.verifier.regexp.StringToken.createChildStringToken.

matchback to summary
public boolean match(DataExp exp)

Overrides com.sun.msv.verifier.regexp.StringToken.match.

Doc from com.sun.msv.verifier.regexp.StringToken.match.

DataExp can consume this token if its datatype can accept this string

matchback to summary
public boolean match(ValueExp exp)

Overrides com.sun.msv.verifier.regexp.StringToken.match.

matchback to summary
public boolean match(ListExp exp)

Overrides com.sun.msv.verifier.regexp.StringToken.match.

Doc from com.sun.msv.verifier.regexp.StringToken.match.

ListExp can consume this token if its pattern accepts this string