< prev index next >

src/java.base/share/classes/java/lang/reflect/Constructor.java

Print this page
rev 49262 : 8199862: Examine ProxyBuilder::referencedTypes startup cost
Reviewed-by: TBD


 236     /**
 237      * {@inheritDoc}
 238      * @throws GenericSignatureFormatError {@inheritDoc}
 239      * @since 1.5
 240      */
 241     @Override
 242     @SuppressWarnings({"rawtypes", "unchecked"})
 243     public TypeVariable<Constructor<T>>[] getTypeParameters() {
 244       if (getSignature() != null) {
 245         return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters();
 246       } else
 247           return (TypeVariable<Constructor<T>>[])new TypeVariable[0];
 248     }
 249 
 250 
 251     @Override
 252     Class<?>[] getSharedParameterTypes() {
 253         return parameterTypes;
 254     }
 255 





 256     /**
 257      * {@inheritDoc}
 258      */
 259     @Override
 260     public Class<?>[] getParameterTypes() {
 261         return parameterTypes.clone();
 262     }
 263 
 264     /**
 265      * {@inheritDoc}
 266      * @since 1.8
 267      */
 268     public int getParameterCount() { return parameterTypes.length; }
 269 
 270     /**
 271      * {@inheritDoc}
 272      * @throws GenericSignatureFormatError {@inheritDoc}
 273      * @throws TypeNotPresentException {@inheritDoc}
 274      * @throws MalformedParameterizedTypeException {@inheritDoc}
 275      * @since 1.5




 236     /**
 237      * {@inheritDoc}
 238      * @throws GenericSignatureFormatError {@inheritDoc}
 239      * @since 1.5
 240      */
 241     @Override
 242     @SuppressWarnings({"rawtypes", "unchecked"})
 243     public TypeVariable<Constructor<T>>[] getTypeParameters() {
 244       if (getSignature() != null) {
 245         return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters();
 246       } else
 247           return (TypeVariable<Constructor<T>>[])new TypeVariable[0];
 248     }
 249 
 250 
 251     @Override
 252     Class<?>[] getSharedParameterTypes() {
 253         return parameterTypes;
 254     }
 255 
 256     @Override
 257     Class<?>[] getSharedExceptionTypes() {
 258         return exceptionTypes;
 259     }
 260 
 261     /**
 262      * {@inheritDoc}
 263      */
 264     @Override
 265     public Class<?>[] getParameterTypes() {
 266         return parameterTypes.clone();
 267     }
 268 
 269     /**
 270      * {@inheritDoc}
 271      * @since 1.8
 272      */
 273     public int getParameterCount() { return parameterTypes.length; }
 274 
 275     /**
 276      * {@inheritDoc}
 277      * @throws GenericSignatureFormatError {@inheritDoc}
 278      * @throws TypeNotPresentException {@inheritDoc}
 279      * @throws MalformedParameterizedTypeException {@inheritDoc}
 280      * @since 1.5


< prev index next >