public interface MethodHolder<O extends JavaSource<O>> extends MemberHolder<O,Member>
| Modifier and Type | Method and Description |
|---|---|
Method<O> |
addMethod()
Add an uninitialized
Method declaration to this O instance. |
Method<O> |
addMethod(String method)
|
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<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. |
O |
removeMethod(Method<O> method)
Remove the given
Method declaration from this O instance, if it exists; otherwise, do nothing. |
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 © 2014 JBoss by Red Hat. All Rights Reserved.