//----------------------------------------------------------------------------// // // // A b s t r a c t S c o r e V i s i t o r // // // //----------------------------------------------------------------------------// // <editor-fold defaultstate="collapsed" desc="hdr"> // // Copyright © Hervé Bitteur and others 2000-2013. All rights reserved. // // This software is released under the GNU General Public License. // // Goto http://kenai.com/projects/audiveris to report bugs or suggestions. // //----------------------------------------------------------------------------// // </editor-fold> package omr.score.visitor; import omr.score.Score; import omr.score.entity.Arpeggiate; import omr.score.entity.Articulation; import omr.score.entity.Barline; import omr.score.entity.Beam; import omr.score.entity.Chord; import omr.score.entity.ChordSymbol; import omr.score.entity.Clef; import omr.score.entity.Coda; import omr.score.entity.DirectionStatement; import omr.score.entity.Dynamics; import omr.score.entity.Fermata; import omr.score.entity.KeySignature; import omr.score.entity.Measure; import omr.score.entity.MeasureElement; import omr.score.entity.MeasureNode; import omr.score.entity.Note; import omr.score.entity.Ornament; import omr.score.entity.Page; import omr.score.entity.PartNode; import omr.score.entity.Pedal; import omr.score.entity.ScoreNode; import omr.score.entity.ScoreSystem; import omr.score.entity.Segno; import omr.score.entity.Slur; import omr.score.entity.Staff; import omr.score.entity.SystemPart; import omr.score.entity.Text; import omr.score.entity.TimeSignature; import omr.score.entity.Tuplet; import omr.score.entity.VisitableNode; import omr.score.entity.Wedge; /** * Class {@code AbstractScoreVisitor} provides a default * implementation of the ScoreVisitor interface, where by default all * visit() methods are void and return true (to allow automatic visit * of the children of each node). * * @author Hervé Bitteur */ public class AbstractScoreVisitor implements ScoreVisitor { //~ Constructors ----------------------------------------------------------- //----------------------// // AbstractScoreVisitor // //----------------------// /** * Creates a new AbstractScoreVisitor object. */ public AbstractScoreVisitor () { } //~ Methods ---------------------------------------------------------------- //--------------------// // visit Articulation // //--------------------// @Override public boolean visit (Articulation articulation) { return true; } //------------------// // visit Arpeggiate // //------------------// @Override public boolean visit (Arpeggiate arpeggiate) { return true; } //---------------// // visit Barline // //---------------// @Override public boolean visit (Barline barline) { return true; } //------------// // visit Beam // //------------// @Override public boolean visit (Beam beam) { return true; } //-------------// // visit Chord // //-------------// @Override public boolean visit (Chord chord) { return true; } //------------// // visit Clef // //------------// @Override public boolean visit (Clef clef) { return true; } //------------// // visit Coda // //------------// @Override public boolean visit (Coda coda) { return true; } //--------------------------// // visit DirectionStatement // //--------------------------// @Override public boolean visit (DirectionStatement words) { return true; } //-------------------// // visit ChordSymbol // //-------------------// @Override public boolean visit (ChordSymbol symbol) { return true; } //----------------// // visit Dynamics // //----------------// @Override public boolean visit (Dynamics dynamics) { return true; } //---------------// // visit Fermata // //---------------// @Override public boolean visit (Fermata fermata) { return true; } //--------------------// // visit KeySignature // //--------------------// @Override public boolean visit (KeySignature keySignature) { return true; } //---------------// // visit Measure // //---------------// @Override public boolean visit (Measure measure) { return true; } //----------------------// // visit MeasureElement // //----------------------// @Override public boolean visit (MeasureElement measureElement) { return true; } //-------------------// // visit MeasureNode // //-------------------// @Override public boolean visit (MeasureNode measureNode) { return true; } //------------// // visit Note // //------------// @Override public boolean visit (Note note) { return true; } //----------------// // visit Ornament // //----------------// @Override public boolean visit (Ornament ornament) { return true; } //------------// // visit Page // //------------// @Override public boolean visit (Page page) { return true; } //----------------// // visit PartNode // //----------------// @Override public boolean visit (PartNode partNode) { return true; } //-------------// // visit Pedal // //-------------// @Override public boolean visit (Pedal pedal) { return true; } //-----------------// // visit ScoreNode // //-----------------// @Override public boolean visit (ScoreNode scoreNode) { return true; } //-------------// // visit Score // //-------------// @Override public boolean visit (Score score) { return true; } //-------------// // visit Segno // //-------------// @Override public boolean visit (Segno segno) { return true; } //------------// // visit Slur // //------------// @Override public boolean visit (Slur slur) { return true; } //-------------// // visit Staff // //-------------// @Override public boolean visit (Staff staff) { return true; } //--------------// // visit System // //--------------// @Override public boolean visit (ScoreSystem system) { return true; } //------------------// // visit SystemPart // //------------------// @Override public boolean visit (SystemPart systemPart) { return true; } //------------// // visit Text // //------------// @Override public boolean visit (Text text) { return true; } //---------------------// // visit TimeSignature // //---------------------// @Override public boolean visit (TimeSignature timeSignature) { return true; } //--------------// // visit Tuplet // //--------------// @Override public boolean visit (Tuplet tuplet) { return true; } //---------------------// // visit VisitableNode // //---------------------// @Override public boolean visit (VisitableNode node) { return true; } //-------------// // visit Wedge // //-------------// @Override public boolean visit (Wedge wedge) { return true; } }