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. |
String |
getQualifiedReturnType()
Get the fully qualified return type of this
Method or return null if the return type is void. |
String |
getReturnType()
Get the return type of this
Method or return null if the return type is void. |
Type<O> |
getReturnTypeInspector()
|
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()
Return true if this
Method has a return type of 'void' |
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.String getReturnType()
Method or return null if the return type is void.String getQualifiedReturnType()
Method or return null if the return type is void.boolean isReturnTypeVoid()
Method has a return type of 'void'String toSignature()
Method into a string representing its unique signature.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.