Package com.sun.msv.verifier.regexp
Class AnyElementToken
java.lang.Object
com.sun.msv.verifier.regexp.Token
com.sun.msv.verifier.regexp.ElementToken
com.sun.msv.verifier.regexp.AnyElementToken
special Token that matchs any element.
this token is used only for error recovery, to compute
"residual of elements of concern"(EoCR).
EoCR is defined as follows
EoCR(exp) := exp/e1 | exp/e2 | ... | exp/en {ei} = elements of concern exp/ei = residual(exp,ei) '|' represents choice
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Token
use this singleton instance instead of creating an object.Fields inherited from class com.sun.msv.verifier.regexp.ElementToken
acceptedPatterns
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(ElementExp exp) returns true if the given ElementExp can consume this tokenMethods inherited from class com.sun.msv.verifier.regexp.ElementToken
toString
Methods inherited from class com.sun.msv.verifier.regexp.Token
isIgnorable, match, match, match, match, matchAnyString
-
Field Details
-
theInstance
use this singleton instance instead of creating an object.
-
-
Constructor Details
-
AnyElementToken
private AnyElementToken()
-
-
Method Details
-
match
Description copied from class:Token
returns true if the given ElementExp can consume this token- Overrides:
match
in classElementToken
-