1 18 package org.apache.beehive.netui.compiler.xdoclet.typesystem.impl.env; 19 20 import org.apache.beehive.netui.compiler.typesystem.env.Messager; 21 import org.apache.beehive.netui.compiler.typesystem.util.SourcePosition; 22 import org.apache.beehive.netui.xdoclet.NetuiDocletTask; 23 import xjavadoc.SourceClass; 24 25 public class MessagerImpl 26 implements Messager 27 { 28 private String _sourceFilePath; 29 30 protected MessagerImpl( SourceClass sourceClass ) 31 { 32 _sourceFilePath = sourceClass.getFile().getPath(); 33 } 34 35 public void printError( String s ) 36 { 37 NetuiDocletTask.addError( s, _sourceFilePath, -1 ); 38 } 39 40 public void printError( SourcePosition sourcePosition, String s ) 41 { 42 assert sourcePosition != null; 43 NetuiDocletTask.addError( s, sourcePosition ); 44 } 45 46 public void printWarning( String s ) 47 { 48 NetuiDocletTask.addWarning( s, _sourceFilePath, -1 ); 49 } 50 51 public void printWarning( SourcePosition sourcePosition, String s ) 52 { 53 assert sourcePosition != null; 54 NetuiDocletTask.addWarning( s, sourcePosition ); 55 } 56 57 public void printNotice( String s ) 58 { 59 assert false : "NYI"; 60 throw new UnsupportedOperationException ( "NYI" ); 61 } 62 63 public void printNotice( SourcePosition sourcePosition, String s ) 64 { 65 assert false : "NYI"; 66 throw new UnsupportedOperationException ( "NYI" ); 67 } 68 } 69 | Popular Tags |