| Package | Description |
|---|---|
| org.jboss.forge.parser.java |
| Modifier and Type | Method and Description |
|---|---|
Method<O> |
MethodHolder.addMethod()
Add an uninitialized
Method declaration to this O instance. |
Method<O> |
MethodHolder.addMethod(String method)
|
Method<O> |
Method.addThrows(Class<? extends Exception> type)
Add a thrown
Exception to this method's signature. |
Method<O> |
Method.addThrows(String type)
Add a thrown
Exception to this method's signature. |
Method<O> |
MethodHolder.getMethod(String name)
Return the
Method with the given name and zero parameters; otherwise return null. |
Method<O> |
MethodHolder.getMethod(String name,
Class<?>... paramTypes)
Return the
Method with the given name and signature types; otherwise return null. |
Method<O> |
MethodHolder.getMethod(String name,
String... paramTypes)
Return the
Method with the given name and signature types; otherwise return null. |
Method<O> |
Method.removeThrows(Class<? extends Exception> type)
Remove a thrown
Exception to this method's signature. |
Method<O> |
Method.removeThrows(String type)
Remove a thrown
Exception to this method's signature. |
Method<O> |
Method.setBody(String body)
Set the inner body of this
Method |
Method<O> |
Method.setConstructor(boolean constructor)
Toggle this method as a constructor.
|
Method<O> |
Method.setParameters(String string)
Set this
Method's parameters. |
Method<O> |
Method.setReturnType(Class<?> type)
Set this
Method to return the given type. |
Method<O> |
Method.setReturnType(JavaSource<?> type)
Set this
Method to return the given JavaSource type. |
Method<O> |
Method.setReturnType(String type)
Set this
Method to return the given type. |
Method<O> |
Method.setReturnTypeVoid()
Set this
Method to return 'void' |
| Modifier and Type | Method and Description |
|---|---|
List<Method<O>> |
MethodHolder.getMethods()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MethodHolder.hasMethod(Method<O> name)
Return true if this
O has a method with the given name and zero parameters; otherwise return false. |
boolean |
MethodHolder.hasMethodSignature(Method<?> method)
Return true if this
O has a method with signature matching the given method's signature. |
O |
MethodHolder.removeMethod(Method<O> method)
Remove the given
Method declaration from this O instance, if it exists; otherwise, do nothing. |
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.