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
-
public final class AnyElementToken extends ElementToken
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 followsEoCR(exp) := exp/e1 | exp/e2 | ... | exp/en {ei} = elements of concern exp/ei = residual(exp,ei) '|' represents choice
- Author:
- Kohsuke KAWAGUCHI
-
-
Field Summary
Fields Modifier and Type Field Description static Token
theInstance
use this singleton instance instead of creating an object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(ElementExp exp)
returns true if the given ElementExp can consume this token-
Methods inherited from class com.sun.msv.verifier.regexp.ElementToken
toString
-
-
-
-
Field Detail
-
theInstance
public static final Token theInstance
use this singleton instance instead of creating an object.
-
-
Method Detail
-
match
public boolean match(ElementExp exp)
Description copied from class:Token
returns true if the given ElementExp can consume this token- Overrides:
match
in classElementToken
-
-