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

msv.msv.src.com.sun.msv.grammar.ExpressionVisitor Maven / Gradle / Ivy

The newest version!
/*
 * @(#)$Id: ExpressionVisitor.java 1566 2003-06-09 20:37:49Z kk122374 $
 *
 * 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;

/**
 * Visitor interface for Expression and its derived types.
 * 
 * 

* You may want to use ExpressionVisitorXXXX class if you want to * return boolean, void, or {@link Expression}. * *

* It is the callee's responsibility to traverse child expression. * Expression and its derived classes do not provide any traversal. * See {@link ExpressionCloner} for example. * *

* onRef method is called for all subclass of ReferenceExp. So you can safely use this * interface to visit AGMs from RELAX grammar. * * @author Kohsuke KAWAGUCHI */ public interface ExpressionVisitor { Object onAttribute( AttributeExp exp ); Object onChoice( ChoiceExp exp ); Object onElement( ElementExp exp ); Object onOneOrMore( OneOrMoreExp exp ); Object onMixed( MixedExp exp ); Object onList( ListExp exp ); Object onRef( ReferenceExp exp ); Object onOther( OtherExp exp ); Object onEpsilon(); Object onNullSet(); Object onAnyString(); Object onSequence( SequenceExp exp ); Object onData( DataExp exp ); Object onValue( ValueExp exp ); Object onConcur( ConcurExp p ); Object onInterleave( InterleaveExp p ); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy