com.sun.msv.reader.InterleaveState Maven / Gradle / Ivy
/*
* @(#)$Id: InterleaveState.java,v 1.3 2003/06/09 20:37:23 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.reader;
import com.sun.msv.grammar.Expression;
/**
* state that creates an InterleaveExp.
*
* @author Kohsuke KAWAGUCHI
*/
public class InterleaveState extends ExpressionWithChildState {
protected Expression castExpression( Expression exp, Expression child ) {
// first one.
if( exp==null ) return child;
return reader.pool.createInterleave(exp,child);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy