| Package | Description |
|---|---|
| net.sf.esfinge.classmock | |
| net.sf.esfinge.classmock.api | |
| net.sf.esfinge.classmock.imp |
| Modifier and Type | Method and Description |
|---|---|
IMethodWriter |
ClassMock.method(IMethodReader method) |
IMethodWriter |
ClassMock.method(String name) |
IMethodWriter |
ClassMock.methodByParse(String methodSignature) |
| Modifier and Type | Method and Description |
|---|---|
IMethodWriter |
IMethodWriter.exceptions(Class<?>... exceptions)
Define the exceptions that you want in your method throw.
|
IMethodWriter |
IClassWriter.method(IMethodReader method)
Add a method to your entity.
|
IMethodWriter |
IClassWriter.method(String name)
Add a method to your entity.
|
IMethodWriter |
IClassWriter.methodByParse(String methodSignature)
Define a way to parse a method with all properties and annotations from a String.
|
IMethodWriter |
IMethodWriter.modifiers(ModifierEnum... modifiers)
Define the modifiers that you want in your method.
|
IMethodWriter |
IMethodWriter.name(String name)
Define the name of your method.
|
IMethodWriter |
IMethodWriter.returnType(Class<?> clazz)
Define the class type returned of your method.
|
IMethodWriter |
IMethodWriter.returnTypeAsSelfType()
The default type is the same type of the generated entity.
|
IMethodWriter |
IMethodWriter.returnTypeAsVoid()
Define the class type name of your method as void.
|
IMethodWriter |
IMethodWriter.value(Object value)
Define the default value that you want in your method.
|
IMethodWriter |
IMethodWriter.visibility(VisibilityEnum visibility)
Define the visibility for your method.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MethodImp
Class responsible for implement all definitions of a method.
|
| Modifier and Type | Method and Description |
|---|---|
IMethodWriter |
MethodImp.exceptions(Class<?>... exceptions) |
IMethodWriter |
MethodImp.modifiers(ModifierEnum... modifiers) |
IMethodWriter |
MethodImp.name(String name) |
IMethodWriter |
MethodImp.returnType(Class<?> clazz) |
IMethodWriter |
MethodImp.returnTypeAsSelfType() |
IMethodWriter |
MethodImp.returnTypeAsVoid() |
IMethodWriter |
MethodImp.value(Object value) |
IMethodWriter |
MethodImp.visibility(VisibilityEnum visibility) |
Copyright © 2018 Esfinge Framework. All rights reserved.