Package org.elasticsearch.painless.spi
Class Whitelist
java.lang.Object
org.elasticsearch.painless.spi.Whitelist
Whitelist contains data structures designed to be used to generate a whitelist of Java classes,
constructors, methods, and fields that can be used within a Painless script at both compile-time
and run-time.
A whitelist consists of several pieces with
WhitelistClasss as the top level. Each
WhitelistClass will contain zero-to-many WhitelistConstructors, WhitelistMethods, and
WhitelistFields which are what will be available with a Painless script. See each individual
whitelist object for more detail.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ClassLoaderTheClassLoaderused to look up the whitelisted Java classes, constructors, methods, and fields.final List<WhitelistClassBinding>TheListof all the whitelisted Painless class bindings.final List<WhitelistClass>TheListof all the whitelisted Painless classes.final List<WhitelistMethod>TheListof all the whitelisted static Painless methods.final List<WhitelistInstanceBinding>TheListof all the whitelisted Painless instance bindings. -
Constructor Summary
ConstructorsConstructorDescriptionWhitelist(ClassLoader classLoader, List<WhitelistClass> whitelistClasses, List<WhitelistMethod> whitelistImportedMethods, List<WhitelistClassBinding> whitelistClassBindings, List<WhitelistInstanceBinding> whitelistInstanceBindings) Standard constructor. -
Method Summary
-
Field Details
-
classLoader
TheClassLoaderused to look up the whitelisted Java classes, constructors, methods, and fields. -
whitelistClasses
TheListof all the whitelisted Painless classes. -
whitelistImportedMethods
TheListof all the whitelisted static Painless methods. -
whitelistClassBindings
TheListof all the whitelisted Painless class bindings. -
whitelistInstanceBindings
TheListof all the whitelisted Painless instance bindings.
-
-
Constructor Details
-
Whitelist
public Whitelist(ClassLoader classLoader, List<WhitelistClass> whitelistClasses, List<WhitelistMethod> whitelistImportedMethods, List<WhitelistClassBinding> whitelistClassBindings, List<WhitelistInstanceBinding> whitelistInstanceBindings) Standard constructor. All values must be notnull.
-