public interface Method<O extends JavaType<O>,T extends Method<O,T>> extends Abstractable, Member<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 |
isDefault() |
boolean |
isNative() |
boolean |
isReturnTypeVoid()
Convenience method to learn whether the
Method has a primitive void return type. |
boolean |
isSynchronized() |
String |
toSignature()
Convert this
Method into a string representing its unique signature. |
isAbstractgetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicgetAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotationgetInternalisFinalisStaticboolean isSynchronized()
true if this method is synchronizedboolean isNative()
true if this method is nativeboolean isConstructor()
true if this 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.List<String> getThrownExceptions()
Exception class names thrown by this method.boolean isDefault()
true if this method is declared as default (JDK 8)Copyright © 2019 JBoss by Red Hat. All rights reserved.