1 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 messageKey, Object [] args ) 33 { 34 setHasErrors( true ); 35 } 36 37 public void addErrorArrayArgs( AnnotationInstance ann, String messageKey, Object [] args ) 38 { 39 setHasErrors( true ); 40 } 41 42 public void addErrorArrayArgs( AnnotationValue value, String messageKey, Object [] args ) 43 { 44 setHasErrors( true ); 45 } 46 47 public void addWarningArrayArgs( Declaration decl, String messageKey, Object [] args ) 48 { 49 } 50 51 public void addWarningArrayArgs( AnnotationInstance ann, String messageKey, Object [] args ) 52 { 53 } 54 55 public void addWarningArrayArgs( AnnotationValue value, String messageKey, Object [] args ) 56 { 57 } 58 59 protected String getResourceString( String key, Object [] args ) 60 { 61 assert false; return null; 63 } 64 } 65 66 67 68 | Popular Tags |