[Swift-commit] r2527 - trunk/src/org/griphyn/vdl/engine

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Feb 11 19:32:50 CST 2009


Author: hategan
Date: 2009-02-11 19:32:49 -0600 (Wed, 11 Feb 2009)
New Revision: 2527

Modified:
   trunk/src/org/griphyn/vdl/engine/ProcedureSignature.java
Log:
added toString() and fixed get*Array() methods

Modified: trunk/src/org/griphyn/vdl/engine/ProcedureSignature.java
===================================================================
--- trunk/src/org/griphyn/vdl/engine/ProcedureSignature.java	2009-02-12 01:32:21 UTC (rev 2526)
+++ trunk/src/org/griphyn/vdl/engine/ProcedureSignature.java	2009-02-12 01:32:49 UTC (rev 2527)
@@ -59,12 +59,17 @@
 		return outputArgs.size();
 	}
 	
+	private static final FormalArgumentSignature[] FORMAL_ARGUMENT_SIGNATURE_ARRAY = 
+	    new FormalArgumentSignature[0];
+	
 	public FormalArgumentSignature[] getInputArray() {
-		return (FormalArgumentSignature[]) inputArgs.toArray();
+		return (FormalArgumentSignature[]) 
+		    inputArgs.toArray(FORMAL_ARGUMENT_SIGNATURE_ARRAY);
 	}
 	
 	public FormalArgumentSignature[] getOutputArray() {
-		return (FormalArgumentSignature[]) outputArgs.toArray();
+		return (FormalArgumentSignature[]) 
+		    outputArgs.toArray(FORMAL_ARGUMENT_SIGNATURE_ARRAY);
 	}
 	
 	public FormalArgumentSignature getInputArray(int i) {
@@ -201,4 +206,7 @@
 		return functionsMap;
 	}
 	
+	public String toString() {
+	    return outputArgs + " " + name + inputArgs;
+	}
 }




More information about the Swift-commit mailing list