com.sun.msv.grammar.MixedExp Maven / Gradle / Ivy
/*
* @(#)$Id: MixedExp.java,v 1.9 2003/12/12 21:36:38 kohsuke 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.grammar;
/**
* <mixed> of RELAX.
*
* For TREX, this operator is not an essential one. You can use
*
*
*
* ...
*
*
*
* However, by introducing "mixed" as a primitive,
* RELAX module can be expressed without using interleave.
*
* Also, mixed makes validation faster.
*
* @author Kohsuke KAWAGUCHI
*/
public final class MixedExp extends UnaryExp {
MixedExp(Expression exp) {
super(exp);
}
public Object visit(ExpressionVisitor visitor) {
return visitor.onMixed(this);
}
public Expression visit(ExpressionVisitorExpression visitor) {
return visitor.onMixed(this);
}
public boolean visit(ExpressionVisitorBoolean visitor) {
return visitor.onMixed(this);
}
public void visit(ExpressionVisitorVoid visitor) {
visitor.onMixed(this);
}
protected boolean calcEpsilonReducibility() {
return exp.isEpsilonReducible();
}
// serialization support
private static final long serialVersionUID = 1;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy