public class StringCoercion extends Object implements InputCoercion<String>, OutputCoercion
| Constructor and Description |
|---|
StringCoercion() |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
tryCoerceParam(InvocationContext currentContext,
int param,
InputEvent input,
MethodWrapper method) |
Optional<OutputEvent> |
wrapFunctionResult(InvocationContext ctx,
MethodWrapper method,
Object value) |
public Optional<OutputEvent> wrapFunctionResult(InvocationContext ctx, MethodWrapper method, Object value)
wrapFunctionResult in interface OutputCoercionpublic Optional<String> tryCoerceParam(InvocationContext currentContext, int param, InputEvent input, MethodWrapper method)
tryCoerceParam in interface InputCoercion<String>Copyright © 2023. All rights reserved.