1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved. 2 * 3 * This program and the accompanying materials are made available under 4 * the terms of the Common Public License v1.0 which accompanies this distribution, 5 * and is available at http://www.eclipse.org/legal/cpl-v10.html 6 * 7 * $Id: AbstractItemVisitor.java,v 1.1.1.1 2004/05/09 16:57:36 vlad_r Exp $ 8 */ 9 package com.vladium.emma.report; 10 11 // ---------------------------------------------------------------------------- 12 /** 13 * @author Vlad Roubtsov, (C) 2003 14 */ 15 public 16 abstract class AbstractItemVisitor implements IItemVisitor 17 { 18 // public: ................................................................ 19 visit(final AllItem item, final Object ctx)20 public Object visit (final AllItem item, final Object ctx) 21 { 22 return ctx; 23 } 24 visit(final PackageItem item, final Object ctx)25 public Object visit (final PackageItem item, final Object ctx) 26 { 27 return ctx; 28 } 29 visit(final SrcFileItem item, final Object ctx)30 public Object visit (final SrcFileItem item, final Object ctx) 31 { 32 return ctx; 33 } 34 visit(final ClassItem item, final Object ctx)35 public Object visit (final ClassItem item, final Object ctx) 36 { 37 return ctx; 38 } 39 visit(final MethodItem item, final Object ctx)40 public Object visit (final MethodItem item, final Object ctx) 41 { 42 return ctx; 43 } 44 45 // protected: ............................................................. 46 47 // package: ............................................................... 48 49 // private: ............................................................... 50 51 } // end of class 52 // ----------------------------------------------------------------------------