177 */
178 @Override
179 public String getName() {
180 return name;
181 }
182
183 /**
184 * {@inheritDoc}
185 */
186 @Override
187 public int getModifiers() {
188 return modifiers;
189 }
190
191 /**
192 * {@inheritDoc}
193 * @throws GenericSignatureFormatError {@inheritDoc}
194 * @since 1.5
195 */
196 @Override
197 @SuppressWarnings({ "rawtypes", "unchecked" })
198 public TypeVariable<Method>[] getTypeParameters() {
199 if (getGenericSignature() != null)
200 return (TypeVariable<Method>[])getGenericInfo().getTypeParameters();
201 else
202 return (TypeVariable<Method>[])new TypeVariable[0];
203 }
204
205 /**
206 * Returns a {@code Class} object that represents the formal return type
207 * of the method represented by this {@code Method} object.
208 *
209 * @return the return type for the method this object represents
210 */
211 public Class<?> getReturnType() {
212 return returnType;
213 }
214
215 /**
216 * Returns a {@code Type} object that represents the formal return
217 * type of the method represented by this {@code Method} object.
|
177 */
178 @Override
179 public String getName() {
180 return name;
181 }
182
183 /**
184 * {@inheritDoc}
185 */
186 @Override
187 public int getModifiers() {
188 return modifiers;
189 }
190
191 /**
192 * {@inheritDoc}
193 * @throws GenericSignatureFormatError {@inheritDoc}
194 * @since 1.5
195 */
196 @Override
197 @SuppressWarnings({"rawtypes", "unchecked"})
198 public TypeVariable<Method>[] getTypeParameters() {
199 if (getGenericSignature() != null)
200 return (TypeVariable<Method>[])getGenericInfo().getTypeParameters();
201 else
202 return (TypeVariable<Method>[])new TypeVariable[0];
203 }
204
205 /**
206 * Returns a {@code Class} object that represents the formal return type
207 * of the method represented by this {@code Method} object.
208 *
209 * @return the return type for the method this object represents
210 */
211 public Class<?> getReturnType() {
212 return returnType;
213 }
214
215 /**
216 * Returns a {@code Type} object that represents the formal return
217 * type of the method represented by this {@code Method} object.
|