Clover Coverage Report - guice
Coverage timestamp: Wed Jan 7 2009 19:09:55 CST
../../../../img/srcFileCovDistChart0.png 84% of files have more coverage
10   75   10   1
0   34   1   10
10     1  
1    
 
  DefaultElementVisitor       Line # 31 10 10 20 0% 0.0
 
No Tests
 
1    /**
2    * Copyright (C) 2008 Google Inc.
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   
17    package com.google.inject.spi;
18   
19    import com.google.inject.Binding;
20   
21    /**
22    * No-op visitor for subclassing. All interface methods simply delegate to
23    * {@link #visitElement(Element)}, returning its result.
24    *
25    * @param <V> any type to be returned by the visit method. Use {@link Void} with
26    * {@code return null} if no return type is needed.
27    *
28    * @author sberlin@gmail.com (Sam Berlin)
29    * @since 2.0
30    */
 
31    public abstract class DefaultElementVisitor<V> implements ElementVisitor<V> {
32   
33    /**
34    * Visit {@code element} and return a result.
35    */
 
36  0 toggle protected V visitElement(Element element) {
37  0 return null;
38    }
39   
 
40  0 toggle public V visitMessage(Message message) {
41  0 return visitElement(message);
42    }
43   
 
44  0 toggle public <T> V visitBinding(Binding<T> binding) {
45  0 return visitElement(binding);
46    }
47   
 
48  0 toggle public V visitInterceptorBinding(InterceptorBinding interceptorBinding) {
49  0 return visitElement(interceptorBinding);
50    }
51   
 
52  0 toggle public V visitScopeBinding(ScopeBinding scopeBinding) {
53  0 return visitElement(scopeBinding);
54    }
55   
 
56  0 toggle public V visitTypeConverterBinding(TypeConverterBinding typeConverterBinding) {
57  0 return visitElement(typeConverterBinding);
58    }
59   
 
60  0 toggle public <T> V visitProviderLookup(ProviderLookup<T> providerLookup) {
61  0 return visitElement(providerLookup);
62    }
63   
 
64  0 toggle public V visitInjectionRequest(InjectionRequest injectionRequest) {
65  0 return visitElement(injectionRequest);
66    }
67   
 
68  0 toggle public V visitStaticInjectionRequest(StaticInjectionRequest staticInjectionRequest) {
69  0 return visitElement(staticInjectionRequest);
70    }
71   
 
72  0 toggle public V visitPrivateElements(PrivateElements privateElements) {
73  0 return visitElement(privateElements);
74    }
75    }