/[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.8 by gnu_andrew, Wed Sep 28 17:50:21 2005 UTC revision 1.11.2.9 by jfrijters, Sat Oct 1 10:02:47 2005 UTC
# Line 252  public final class Constructor<T> Line 252  public final class Constructor<T>
252    /**    /**
253     * Returns an array of <code>TypeVariable</code> objects that represents     * Returns an array of <code>TypeVariable</code> objects that represents
254     * the type variables declared by this constructor, in declaration order.     * the type variables declared by this constructor, in declaration order.
255     * An array of size zero is returned if this class has no type     * An array of size zero is returned if this constructor has no type
256     * variables.     * variables.
257     *     *
258     * @return the type variables associated with this class.     * @return the type variables associated with this constructor.
259     * @throws GenericSignatureFormatError if the generic signature does     * @throws GenericSignatureFormatError if the generic signature does
260     *         not conform to the format specified in the Virtual Machine     *         not conform to the format specified in the Virtual Machine
261     *         specification, version 3.     *         specification, version 3.
# Line 268  public final class Constructor<T> Line 268  public final class Constructor<T>
268      return p.getTypeParameters();      return p.getTypeParameters();
269    }    }
270    
271      /**
272       * Return the String in the Signature attribute for this constructor. If there
273       * is no Signature attribute, return null.
274       */
275    private native String getSignature();    private native String getSignature();
276    
277      /**
278       * Returns an array of <code>Type</code> objects that represents
279       * the exception types declared by this constructor, in declaration order.
280       * An array of size zero is returned if this constructor declares no
281       * exceptions.
282       *
283       * @return the exception types declared by this constructor.
284       * @throws GenericSignatureFormatError if the generic signature does
285       *         not conform to the format specified in the Virtual Machine
286       *         specification, version 3.
287       * @since 1.5
288       */
289      public Type[] getGenericExceptionTypes()
290      {
291        String sig = getSignature();
292        if (sig == null)
293          return getExceptionTypes();
294        MethodSignatureParser p = new MethodSignatureParser(this, sig);
295        return p.getGenericExceptionTypes();
296      }
297    
298      /**
299       * Returns an array of <code>Type</code> objects that represents
300       * the parameter list for this constructor, in declaration order.
301       * An array of size zero is returned if this constructor takes no
302       * parameters.
303       *
304       * @return a list of the types of the constructor's parameters
305       * @throws GenericSignatureFormatError if the generic signature does
306       *         not conform to the format specified in the Virtual Machine
307       *         specification, version 3.
308       * @since 1.5
309       */
310      public Type[] getGenericParameterTypes()
311      {
312        String sig = getSignature();
313        if (sig == null)
314          return getParameterTypes();
315        MethodSignatureParser p = new MethodSignatureParser(this, sig);
316        return p.getGenericParameterTypes();
317      }
318  }  }

Legend:
Removed from v.1.11.2.8  
changed lines
  Added in v.1.11.2.9

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