harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r650817 - in /harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser: InterimClassGenericDecl.java InterimClassType.java InterimParameterizedType.java InterimTypeParameter.java
Date Wed, 23 Apr 2008 10:26:03 GMT
Author: varlax
Date: Wed Apr 23 03:25:56 2008
New Revision: 650817

URL: http://svn.apache.org/viewvc?rev=650817&view=rev
Log:
Added toString methods to improve parser logs

Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassGenericDecl.java
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassType.java
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimParameterizedType.java
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimTypeParameter.java

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassGenericDecl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassGenericDecl.java?rev=650817&r1=650816&r2=650817&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassGenericDecl.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassGenericDecl.java
Wed Apr 23 03:25:56 2008
@@ -17,6 +17,8 @@
 
 package org.apache.harmony.lang.reflect.parser;
 
+import java.util.Arrays;
+
 /**
  * @author Serguei S. Zapreyev
  * @version $Revision: 1.1.2.1 $
@@ -25,4 +27,11 @@
     public InterimType superClass;
     public InterimType superInterfaces[];
     public InterimTypeParameter typeParameters[];
+    
+    public String toString() { 
+        return "InterimClassGenericDecl: super=" + superClass
+        + " intfs=" + (superInterfaces == null ? "[]" : Arrays.asList(superInterfaces).toString())
+        + " params=" + (typeParameters == null ? "[]" : Arrays.asList(typeParameters).toString());
+    }
+
 }

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassType.java?rev=650817&r1=650816&r2=650817&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassType.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimClassType.java
Wed Apr 23 03:25:56 2008
@@ -23,4 +23,8 @@
  */
 public final class InterimClassType implements InterimType {
     public String classTypeName;
+    
+    public String toString() { 
+        return "InterimClassType: " + classTypeName;
+    }
 }

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimParameterizedType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimParameterizedType.java?rev=650817&r1=650816&r2=650817&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimParameterizedType.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimParameterizedType.java
Wed Apr 23 03:25:56 2008
@@ -17,6 +17,8 @@
 
 package org.apache.harmony.lang.reflect.parser;
 
+import java.util.Arrays;
+
 /**
  * @author Serguei S. Zapreyev
  * @version $Revision: 1.1.2.1 $
@@ -27,4 +29,12 @@
     public InterimType parameters[]; 
     public InterimClassType rawType;
     public String signature;
+    
+    public String toString() { 
+        return "InterimParameterizedType: sig=" + signature
+        + " owner=" + ownerType 
+        + " raw=" + rawType
+        + " params=" +(parameters == null ? "[]" : Arrays.asList(parameters).toString());
+    }
+
 }

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimTypeParameter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimTypeParameter.java?rev=650817&r1=650816&r2=650817&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimTypeParameter.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/parser/InterimTypeParameter.java
Wed Apr 23 03:25:56 2008
@@ -17,6 +17,8 @@
 
 package org.apache.harmony.lang.reflect.parser;
 
+import java.util.Arrays;
+
 /**
  * @author Serguei S. Zapreyev
  * @version $Revision: 1.1.2.1 $
@@ -25,4 +27,10 @@
     public InterimType classBound;
     public InterimType interfaceBounds[];
     public String typeParameterName;
+    
+    public String toString() { 
+        return "InterimTypeParameter: " + typeParameterName
+        +" bounds=" + classBound + ", " 
+        + (interfaceBounds == null ? "[]" : Arrays.asList(interfaceBounds).toString());
+    }
 }



Mime
View raw message