All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.msv.verifier.regexp.AnyElementToken Maven / Gradle / Ivy

There is a newer version: 2.2.5.1
Show newest version
/*
 * @(#)$Id: AnyElementToken.java,v 1.8 2003/06/09 20:37:46 kk122374 Exp $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.verifier.regexp;

import 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 */ public final class AnyElementToken extends ElementToken { /** * use this singleton instance instead of creating an object. */ public static final Token theInstance = new AnyElementToken(); private AnyElementToken(){ super(null); } public boolean match( ElementExp exp ) { return true; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy