KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > compiler > processor > SilentDiagnostics


1 /*
2  * Copyright 2004 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  * $Header:$
17  */

18 package org.apache.beehive.netui.compiler.processor;
19
20 import org.apache.beehive.netui.compiler.Diagnostics;
21 import org.apache.beehive.netui.compiler.typesystem.declaration.Declaration;
22 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
23 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationValue;
24
25 public class SilentDiagnostics extends Diagnostics
26 {
27     public SilentDiagnostics()
28     {
29         super( null );
30     }
31
32     public void addErrorArrayArgs( Declaration decl, String JavaDoc messageKey, Object JavaDoc[] args )
33     {
34         setHasErrors( true );
35     }
36
37     public void addErrorArrayArgs( AnnotationInstance ann, String JavaDoc messageKey, Object JavaDoc[] args )
38     {
39         setHasErrors( true );
40     }
41
42     public void addErrorArrayArgs( AnnotationValue value, String JavaDoc messageKey, Object JavaDoc[] args )
43     {
44         setHasErrors( true );
45     }
46
47     public void addWarningArrayArgs( Declaration decl, String JavaDoc messageKey, Object JavaDoc[] args )
48     {
49     }
50
51     public void addWarningArrayArgs( AnnotationInstance ann, String JavaDoc messageKey, Object JavaDoc[] args )
52     {
53     }
54
55     public void addWarningArrayArgs( AnnotationValue value, String JavaDoc messageKey, Object JavaDoc[] args )
56     {
57     }
58
59     protected String JavaDoc getResourceString( String JavaDoc key, Object JavaDoc[] args )
60     {
61         assert false; // this should never get called
62
return null;
63     }
64 }
65
66
67
68
Popular Tags