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

public final Class AnyElementToken

extends ElementToken
Class Inheritance
Imports
com.sun.msv.grammar.ElementExp

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
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public static final Token
theInstance

use this singleton instance instead of creating an object.

Inherited from com.sun.msv.verifier.regexp.ElementToken:
acceptedPatterns

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
match(ElementExp exp)

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

returns true if the given ElementExp can consume this token
Inherited from com.sun.msv.verifier.regexp.ElementToken:
toString

Field Detail

theInstanceback to summary
public static final Token theInstance

use this singleton instance instead of creating an object.

Constructor Detail

AnyElementTokenback to summary
private AnyElementToken()

Method Detail

matchback to summary
public boolean match(ElementExp exp)

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

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

returns true if the given ElementExp can consume this token