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

Print this page




 165      */
 166     @Override
 167     public String getName() {
 168         return getDeclaringClass().getName();
 169     }
 170 
 171     /**
 172      * {@inheritDoc}
 173      */
 174     @Override
 175     public int getModifiers() {
 176         return modifiers;
 177     }
 178 
 179     /**
 180      * {@inheritDoc}
 181      * @throws GenericSignatureFormatError {@inheritDoc}
 182      * @since 1.5
 183      */
 184     @Override
 185     @SuppressWarnings({ "rawtypes", "unchecked" })
 186     public TypeVariable<Constructor<T>>[] getTypeParameters() {
 187       if (getSignature() != null) {
 188         return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters();
 189       } else
 190           return (TypeVariable<Constructor<T>>[])new TypeVariable[0];
 191     }
 192 
 193 
 194     /**
 195      * {@inheritDoc}
 196      */
 197     @Override
 198     public Class<?>[] getParameterTypes() {
 199         return parameterTypes.clone();
 200     }
 201 
 202     /**
 203      * {@inheritDoc}
 204      * @throws GenericSignatureFormatError {@inheritDoc}
 205      * @throws TypeNotPresentException {@inheritDoc}




 165      */
 166     @Override
 167     public String getName() {
 168         return getDeclaringClass().getName();
 169     }
 170 
 171     /**
 172      * {@inheritDoc}
 173      */
 174     @Override
 175     public int getModifiers() {
 176         return modifiers;
 177     }
 178 
 179     /**
 180      * {@inheritDoc}
 181      * @throws GenericSignatureFormatError {@inheritDoc}
 182      * @since 1.5
 183      */
 184     @Override
 185     @SuppressWarnings({"rawtypes", "unchecked"})
 186     public TypeVariable<Constructor<T>>[] getTypeParameters() {
 187       if (getSignature() != null) {
 188         return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters();
 189       } else
 190           return (TypeVariable<Constructor<T>>[])new TypeVariable[0];
 191     }
 192 
 193 
 194     /**
 195      * {@inheritDoc}
 196      */
 197     @Override
 198     public Class<?>[] getParameterTypes() {
 199         return parameterTypes.clone();
 200     }
 201 
 202     /**
 203      * {@inheritDoc}
 204      * @throws GenericSignatureFormatError {@inheritDoc}
 205      * @throws TypeNotPresentException {@inheritDoc}