public interface IMethodWriter extends IAnnotationWriter
| Modifier and Type | Method and Description |
|---|---|
IMethodWriter |
exceptions(Class<?>... exceptions)
Define the exceptions that you want in your method throw.
|
IMethodWriter |
modifiers(ModifierEnum... modifiers)
Define the modifiers that you want in your method.
|
IMethodWriter |
name(String name)
Define the name of your method.
|
IFieldWriter |
parameter(String name,
Class<?> type)
Define the parameters that you want in your method.
|
IMethodWriter |
returnType(Class<?> clazz)
Define the class type returned of your method.
|
IMethodWriter |
returnTypeAsVoid()
Define the class type name of your method as void.
|
IMethodWriter |
value(Object value)
Define the default value that you want in your method.
|
IMethodWriter |
visibility(VisibilityEnum visibility)
Define the visibility for your method.
|
annotation, annotation, annotationIMethodWriter name(String name)
name - of the methodIMethodWriter returnType(Class<?> clazz)
clazz - of the returned type of the methodIMethodWriter returnTypeAsVoid()
IMethodWriter visibility(VisibilityEnum visibility)
Ex: PUBLIC, PRIVATE or PROTECTED
visibility - of the methodIMethodWriter modifiers(ModifierEnum... modifiers)
Ex: FINAL, ABSTRACT...
modifiers - to the methodIMethodWriter exceptions(Class<?>... exceptions)
exceptions - of the methodIMethodWriter value(Object value)
ONLY USED FOR ANNOTATION !!!!
value - to be default (annotations only)IFieldWriter parameter(String name, Class<?> type)
name - of the parametertype - of the parameterCopyright © 2018 Esfinge Framework. All rights reserved.