public class MacroReturn extends MacroFunctor
MacroBlock, regardless of execution
depth.
The result of this service is the result of the "value" expression executed
or null.ATTR_DESCRIPTION, ATTR_ICON, ATTR_LABEL, ATTR_TIP| Constructor and Description |
|---|
MacroReturn() |
MacroReturn(IFunctor expr) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(IElement element) |
String |
getLabel()
A short string representation (suitable for example for use with an icon
or menu item).
|
IFunctor |
getValueExpression() |
Object |
perform(IFunctorCall call)
Perform the encapsulated business logic in the context defined in "call".
|
void |
serialize(IElement element)
Serialize the state in
element. |
void |
setContext(Object context) |
void |
setValueExpression(IFunctor step) |
getClassLoader, getContainer, getContext, getDescription, getIconName, getTip, setContainerpublic MacroReturn()
public MacroReturn(IFunctor expr)
public void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableconfigure in class MacroFunctorConfigurationExceptionpublic String getLabel()
IPresentationSupportgetLabel in interface IPresentationSupportgetLabel in class MacroFunctorpublic IFunctor getValueExpression()
public Object perform(IFunctorCall call) throws FunctorInvocationException
IFunctorcall - The call contextFunctorInvocationException - An exception that raised while executing the business logic
will be wrapped in a FunctorInvocationException.public void serialize(IElement element) throws ElementSerializationException
IElementSerializableelement. element
represents the receiver immediately, it contains the state information
directly, not as a child element. This means most of the time you have to
change the element name itself and add child elements.serialize in interface IElementSerializableserialize in class MacroFunctorElementSerializationExceptionpublic void setContext(Object context) throws ConfigurationException
setContext in interface IContextSupportsetContext in class MacroFunctorConfigurationExceptionpublic void setValueExpression(IFunctor step)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.