public interface MethodSource<O extends JavaSource<O>> extends Method<O,MethodSource<O>>, AbstractableSource<MethodSource<O>>, MemberSource<O,MethodSource<O>>, GenericCapableSource<O,MethodSource<O>>
| Modifier and Type | Method and Description |
|---|---|
MethodSource<O> |
addThrows(Class<? extends Exception> type)
Add a thrown
Exception to this method's signature. |
MethodSource<O> |
addThrows(String type)
Add a thrown
Exception to this method's signature. |
List<ParameterSource<O>> |
getParameters()
Get a list of this
Method's parameters. |
MethodSource<O> |
removeThrows(Class<? extends Exception> type)
Remove a thrown
Exception to this method's signature. |
MethodSource<O> |
removeThrows(String type)
Remove a thrown
Exception to this method's signature. |
MethodSource<O> |
setBody(String body)
Set the inner body of this
Method |
MethodSource<O> |
setConstructor(boolean constructor)
Toggle this method as a constructor.
|
MethodSource<O> |
setParameters(String string)
Set this
Method's parameters. |
MethodSource<O> |
setReturnType(Class<?> type)
Set this
Method to return the given type. |
MethodSource<O> |
setReturnType(JavaType<?> type)
|
MethodSource<O> |
setReturnType(String type)
Set this
Method to return the given type. |
MethodSource<O> |
setReturnTypeVoid()
Set this
Method to return 'void' |
getBody, getReturnType, getThrownExceptions, isConstructor, isReturnTypeVoid, toSignaturesetAbstractisAbstractsetFinal, setStaticaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAnnotationhasAnnotation, hasAnnotationgetInternalsetPackagePrivate, setPrivate, setProtected, setPublic, setVisibilitygetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicsetNameaddTypeVariable, getTypeVariable, getTypeVariables, removeTypeVariable, removeTypeVariableMethodSource<O> setReturnType(Class<?> type)
Method to return the given type.MethodSource<O> setBody(String body)
MethodMethodSource<O> setConstructor(boolean constructor)
MethodSource<O> setReturnType(String type)
Method to return the given type.MethodSource<O> setReturnType(JavaType<?> type)
MethodSource<O> setReturnTypeVoid()
Method to return 'void'MethodSource<O> setParameters(String string)
Method's parameters.MethodSource<O> addThrows(String type)
Exception to this method's signature.MethodSource<O> addThrows(Class<? extends Exception> type)
Exception to this method's signature.MethodSource<O> removeThrows(String type)
Exception to this method's signature.MethodSource<O> removeThrows(Class<? extends Exception> type)
Exception to this method's signature.List<ParameterSource<O>> getParameters()
Method's parameters.getParameters in interface Method<O extends JavaSource<O>,MethodSource<O extends JavaSource<O>>>Copyright © 2014 JBoss by Red Hat. All rights reserved.