graveyard/tools/org/apache/axis/tools/trace/Tracer.java
/**
	 * @param signature the signature of this method
	 * TODO: Can't tell the difference between static and non-static 
	 * methods so can't tell whether to pass this or not. If we pass
	 * this in a static method it won't compile. 
	 */
@param signature the signature of this method
TODO: Can't tell the difference between static and non-static
methods so can't tell whether to pass this or not. If we pass
this in a static method it won't compile.
@param signature the signature of this method TODO : Can ' t tell the difference between static and non - static methods so can ' t tell whether to pass this or not . If we pass this in a static method it won ' t compile .
void traceEntry(Signature signature) throws IOException {
		this.signature = signature;
		if (!signature.traceable())
			return;
		Parameter[] parms = signature.getParameters();
		int len = 0;
		if (null != parms) {
			if (parms[parms.length - 1].isDotDotDot())
				len = parms.length - 1;
			else
				len = parms.length;
		}
		String that = "NULL";
		if (headers.isInstanceMethod(signature))
			that = "this";
		String line =
			"\n"
				+ "\t"
				+ hashifdef
				+ "\t\tif ("
				+ namespace
				+ module
				+ "isTraceOn())\n"
				+ "\t\t\t"
				+ namespace
				+ module
				+ "traceEntry("
				+ getClassName()
				+ ", \""
				+ signature.getMethodName()
				+ "\", "
				+ that
				+ ", "
				+ len;
		for (int i = 0; null != parms && i < parms.length; i++)
			line += getTypeParms(parms[i]);
		line += ");\t" + SIGNATURE + "\n";
		line += "\t" + hashendif;
		writeTrace(line);
		flush();
	}
void traceEntry ( Signature signature ) throws IOException { this . signature = signature ; if ( ! signature . traceable ( ) ) return ; Parameter [ ] parms = signature . getParameters ( ) ; int len = 0 ; if ( null != parms ) { if ( parms [ parms . length - 1 ] . isDotDotDot ( ) ) len = parms . length - 1 ; else len = parms . length ; } String that = "NULL" ; if ( headers . isInstanceMethod ( signature ) ) that = "this" ; String line = "\n" + "\t" + hashifdef + "\t\tif (" + namespace + module + "isTraceOn())\n" + "\t\t\t" + namespace + module + "traceEntry(" + getClassName ( ) + ", \"" + signature . getMethodName ( ) + "\", " + that + ", " + len ; for ( int i = 0 ; null != parms && i < parms . length ; i ++ ) line += getTypeParms ( parms [ i ] ) ; line += ");\t" + SIGNATURE + "\n" ; line += "\t" + hashendif ; writeTrace ( line ) ; flush ( ) ; }
@param signature the signature of this method
 TODO: Can't tell the difference between static and non-static
 methods so can't tell whether to pass this or not.
@param signature the signature of this method TODO : Can ' t tell the difference between static and non - static methods so can ' t tell whether to pass this or not .