public abstract class AbstractTagScript extends java.lang.Object implements CompiledTagScript
Modifier | Constructor and Description |
---|---|
protected |
AbstractTagScript(FunctionInvoker method) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.python.core.PyObject[] |
buildArgumentsFor(Tag source,
TagPath sourcePath,
java.lang.Object[] parameters,
boolean overflow)
Should return an array of pyobjects that will be used as arguments to the function.
|
void |
invoke(Tag source,
TagPath sourcePath,
java.lang.Object[] parameters,
boolean overflow)
Executes the script for the given source tags.
|
boolean |
isErrored() |
void |
setErrored(boolean errored) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
protected AbstractTagScript(FunctionInvoker method)
public boolean isErrored()
isErrored
in interface CompiledTagScript
public void setErrored(boolean errored)
setErrored
in interface CompiledTagScript
protected abstract org.python.core.PyObject[] buildArgumentsFor(Tag source, TagPath sourcePath, java.lang.Object[] parameters, boolean overflow)
public void invoke(Tag source, TagPath sourcePath, java.lang.Object[] parameters, boolean overflow) throws java.lang.Exception
CompiledTagScript
invoke
in interface CompiledTagScript
parameters
- understood in the context of the event that is fired.java.lang.Exception