| Package | Description |
|---|---|
| org.jboss.forge.roaster.model.source |
| Modifier and Type | Method and Description |
|---|---|
MethodSource<O> |
MethodHolderSource.addMethod()
Add an uninitialized
MethodSource declaration to this O instance. |
MethodSource<O> |
MethodHolderSource.addMethod(String method)
Add a new
MethodSource declaration to this O instance, using the given String as the
method declaration. |
MethodSource<O> |
MethodSource.addThrows(Class<? extends Exception> type)
Add a thrown
Exception to this method's signature. |
MethodSource<O> |
MethodSource.addThrows(String type)
Add a thrown
Exception to this method's signature. |
MethodSource<O> |
PropertySource.createMutator()
Create the mutator method.
|
MethodSource<O> |
PropertySource.getAccessor()
Override.
|
MethodSource<O> |
MethodHolderSource.getMethod(String name)
Return the
MethodSource with the given name and zero parameters; otherwise return null. |
MethodSource<O> |
MethodHolderSource.getMethod(String name,
Class<?>... paramTypes)
Return the
MethodSource with the given name and signature types; otherwise return null. |
MethodSource<O> |
MethodHolderSource.getMethod(String name,
String... paramTypes)
Return the
MethodSource with the given name and signature types; otherwise return null. |
MethodSource<O> |
PropertySource.getMutator()
Override.
|
MethodSource<O> |
MethodSource.removeThrows(Class<? extends Exception> type)
Remove a thrown
Exception to this method's signature. |
MethodSource<O> |
MethodSource.removeThrows(String type)
Remove a thrown
Exception to this method's signature. |
MethodSource<O> |
MethodSource.setBody(String body)
Set the inner body of this
Method |
MethodSource<O> |
MethodSource.setConstructor(boolean constructor)
Toggle this method as a constructor.
|
MethodSource<O> |
MethodSource.setParameters(String string)
Set this
Method's parameters. |
MethodSource<O> |
MethodSource.setReturnType(Class<?> type)
Set this
Method to return the given type. |
MethodSource<O> |
MethodSource.setReturnType(JavaType<?> type)
|
MethodSource<O> |
MethodSource.setReturnType(String type)
Set this
Method to return the given type. |
MethodSource<O> |
MethodSource.setReturnTypeVoid()
Set this
Method to return 'void' |
| Modifier and Type | Method and Description |
|---|---|
List<MethodSource<O>> |
MethodHolderSource.getMethods()
Get a
List of all MethodSources declared by this O instance, if any; otherwise, return an
empty List |
Copyright © 2014 JBoss by Red Hat. All rights reserved.