Clover coverage report - Maven Clover report
Coverage timestamp: Sun Jun 1 2008 20:05:13 EST
file stats: LOC: 38   Methods: 2
NCLOC: 13   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BaseVisitorContext.java - 100% 100% 100%
coverage
 1    /**
 2    * Copyright 2007 The Apache Software Foundation
 3    *
 4    * Licensed under the Apache License, Version 2.0 (the "License");
 5    * you may not use this file except in compliance with the License.
 6    * You may obtain a copy of the License at
 7    *
 8    * http://www.apache.org/licenses/LICENSE-2.0
 9    *
 10    * Unless required by applicable law or agreed to in writing, software
 11    * distributed under the License is distributed on an "AS IS" BASIS,
 12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13    * See the License for the specific language governing permissions and
 14    * limitations under the License.
 15    */
 16    package org.codehaus.wadi.aop.tracker.visitor;
 17   
 18    import java.util.IdentityHashMap;
 19   
 20    import org.codehaus.wadi.aop.tracker.InstanceTracker;
 21    import org.codehaus.wadi.aop.tracker.VisitorContext;
 22   
 23    /**
 24    *
 25    * @version $Revision: 1538 $
 26    */
 27    public class BaseVisitorContext implements VisitorContext {
 28    private final IdentityHashMap<InstanceTracker, Boolean> visited = new IdentityHashMap<InstanceTracker, Boolean>();
 29   
 30  24 public void registerAsVisited(InstanceTracker instanceTracker) {
 31  24 visited.put(instanceTracker, Boolean.TRUE);
 32    }
 33   
 34  26 public boolean isVisited(InstanceTracker instanceTracker) {
 35  26 return visited.containsKey(instanceTracker);
 36    }
 37   
 38    }