Uses of Class
org.microproxy.starlark.StarlarkScript
Packages that use StarlarkScript
-
Uses of StarlarkScript in org.microproxy.starlark
Methods in org.microproxy.starlark that return StarlarkScriptModifier and TypeMethodDescriptionstatic StarlarkScriptStarlarkScript.compile(String source, String name, StarlarkScript.Limits limits) Compiles and runssource;nameappears in error messages.static StarlarkScriptStarlarkScript.compile(String source, String name, StarlarkScript.Limits limits, Map<String, ?> constants) Compiles and runssourcewithconstantsas read-only globals (seeScriptedProxy.Builder.constants);nameappears in error messages.static StarlarkScriptStarlarkScript.compile(String source, String name, StarlarkScript.Limits limits, Map<String, ?> constants, StatsRegistry stats) Compiles and runssourcewithconstantsas read-only globals, itsstatsmodule counting intostats(ScriptStats);nameappears in error messages.static StarlarkScriptStarlarkScript.load(Path file, StarlarkScript.Limits limits) Loads and runs the script infile.static StarlarkScriptStarlarkScript.load(Path file, StarlarkScript.Limits limits, Map<String, ?> constants) Loads and runs the script infile, withconstantsas read-only globals (seeScriptedProxy.Builder.constants).static StarlarkScriptStarlarkScript.load(Path file, StarlarkScript.Limits limits, Map<String, ?> constants, StatsRegistry stats) Loads and runs the script infile, withconstantsas read-only globals and itsstatsmodule counting intostats.ScriptedProxy.script()The script in use, re-reading the file first if it changed.StarlarkScript.withObserver(ScriptCallObserver observer) This script withobserverseeing every call into it.StarlarkScript.withProtoSchema(ProtoSchema schema) This script with a protobuf schema for itsprotobufandgrpcmodules, so thatprotobuf.decode(data, type="pkg.Message")decodes with field names (andencodetakes them).StarlarkScript.withStatsName(String name) This script with its stats taggednamerather than after its file.