public interface PainlessScript
| Modifier and Type | Method and Description |
|---|---|
default ScriptException |
convertToScriptException(java.lang.Throwable t,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> extraMetadata)
Adds stack trace and other useful information to exceptions thrown
from a Painless script.
|
java.lang.String |
getName() |
default int |
getNextStatement(int offset)
Finds the start of the first statement boundary that is after
offset. |
default int |
getPreviousStatement(int offset)
Finds the start of the first statement boundary that is on or before
offset. |
java.lang.String |
getSource() |
java.util.BitSet |
getStatements() |
default boolean |
shouldFilter(java.lang.StackTraceElement element)
returns true for methods that are part of the runtime
|
java.lang.String getName()
java.lang.String getSource()
java.util.BitSet getStatements()
BitSet tracking the boundaries for statements necessary
for good exception messages.default ScriptException convertToScriptException(java.lang.Throwable t,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> extraMetadata)
t - The throwable to build an exception around.default boolean shouldFilter(java.lang.StackTraceElement element)
default int getPreviousStatement(int offset)
offset. If one is not found, -1 is returned.default int getNextStatement(int offset)
offset. If one is not found, -1 is returned.