public interface Method<O extends JavaType<O>,T extends Method<O,T>> extends Abstractable<T>, Member<O>, GenericCapable<O>, Origin<O>
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Get the inner body of this
Method |
List<? extends Parameter<O>> |
getParameters()
Get a list of this
Method's parameters. |
Type<O> |
getReturnType()
|
List<String> |
getThrownExceptions()
Get a list of qualified (if possible)
Exception class names thrown by this method. |
boolean |
isConstructor()
Return true if this
Method is a constructor for the class in which it is defined. |
boolean |
isReturnTypeVoid()
Convenience method to learn whether the
Method has a primitive void return type. |
String |
toSignature()
Convert this
Method into a string representing its unique signature. |
isAbstractgetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicgetAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotationgetInternalgetTypeVariable, getTypeVariablesboolean isConstructor()
Method is a constructor for the class in which it is defined.boolean isReturnTypeVoid()
Method has a primitive void return type.String toSignature()
Method into a string representing its unique signature.Copyright © 2014 JBoss by Red Hat. All rights reserved.