/[classpath]/classpath/vm/reference/java/lang/reflect/Constructor.java
ViewVC logotype

Diff of /classpath/vm/reference/java/lang/reflect/Constructor.java

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

revision 1.11.2.3 by gnu_andrew, Mon Apr 4 23:34:35 2005 UTC revision 1.11.2.4 by gnu_andrew, Fri May 27 00:01:46 2005 UTC
# Line 79  public final class Constructor<T> Line 79  public final class Constructor<T>
79  {  {
80    private Class<T> clazz;    private Class<T> clazz;
81    private int slot;    private int slot;
   private Class[] parameterTypes;  
   private Class[] exceptionTypes;  
82        
83    /**    /**
84     * This class is uninstantiable except from native code.     * This class is uninstantiable except from native code.
# Line 130  public final class Constructor<T> Line 128  public final class Constructor<T>
128     *     *
129     * @return a list of the types of the constructor's parameters     * @return a list of the types of the constructor's parameters
130     */     */
131    public Class<?>[] getParameterTypes()    public native Class<?>[] getParameterTypes();
   {  
     if (parameterTypes == null)  
       return new Class[0];  
     return parameterTypes;  
   }  
132    
133    /**    /**
134     * Get the exception types this constructor says it throws, in no particular     * Get the exception types this constructor says it throws, in no particular
# Line 144  public final class Constructor<T> Line 137  public final class Constructor<T>
137     *     *
138     * @return a list of the types in the constructor's throws clause     * @return a list of the types in the constructor's throws clause
139     */     */
140    public Class<?>[] getExceptionTypes()    public native Class<?>[] getExceptionTypes();
   {  
     if (exceptionTypes == null)  
       return new Class[0];  
     return exceptionTypes;  
   }  
141    
142    /**    /**
143     * Compare two objects to see if they are semantically equivalent.     * Compare two objects to see if they are semantically equivalent.

Legend:
Removed from v.1.11.2.3  
changed lines
  Added in v.1.11.2.4

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