@PersistantProperties(properties=@PersistantProperty(property="error",defaultValue="false")) public abstract class AbstractActionPrint extends AbstractBasicAction
IExecutionContext.getOut()
and IExecutionContext.getErr()
.IExecutable.ValueReturning
Constructor and Description |
---|
AbstractActionPrint() |
AbstractActionPrint(boolean error) |
Modifier and Type | Method and Description |
---|---|
AbstractActionPrint |
clone()
Clones the Addon.
|
boolean |
equals(Object o) |
int |
hashCode() |
protected IExecutionResult |
internalExecute(IExecutionContext ctxt)
Launches printing after basic streams checks, then calls
print(IExecutionContext) . |
boolean |
isError() |
protected abstract void |
print(IExecutionContext ctxt)
Handles implementation specificities of printing, and then should redirect effective printing to
print(IExecutionContext, Object) |
protected void |
print(IExecutionContext ctxt,
Object sourceVal)
Chooses stream and performs effective printing.
|
void |
setError(boolean error) |
execute
combineResults, compile, compileExecutable, compileExecutables, execute, execute, getProperties, getProperty, hasProperties, hasProperty, removeProperty, setProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getProperties, hasProperties, hasProperty, removeProperty
getImplementationId, getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public AbstractActionPrint()
public AbstractActionPrint(boolean error)
protected IExecutionResult internalExecute(IExecutionContext ctxt) throws MActionExecutionException
print(IExecutionContext)
.internalExecute
in class AbstractExecutable
MActionExecutionException
IAction.execute(IExecutionContext)
protected abstract void print(IExecutionContext ctxt) throws MActionExecutionException
print(IExecutionContext, Object)
ctxt
- MActionExecutionException
protected void print(IExecutionContext ctxt, Object sourceVal) throws MActionExecutionException
ctxt
- sourceVal
- MActionExecutionException
public AbstractActionPrint clone()
IAddon
clone
in interface IAction
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IExecutable
clone
in class AbstractBasicAction
public boolean isError()
public void setError(boolean error)