public interface MethodHolder<O extends JavaType<O>> extends MemberHolder<O>
JavaType that may declare methods.| Modifier and Type | Method and Description |
|---|---|
Method<O,?> |
getMethod(String name)
Return the
Method with the given name and zero parameters; otherwise return null. |
Method<O,?> |
getMethod(String name,
Class<?>... paramTypes)
Return the
Method with the given name and signature types; otherwise return null. |
Method<O,?> |
getMethod(String name,
String... paramTypes)
Return the
Method with the given name and signature types; otherwise return null. |
List<? extends Method<O,?>> |
getMethods()
|
boolean |
hasMethod(Method<O,?> name)
Return true if this
O has a method with the given name and zero parameters; otherwise return false. |
boolean |
hasMethodSignature(Method<?,?> method)
Return true if this
O has a method with signature matching the given method's signature. |
boolean |
hasMethodSignature(String name)
Return true if this
O has a method with the given name and zero parameters; otherwise return false. |
boolean |
hasMethodSignature(String name,
Class<?>... paramTypes)
Return true if this
O has a method with the given name and signature types; otherwise return false. |
boolean |
hasMethodSignature(String name,
String... paramTypes)
Return true if this
O has a method with the given name and signature types; otherwise return false. |
getMembersboolean hasMethod(Method<O,?> name)
O has a method with the given name and zero parameters; otherwise return false.boolean hasMethodSignature(Method<?,?> method)
O has a method with signature matching the given method's signature.boolean hasMethodSignature(String name)
O has a method with the given name and zero parameters; otherwise return false.boolean hasMethodSignature(String name, String... paramTypes)
O has a method with the given name and signature types; otherwise return false.boolean hasMethodSignature(String name, Class<?>... paramTypes)
O has a method with the given name and signature types; otherwise return false.Method<O,?> getMethod(String name)
Method with the given name and zero parameters; otherwise return null.Method<O,?> getMethod(String name, String... paramTypes)
Method with the given name and signature types; otherwise return null.Method<O,?> getMethod(String name, Class<?>... paramTypes)
Method with the given name and signature types; otherwise return null.Copyright © 2019 JBoss by Red Hat. All rights reserved.