/[classpath]/classpath/gnu/java/lang/reflect/TypeSignature.java
ViewVC logotype

Diff of /classpath/gnu/java/lang/reflect/TypeSignature.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mark, Tue Jan 22 22:26:57 2002 UTC revision 1.9 by cbj, Thu Mar 21 05:40:11 2002 UTC
# Line 178  public class TypeSignature Line 178  public class TypeSignature
178       "(" + type-encodings of parameter types + ")"       "(" + type-encodings of parameter types + ")"
179       + type-encoding of return type       + type-encoding of return type
180    */    */
181      /**
182        If we implement this method in native, it would no doubt help performance.
183       */
184    public static String getEncodingOfMethod( Method m )    public static String getEncodingOfMethod( Method m )
185    {    {
186      String returnEncoding = getEncodingOfClass( m.getReturnType() );      String returnEncoding = getEncodingOfClass( m.getReturnType() );
# Line 205  public class TypeSignature Line 208  public class TypeSignature
208            
209      buf.append( ')' );      buf.append( ')' );
210      buf.append( returnEncoding );      buf.append( returnEncoding );
       
211      return buf.toString();      return buf.toString();
212    }    }
213    
# Line 216  public class TypeSignature Line 218  public class TypeSignature
218    
219       "(" + type-encodings of parameter types + ")V"       "(" + type-encodings of parameter types + ")V"
220    */    */
221      /**
222        If we implement this method in native, it would no doubt help performance.
223       */
224    public static String getEncodingOfConstructor( Constructor c )    public static String getEncodingOfConstructor( Constructor c )
225    {    {
226      Class[] paramTypes = c.getParameterTypes();      Class[] paramTypes = c.getParameterTypes();

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26