- addConstantInitializer(Constant) - Method in class org.elasticsearch.painless.Globals
-
Adds a new constant initializer to be written
- addSyntheticMethod(SFunction) - Method in class org.elasticsearch.painless.Globals
-
Adds a new synthetic method to be written.
- addToTotal(FeatureTest, int) - Static method in class org.elasticsearch.painless.FeatureTestAugmentation
-
- addUsedVariables(SFunction.FunctionReserved) - Method in class org.elasticsearch.painless.node.SFunction.FunctionReserved
-
- addUsedVariables(SFunction.FunctionReserved) - Method in class org.elasticsearch.painless.node.SSource.MainMethodReserved
-
- addUsedVariables(SFunction.FunctionReserved) - Method in interface org.elasticsearch.painless.node.SSource.Reserved
-
- addVariable(Location, Definition.Type, String, boolean) - Method in class org.elasticsearch.painless.Locals
-
Creates a new variable.
- AExpression - Class in org.elasticsearch.painless.node
-
The superclass for all E* (expression) and P* (postfix) nodes.
- analyze(Definition) - Method in class org.elasticsearch.painless.node.SSource
-
- AnalyzerCaster - Class in org.elasticsearch.painless
-
Used during the analysis phase to collect legal type casts and promotions
for type-checking and later to write necessary casts in the bytecode.
- AnalyzerCaster(Definition) - Constructor for class org.elasticsearch.painless.AnalyzerCaster
-
- ANode - Class in org.elasticsearch.painless.node
-
The superclass for all nodes.
- any(Iterable<T>, Predicate<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates over the contents of an iterable, and checks whether a predicate is valid for at least one element.
- areRegexesEnabled() - Method in class org.elasticsearch.painless.CompilerSettings
-
Are regexes enabled? They are currently disabled by default because they break out of the loop counter and even fairly simple
looking regexes can cause stack overflows.
- arguments - Variable in class org.elasticsearch.painless.Definition.Method
-
- arity - Variable in class org.elasticsearch.painless.Definition.MethodKey
-
- ARRAY_LOAD - Static variable in class org.elasticsearch.painless.DefBootstrap
-
static bootstrap parameter indicating a dynamic array load, e.g.
- ARRAY_STORE - Static variable in class org.elasticsearch.painless.DefBootstrap
-
static bootstrap parameter indicating a dynamic array store, e.g.
- ArrayListType - Variable in class org.elasticsearch.painless.Definition
-
- asCollection(Iterable<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Converts this Iterable to a Collection.
- asList(Iterable<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Converts this Iterable to a List.
- ASM_VERSION - Static variable in class org.elasticsearch.painless.WriterConstants
-
- AStatement - Class in org.elasticsearch.painless.node
-
The superclass for all S* (statement) nodes.
- Augmentation - Class in org.elasticsearch.painless.api
-
Additional methods added to classes.
- augmentation - Variable in class org.elasticsearch.painless.Definition.Method
-
- AUGMENTATION_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- cast(Class<?>, MethodHandle) - Static method in class org.elasticsearch.painless.DefMath
-
Forces a cast to class A for target (only if types differ)
- caster - Variable in class org.elasticsearch.painless.Definition
-
- CHAR_TO_STRING - Static variable in class org.elasticsearch.painless.WriterConstants
-
- CharacterType - Variable in class org.elasticsearch.painless.Definition
-
- charToString(char) - Static method in class org.elasticsearch.painless.Utility
-
- charType - Variable in class org.elasticsearch.painless.Definition
-
- CLASS_NAME - Static variable in class org.elasticsearch.painless.WriterConstants
-
- CLASS_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- CLASS_VERSION - Static variable in class org.elasticsearch.painless.WriterConstants
-
- clazz - Variable in class org.elasticsearch.painless.Definition.Struct
-
- clazz - Variable in class org.elasticsearch.painless.Definition.Type
-
- CLINIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- collect(Collection<T>, Function<T, U>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through this collection transforming each entry into a new value using
the function, returning a list of transformed values.
- collect(Collection<T>, Collection<U>, Function<T, U>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through this collection transforming each entry into a new value using
the function, adding the values to the specified collection.
- collect(Map<K, V>, BiFunction<K, V, T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through this map transforming each entry into a new value using
the function, returning a list of transformed values.
- collect(Map<K, V>, Collection<T>, BiFunction<K, V, T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through this map transforming each entry into a new value using
the function, adding the values to the specified collection.
- COLLECTION_SIZE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- COLLECTION_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- COLLECTIONS_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- compile(String, String, <any>, Map<String, String>) - Method in class org.elasticsearch.painless.PainlessScriptEngine
-
- CompilerSettings - Class in org.elasticsearch.painless
-
Settings to use when compiling a script.
- CompilerSettings() - Constructor for class org.elasticsearch.painless.CompilerSettings
-
- computeSourceName(String, String) - Static method in class org.elasticsearch.painless.Location
-
Computes the file name (mostly important for stacktraces)
- Constant - Class in org.elasticsearch.painless
-
A constant initializer to be added to the class file.
- Constant(Location, org.objectweb.asm.Type, String, Consumer<MethodWriter>) - Constructor for class org.elasticsearch.painless.Constant
-
Create a new constant.
- constCast(Location, Object, Definition.Cast) - Method in class org.elasticsearch.painless.AnalyzerCaster
-
- constructors - Variable in class org.elasticsearch.painless.Definition.Struct
-
- CONVERT_TO_SCRIPT_EXCEPTION_METHOD - Static variable in class org.elasticsearch.painless.WriterConstants
-
- convertToScriptException(Throwable, Map<String, List<String>>) - Method in interface org.elasticsearch.painless.PainlessScript
-
Adds stack trace and other useful information to exceptions thrown
from a Painless script.
- count(Iterable<T>, Predicate<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Counts the number of occurrences which satisfy the given predicate from inside this Iterable.
- count(Map<K, V>, BiPredicate<K, V>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Counts the number of occurrences which satisfy the given predicate from inside this Map
- create(<any>, int, String, int, int, int, int, int) - Method in class org.elasticsearch.painless.antlr.StashingTokenFactory
-
- create(int, String) - Method in class org.elasticsearch.painless.antlr.StashingTokenFactory
-
- createError(RuntimeException) - Method in class org.elasticsearch.painless.Location
-
Augments an exception with this location's information.
- CTOR_METHOD_NAME - Static variable in class org.elasticsearch.painless.WriterConstants
-
- Debug - Class in org.elasticsearch.painless.api
-
Utility methods for debugging painless scripts that are accessible to painless scripts.
- decodeBase64(String) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Decode some Base64 bytes and build a UTF-8 encoded string.
- Def - Class in org.elasticsearch.painless
-
Support for dynamic type (def).
- Def() - Constructor for class org.elasticsearch.painless.Def
-
- DEF_ARRAY_LENGTH_METHOD_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_BOOTSTRAP_DELEGATE_METHOD - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_BOOTSTRAP_DELEGATE_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_BOOTSTRAP_METHOD - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_BOOLEAN - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_BYTE_EXPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_BYTE_IMPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_CHAR_EXPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_CHAR_IMPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_DOUBLE_EXPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_DOUBLE_IMPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_FLOAT_EXPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_FLOAT_IMPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_INT_EXPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_INT_IMPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_LONG_EXPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_LONG_IMPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_SHORT_EXPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_TO_SHORT_IMPLICIT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DEF_UTIL_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DefBootstrap - Class in org.elasticsearch.painless
-
Painless invokedynamic bootstrap for the call site.
- Definition - Class in org.elasticsearch.painless
-
The entire API for Painless.
- Definition(List<Whitelist>) - Constructor for class org.elasticsearch.painless.Definition
-
- Definition.Cast - Class in org.elasticsearch.painless
-
- Definition.Field - Class in org.elasticsearch.painless
-
- Definition.Method - Class in org.elasticsearch.painless
-
- Definition.MethodKey - Class in org.elasticsearch.painless
-
Key for looking up a method.
- Definition.RuntimeClass - Class in org.elasticsearch.painless
-
- Definition.Struct - Class in org.elasticsearch.painless
-
- Definition.Type - Class in org.elasticsearch.painless
-
- DEFINITION_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DefMath - Class in org.elasticsearch.painless
-
Dynamic operators for painless.
- DefMath() - Constructor for class org.elasticsearch.painless.DefMath
-
- DefToboolean(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTobyteExplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTobyteImplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTocharExplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTocharImplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTodoubleExplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTodoubleImplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTofloatExplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTofloatImplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTointExplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTointImplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTolongExplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefTolongImplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefToshortExplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefToshortImplicit(Object) - Static method in class org.elasticsearch.painless.Def
-
- DefType - Variable in class org.elasticsearch.painless.Definition
-
- DELEGATE_BOOTSTRAP_HANDLE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- DELEGATE_BOOTSTRAP_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- delegateBootstrap(MethodHandles.Lookup, String, MethodType, MethodHandle) - Static method in class org.elasticsearch.painless.LambdaBootstrap
-
Links the delegate method to the returned CallSite.
- delegateClassName - Variable in class org.elasticsearch.painless.FunctionRef
-
class of the delegate method to be called
- delegateInvokeType - Variable in class org.elasticsearch.painless.FunctionRef
-
the invocation type of the delegate method
- delegateMethod - Variable in class org.elasticsearch.painless.FunctionRef
-
delegate method
- delegateMethodName - Variable in class org.elasticsearch.painless.FunctionRef
-
the name of the delegate method
- delegateMethodType - Variable in class org.elasticsearch.painless.FunctionRef
-
delegate method signature
- delegateType - Variable in class org.elasticsearch.painless.FunctionRef
-
delegate method type method as type
- dimensions - Variable in class org.elasticsearch.painless.Definition.Type
-
- doubleType - Variable in class org.elasticsearch.painless.Definition
-
- DoubleType - Variable in class org.elasticsearch.painless.Definition
-
- dynamic - Variable in class org.elasticsearch.painless.Definition.Type
-
- dynamicCast(MethodHandle) - Static method in class org.elasticsearch.painless.DefMath
-
Looks up generic method, with a dynamic cast to the receiver's type.
- dynamicCast(MethodHandle, Class<?>) - Static method in class org.elasticsearch.painless.DefMath
-
Looks up generic method, with a dynamic cast to the specified type.
- each(Iterable<T>, Consumer<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through an Iterable, passing each item to the given consumer.
- each(Map<K, V>, BiConsumer<K, V>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through a Map, passing each item to the given consumer.
- eachWithIndex(Iterable<T>, ObjIntConsumer<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through an iterable type, passing each item and the item's index
(a counter starting at zero) to the given consumer.
- EAssignment - Class in org.elasticsearch.painless.node
-
Represents an assignment with the lhs and rhs as child nodes.
- EAssignment(Location, AExpression, AExpression, boolean, boolean, Operation) - Constructor for class org.elasticsearch.painless.node.EAssignment
-
- EBinary - Class in org.elasticsearch.painless.node
-
Represents a binary math expression.
- EBinary(Location, Operation, AExpression, AExpression) - Constructor for class org.elasticsearch.painless.node.EBinary
-
- EBool - Class in org.elasticsearch.painless.node
-
Represents a boolean expression.
- EBool(Location, Operation, AExpression, AExpression) - Constructor for class org.elasticsearch.painless.node.EBool
-
- EBoolean - Class in org.elasticsearch.painless.node
-
Represents a boolean constant.
- EBoolean(Location, boolean) - Constructor for class org.elasticsearch.painless.node.EBoolean
-
- ECallLocal - Class in org.elasticsearch.painless.node
-
Represents a user-defined call.
- ECallLocal(Location, String, List<AExpression>) - Constructor for class org.elasticsearch.painless.node.ECallLocal
-
- ECapturingFunctionRef - Class in org.elasticsearch.painless.node
-
Represents a capturing function reference.
- ECapturingFunctionRef(Location, String, String) - Constructor for class org.elasticsearch.painless.node.ECapturingFunctionRef
-
- EComp - Class in org.elasticsearch.painless.node
-
Represents a comparison expression.
- EComp(Location, Operation, AExpression, AExpression) - Constructor for class org.elasticsearch.painless.node.EComp
-
- EConditional - Class in org.elasticsearch.painless.node
-
Represents a conditional expression.
- EConditional(Location, AExpression, AExpression, AExpression) - Constructor for class org.elasticsearch.painless.node.EConditional
-
- EDecimal - Class in org.elasticsearch.painless.node
-
Represents a decimal constant.
- EDecimal(Location, String) - Constructor for class org.elasticsearch.painless.node.EDecimal
-
- EElvis - Class in org.elasticsearch.painless.node
-
The Elvis operator (?:), a null coalescing operator.
- EElvis(Location, AExpression, AExpression) - Constructor for class org.elasticsearch.painless.node.EElvis
-
- EExplicit - Class in org.elasticsearch.painless.node
-
Represents an explicit cast.
- EExplicit(Location, String, AExpression) - Constructor for class org.elasticsearch.painless.node.EExplicit
-
- EFunctionRef - Class in org.elasticsearch.painless.node
-
Represents a function reference.
- EFunctionRef(Location, String, String) - Constructor for class org.elasticsearch.painless.node.EFunctionRef
-
- EInstanceof - Class in org.elasticsearch.painless.node
-
Represents instanceof operator.
- EInstanceof(Location, AExpression, String) - Constructor for class org.elasticsearch.painless.node.EInstanceof
-
- ELambda - Class in org.elasticsearch.painless.node
-
Lambda expression node.
- ELambda(String, SFunction.FunctionReserved, Location, List<String>, List<String>, List<AStatement>) - Constructor for class org.elasticsearch.painless.node.ELambda
-
- EListInit - Class in org.elasticsearch.painless.node
-
Represents a list initialization shortcut.
- EListInit(Location, List<AExpression>) - Constructor for class org.elasticsearch.painless.node.EListInit
-
- EMapInit - Class in org.elasticsearch.painless.node
-
Represents a map initialization shortcut.
- EMapInit(Location, List<AExpression>, List<AExpression>) - Constructor for class org.elasticsearch.painless.node.EMapInit
-
- EMPTY_MAP_METHOD - Static variable in class org.elasticsearch.painless.WriterConstants
-
- encodeBase64(String) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Encode a String in Base64.
- endMethod() - Method in class org.elasticsearch.painless.MethodWriter
-
- ENewArray - Class in org.elasticsearch.painless.node
-
Represents an array instantiation.
- ENewArray(Location, String, List<AExpression>, boolean) - Constructor for class org.elasticsearch.painless.node.ENewArray
-
- ENewObj - Class in org.elasticsearch.painless.node
-
Represents and object instantiation.
- ENewObj(Location, String, List<AExpression>) - Constructor for class org.elasticsearch.painless.node.ENewObj
-
- ENull - Class in org.elasticsearch.painless.node
-
Represents a null constant.
- ENull(Location) - Constructor for class org.elasticsearch.painless.node.ENull
-
- ENumeric - Class in org.elasticsearch.painless.node
-
Represents a non-decimal numeric constant.
- ENumeric(Location, String, int) - Constructor for class org.elasticsearch.painless.node.ENumeric
-
- equals(Object) - Method in class org.elasticsearch.painless.Definition.MethodKey
-
- equals(Object) - Method in class org.elasticsearch.painless.Definition.Struct
-
- equals(Object) - Method in class org.elasticsearch.painless.Definition.Type
-
- EQUALS - Static variable in class org.elasticsearch.painless.WriterConstants
-
- ERegex - Class in org.elasticsearch.painless.node
-
Represents a regex constant.
- ERegex(Location, String, String) - Constructor for class org.elasticsearch.painless.node.ERegex
-
- EStatic - Class in org.elasticsearch.painless.node
-
Represents a static type target.
- EStatic(Location, String) - Constructor for class org.elasticsearch.painless.node.EStatic
-
- EString - Class in org.elasticsearch.painless.node
-
Represents a string constant.
- EString(Location, String) - Constructor for class org.elasticsearch.painless.node.EString
-
- EUnary - Class in org.elasticsearch.painless.node
-
Represents a unary math expression.
- EUnary(Location, Operation, AExpression) - Constructor for class org.elasticsearch.painless.node.EUnary
-
- EVariable - Class in org.elasticsearch.painless.node
-
Represents a variable load/store.
- EVariable(Location, String) - Constructor for class org.elasticsearch.painless.node.EVariable
-
- every(Iterable<T>, Predicate<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Used to determine if the given predicate is valid (i.e.
- every(Map<K, V>, BiPredicate<K, V>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Used to determine if the given predicate is valid (i.e.
- EXCEPTION_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- ExceptionType - Variable in class org.elasticsearch.painless.Definition
-
- execute(Map<String, Object>, double, Map<String, <any>>, Object, Map<?, ?>) - Method in class org.elasticsearch.painless.GenericElasticsearchScript
-
- explain(Object) - Static method in class org.elasticsearch.painless.api.Debug
-
Throw an Error that "explains" an object.
- explicit - Variable in class org.elasticsearch.painless.Definition.Cast
-
- factoryDescriptor - Variable in class org.elasticsearch.painless.FunctionRef
-
factory method type descriptor
- factoryMethodType - Variable in class org.elasticsearch.painless.FunctionRef
-
factory (CallSite) method signature
- FeatureTest - Class in org.elasticsearch.painless
-
Currently just a dummy class for testing a few features not yet exposed by whitelist!
- FeatureTest() - Constructor for class org.elasticsearch.painless.FeatureTest
-
empty ctor
- FeatureTest(int, int) - Constructor for class org.elasticsearch.painless.FeatureTest
-
ctor with params
- FeatureTestAugmentation - Class in org.elasticsearch.painless
-
- find(Collection<T>, Predicate<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Finds the first value matching the predicate, or returns null.
- find(Map<K, V>, BiPredicate<K, V>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Finds the first entry matching the predicate, or returns null.
- findAll(Collection<T>, Predicate<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Finds all values matching the predicate, returns as a list
- findAll(Map<K, V>, BiPredicate<K, V>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Finds all values matching the predicate, returns as a map.
- findResult(Collection<T>, Function<T, U>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through the collection calling the given function for each item
but stopping once the first non-null result is found and returning that result.
- findResult(Collection<T>, Object, Function<T, U>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through the collection calling the given function for each item
but stopping once the first non-null result is found and returning that result.
- findResult(Map<K, V>, BiFunction<K, V, T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through the map calling the given function for each item
but stopping once the first non-null result is found and returning that result.
- findResult(Map<K, V>, Object, BiFunction<K, V, T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through the map calling the given function for each item
but stopping once the first non-null result is found and returning that result.
- findResults(Iterable<T>, Function<T, U>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through the Iterable transforming items using the supplied function and
collecting any non-null results.
- findResults(Map<K, V>, BiFunction<K, V, T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Iterates through the map transforming items using the supplied function and
collecting any non-null results.
- floatType - Variable in class org.elasticsearch.painless.Definition
-
- FloatType - Variable in class org.elasticsearch.painless.Definition
-
- from - Variable in class org.elasticsearch.painless.Definition.Cast
-
- FunctionRef - Class in org.elasticsearch.painless
-
Reference to a function or lambda.
- FunctionRef(Definition, Definition.Type, String, String, int) - Constructor for class org.elasticsearch.painless.FunctionRef
-
Creates a new FunctionRef, which will resolve type::call from the whitelist.
- FunctionRef(Definition.Type, Definition.Method, Definition.Method, int) - Constructor for class org.elasticsearch.painless.FunctionRef
-
Creates a new FunctionRef (already resolved)
- FunctionRef(Definition.Type, Definition.Method, String, MethodType, int) - Constructor for class org.elasticsearch.painless.FunctionRef
-
Creates a new FunctionRef (low level).
- FunctionReserved() - Constructor for class org.elasticsearch.painless.node.SFunction.FunctionReserved
-
- GenericElasticsearchScript - Class in org.elasticsearch.painless
-
Generic script interface that Painless implements for all Elasticsearch scripts.
- GenericElasticsearchScript() - Constructor for class org.elasticsearch.painless.GenericElasticsearchScript
-
- GET_NAME_METHOD - Static variable in class org.elasticsearch.painless.WriterConstants
-
- GET_NAME_NAME - Static variable in class org.elasticsearch.painless.WriterConstants
-
- GET_SOURCE_METHOD - Static variable in class org.elasticsearch.painless.WriterConstants
-
- GET_SOURCE_NAME - Static variable in class org.elasticsearch.painless.WriterConstants
-
- GET_STATEMENTS_METHOD - Static variable in class org.elasticsearch.painless.WriterConstants
-
- GET_STATEMENTS_NAME - Static variable in class org.elasticsearch.painless.WriterConstants
-
- getBaseClass() - Method in class org.elasticsearch.painless.ScriptClassInfo
-
The interface that the Painless script should implement.
- getBoxedType(Definition.Type) - Method in class org.elasticsearch.painless.Definition
-
- getBytes() - Method in class org.elasticsearch.painless.node.SSource
-
- getCaptures() - Method in class org.elasticsearch.painless.node.ECapturingFunctionRef
-
- getCaptures() - Method in class org.elasticsearch.painless.node.EFunctionRef
-
- getCaptures() - Method in class org.elasticsearch.painless.node.ELambda
-
- getClassFromBinaryName(String) - Method in class org.elasticsearch.painless.Definition
-
- getConstantInitializers() - Method in class org.elasticsearch.painless.Globals
-
Returns the current initializers
- getDefinition() - Method in class org.elasticsearch.painless.Locals
-
Whitelist against which this script is being compiled.
- getExecuteArguments() - Method in class org.elasticsearch.painless.ScriptClassInfo
-
Painless
Definition.Types and names of the arguments to the
execute method.
- getExecuteMethod() - Method in class org.elasticsearch.painless.ScriptClassInfo
-
An asm method descriptor for the execute method.
- getExecuteMethodReturnType() - Method in class org.elasticsearch.painless.ScriptClassInfo
-
- getFunctionalMethod() - Method in class org.elasticsearch.painless.Definition.Struct
-
If this class is a functional interface according to JLS, returns its method.
- getGetMethods() - Method in class org.elasticsearch.painless.ScriptClassInfo
-
The getVarName methods that must be implemented by Painless to complete implementing the interface.
- getGetReturns() - Method in class org.elasticsearch.painless.ScriptClassInfo
-
The getVarName methods return types.
- getHeaders(Definition) - Method in error org.elasticsearch.painless.PainlessExplainError
-
Headers to be added to the ScriptException for structured rendering.
- getInitialCallSiteDepth() - Method in class org.elasticsearch.painless.CompilerSettings
-
Returns initial call site depth.
- getLastToken() - Method in class org.elasticsearch.painless.antlr.StashingTokenFactory
-
- getLegalCast(Location, Definition.Type, Definition.Type, boolean, boolean) - Method in class org.elasticsearch.painless.AnalyzerCaster
-
- getLength(List<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Exposes List.size() as getLength(), so that .length shortcut works on lists
- getMaxLoopCounter() - Method in class org.elasticsearch.painless.CompilerSettings
-
Returns the value for the cumulative total number of statements that can be made in all loops
in a script before an exception is thrown.
- getMaxLoopCounter() - Method in class org.elasticsearch.painless.node.SFunction.FunctionReserved
-
- getMaxLoopCounter() - Method in class org.elasticsearch.painless.node.SSource.MainMethodReserved
-
- getMaxLoopCounter() - Method in interface org.elasticsearch.painless.node.SSource.Reserved
-
- getMethod(Definition.MethodKey) - Method in class org.elasticsearch.painless.Locals
-
Looks up a method.
- getMethodType() - Method in class org.elasticsearch.painless.Definition.Method
-
Returns MethodType for this method.
- getName() - Method in interface org.elasticsearch.painless.PainlessScript
-
- getName() - Method in class org.elasticsearch.painless.ScriptClassInfo.MethodArgument
-
- getNeedsMethods() - Method in class org.elasticsearch.painless.ScriptClassInfo
-
The uses$varName methods that must be implemented by Painless to complete implementing the interface.
- getNextStatement(int) - Method in interface org.elasticsearch.painless.PainlessScript
-
Finds the start of the first statement boundary that is after offset.
- getOffset() - Method in class org.elasticsearch.painless.Location
-
Return the character offset
- getPointer() - Method in class org.elasticsearch.painless.node.ECapturingFunctionRef
-
- getPointer() - Method in class org.elasticsearch.painless.node.EFunctionRef
-
- getPointer() - Method in class org.elasticsearch.painless.node.ELambda
-
- getPreviousStatement(int) - Method in interface org.elasticsearch.painless.PainlessScript
-
Finds the start of the first statement boundary that is on or before offset.
- getProgramScope() - Method in class org.elasticsearch.painless.Locals
-
Returns the top-level program scope.
- getReturnType() - Method in class org.elasticsearch.painless.Locals
-
Return type of this scope (e.g.
- getRuntimeClass(Class<?>) - Method in class org.elasticsearch.painless.Definition
-
- getScriptEngine(Settings, Collection<<any>>) - Method in class org.elasticsearch.painless.PainlessPlugin
-
- getSettings() - Method in class org.elasticsearch.painless.PainlessPlugin
-
- getSlot() - Method in class org.elasticsearch.painless.Locals.Variable
-
- getSource() - Method in interface org.elasticsearch.painless.PainlessScript
-
- getSourceName() - Method in class org.elasticsearch.painless.Location
-
Return the script's name
- getStatements() - Method in class org.elasticsearch.painless.Globals
-
Returns the set of statement boundaries
- getStatements() - Method in class org.elasticsearch.painless.node.SSource
-
- getStatements() - Method in interface org.elasticsearch.painless.PainlessScript
-
- getStruct() - Method in class org.elasticsearch.painless.Definition.RuntimeClass
-
- getSyntheticMethods() - Method in class org.elasticsearch.painless.Globals
-
Returns the current synthetic methods
- getters - Variable in class org.elasticsearch.painless.Definition.RuntimeClass
-
- getTotal(FeatureTest) - Static method in class org.elasticsearch.painless.FeatureTestAugmentation
-
- getType(String) - Method in class org.elasticsearch.painless.Definition
-
Gets the type given by its name
- getType(Definition.Struct, int) - Method in class org.elasticsearch.painless.Definition
-
Creates an array type from the given Struct.
- getType() - Method in class org.elasticsearch.painless.PainlessScriptEngine
-
Get the type name(s) for the language.
- getType() - Method in class org.elasticsearch.painless.ScriptClassInfo.MethodArgument
-
- getUnboxedType(Definition.Type) - Method in class org.elasticsearch.painless.Definition
-
- getUsedVariables() - Method in class org.elasticsearch.painless.node.SFunction.FunctionReserved
-
- getUsedVariables() - Method in class org.elasticsearch.painless.node.SSource.MainMethodReserved
-
- getUsedVariables() - Method in interface org.elasticsearch.painless.node.SSource.Reserved
-
- getUserFunctionHandleFieldName(String, int) - Static method in class org.elasticsearch.painless.Def
-
gets the field name used to lookup up the MethodHandle for a function.
- getVariable(Location, String) - Method in class org.elasticsearch.painless.Locals
-
Accesses a variable.
- getX() - Method in class org.elasticsearch.painless.FeatureTest
-
getter for x
- getY() - Method in class org.elasticsearch.painless.FeatureTest
-
getter for y
- Globals - Class in org.elasticsearch.painless
-
Program-wide globals (initializers, synthetic methods, etc)
- Globals(BitSet) - Constructor for class org.elasticsearch.painless.Globals
-
Create a new Globals from the set of statement boundaries
- groupBy(Iterable<T>, Function<T, U>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Sorts all Iterable members into groups determined by the supplied mapping function.
- groupBy(Map<K, V>, BiFunction<K, V, T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Sorts all Map members into groups determined by the supplied mapping function.
- LAMBDA_BOOTSTRAP_HANDLE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- LAMBDA_BOOTSTRAP_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
invokedynamic bootstrap for lambda expression/method references
- LambdaBootstrap - Class in org.elasticsearch.painless
-
LambdaBootstrap is used to generate all the code necessary to execute
lambda functions and method references within Painless.
- LambdaBootstrap() - Constructor for class org.elasticsearch.painless.LambdaBootstrap
-
- lambdaBootstrap(MethodHandles.Lookup, String, MethodType, MethodType, String, int, String, MethodType) - Static method in class org.elasticsearch.painless.LambdaBootstrap
-
Generates a lambda class for a lambda function/method reference
within a Painless script.
- listIndexNormalize(List<?>, int) - Static method in class org.elasticsearch.painless.Def
-
"Normalizes" the idnex into a List by flipping negative indexes around so they are "from the end" of the list.
- listInput(List<Object>) - Method in class org.elasticsearch.painless.FeatureTest
-
- LOAD - Static variable in class org.elasticsearch.painless.DefBootstrap
-
static bootstrap parameter indicating a dynamic load (getter), e.g.
- Locals - Class in org.elasticsearch.painless
-
Tracks user defined methods and variables across compilation phases.
- Locals.Parameter - Class in org.elasticsearch.painless
-
- Locals.Variable - Class in org.elasticsearch.painless
-
- location - Variable in class org.elasticsearch.painless.Constant
-
- location - Variable in class org.elasticsearch.painless.Locals.Parameter
-
- location - Variable in class org.elasticsearch.painless.Locals.Variable
-
- Location - Class in org.elasticsearch.painless
-
Represents a location in script code (name of script + character offset)
- Location(String, int) - Constructor for class org.elasticsearch.painless.Location
-
Create a new Location
- longType - Variable in class org.elasticsearch.painless.Definition
-
- LongType - Variable in class org.elasticsearch.painless.Definition
-
- lookupBinary(Class<?>, Class<?>, String) - Static method in class org.elasticsearch.painless.DefMath
-
Returns an appropriate method handle for a binary operator, based on promotion of the LHS and RHS arguments
- lookupGeneric(String) - Static method in class org.elasticsearch.painless.DefMath
-
Returns a generic method handle for any operator, that can handle all valid signatures, nulls, corner cases
- lookupUnary(Class<?>, String) - Static method in class org.elasticsearch.painless.DefMath
-
Returns an appropriate method handle for a unary or shift operator, based only on the receiver (LHS)
- LOOP - Static variable in class org.elasticsearch.painless.Locals
-
Reserved word: loop counter
- lsh(Object, long) - Static method in class org.elasticsearch.painless.DefMath
-
- SBlock - Class in org.elasticsearch.painless.node
-
Represents a set of statements as a branch of control-flow.
- SBlock(Location, List<AStatement>) - Constructor for class org.elasticsearch.painless.node.SBlock
-
- SBreak - Class in org.elasticsearch.painless.node
-
Represents a break statement.
- SBreak(Location) - Constructor for class org.elasticsearch.painless.node.SBreak
-
- SCatch - Class in org.elasticsearch.painless.node
-
Represents a catch block as part of a try-catch block.
- SCatch(Location, String, String, SBlock) - Constructor for class org.elasticsearch.painless.node.SCatch
-
- SContinue - Class in org.elasticsearch.painless.node
-
Represents a continue statement.
- SContinue(Location) - Constructor for class org.elasticsearch.painless.node.SContinue
-
- ScriptClassInfo - Class in org.elasticsearch.painless
-
Information about the interface being implemented by the painless script.
- ScriptClassInfo(Definition, Class<?>) - Constructor for class org.elasticsearch.painless.ScriptClassInfo
-
- ScriptClassInfo.MethodArgument - Class in org.elasticsearch.painless
-
- SDeclaration - Class in org.elasticsearch.painless.node
-
Represents a single variable declaration.
- SDeclaration(Location, String, String, AExpression) - Constructor for class org.elasticsearch.painless.node.SDeclaration
-
- SDeclBlock - Class in org.elasticsearch.painless.node
-
Represents a series of declarations.
- SDeclBlock(Location, List<SDeclaration>) - Constructor for class org.elasticsearch.painless.node.SDeclBlock
-
- SDo - Class in org.elasticsearch.painless.node
-
Represents a do-while loop.
- SDo(Location, SBlock, AExpression) - Constructor for class org.elasticsearch.painless.node.SDo
-
- SEach - Class in org.elasticsearch.painless.node
-
Represents a for-each loop and defers to subnodes depending on type.
- SEach(Location, String, String, AExpression, SBlock) - Constructor for class org.elasticsearch.painless.node.SEach
-
- setInitialCallSiteDepth(int) - Method in class org.elasticsearch.painless.CompilerSettings
-
For testing megamorphic fallbacks.
- setMaxLoopCounter(int) - Method in class org.elasticsearch.painless.CompilerSettings
-
Set the cumulative total number of statements that can be made in all loops.
- setMaxLoopCounter(int) - Method in class org.elasticsearch.painless.node.SFunction.FunctionReserved
-
- setMaxLoopCounter(int) - Method in class org.elasticsearch.painless.node.SSource.MainMethodReserved
-
- setMaxLoopCounter(int) - Method in interface org.elasticsearch.painless.node.SSource.Reserved
-
- setPicky(boolean) - Method in class org.elasticsearch.painless.CompilerSettings
-
Set to true if compilation should be picky.
- setRegexesEnabled(boolean) - Method in class org.elasticsearch.painless.CompilerSettings
-
Are regexes enabled? They are currently disabled by default because they break out of the loop counter and even fairly simple
looking regexes can cause stack overflows.
- setters - Variable in class org.elasticsearch.painless.Definition.RuntimeClass
-
- setX(int) - Method in class org.elasticsearch.painless.FeatureTest
-
setter for x
- setY(int) - Method in class org.elasticsearch.painless.FeatureTest
-
setter for y
- SExpression - Class in org.elasticsearch.painless.node
-
Represents the top-level node for an expression as a statement.
- SExpression(Location, AExpression) - Constructor for class org.elasticsearch.painless.node.SExpression
-
- SFor - Class in org.elasticsearch.painless.node
-
Represents a for loop.
- SFor(Location, ANode, AExpression, AExpression, SBlock) - Constructor for class org.elasticsearch.painless.node.SFor
-
- SFunction - Class in org.elasticsearch.painless.node
-
Represents a user-defined function.
- SFunction(SFunction.FunctionReserved, Location, String, String, List<String>, List<String>, List<AStatement>, boolean) - Constructor for class org.elasticsearch.painless.node.SFunction
-
- SFunction.FunctionReserved - Class in org.elasticsearch.painless.node
-
- SHIFT_OPERATOR - Static variable in class org.elasticsearch.painless.DefBootstrap
-
static bootstrap parameter indicating a shift operator, e.g.
- shortType - Variable in class org.elasticsearch.painless.Definition
-
- ShortType - Variable in class org.elasticsearch.painless.Definition
-
- shouldFilter(StackTraceElement) - Method in interface org.elasticsearch.painless.PainlessScript
-
returns true for methods that are part of the runtime
- SIf - Class in org.elasticsearch.painless.node
-
Represents an if block.
- SIf(Location, AExpression, SBlock) - Constructor for class org.elasticsearch.painless.node.SIf
-
- SIfElse - Class in org.elasticsearch.painless.node
-
Represents an if/else block.
- SIfElse(Location, AExpression, SBlock, SBlock) - Constructor for class org.elasticsearch.painless.node.SIfElse
-
- SimpleChecksAdapter - Class in org.elasticsearch.painless
-
A CheckClassAdapter that does not use setAccessible to try to access private fields of Label!
- SimpleChecksAdapter(ClassVisitor) - Constructor for class org.elasticsearch.painless.SimpleChecksAdapter
-
- singleLineToString(Object...) - Method in class org.elasticsearch.painless.node.ANode
-
Build
ANode.toString() for a node without inserting line breaks between the sub-nodes.
- singleLineToString(Collection<? extends Object>) - Method in class org.elasticsearch.painless.node.ANode
-
Build
ANode.toString() for a node without inserting line breaks between the sub-nodes.
- singleLineToStringWithOptionalArgs(Collection<? extends ANode>, Object...) - Method in class org.elasticsearch.painless.node.ANode
-
Build
ANode.toString() for a node that optionally ends in
(Args some arguments here).
- split(Collection<T>, Predicate<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Splits all items into two collections based on the predicate.
- SReturn - Class in org.elasticsearch.painless.node
-
Represents a return statement.
- SReturn(Location, AExpression) - Constructor for class org.elasticsearch.painless.node.SReturn
-
- SSource - Class in org.elasticsearch.painless.node
-
The root of all Painless trees.
- SSource(ScriptClassInfo, CompilerSettings, String, String, Printer, SSource.MainMethodReserved, Location, List<SFunction>, Globals, List<AStatement>) - Constructor for class org.elasticsearch.painless.node.SSource
-
- SSource.MainMethodReserved - Class in org.elasticsearch.painless.node
-
- SSource.Reserved - Interface in org.elasticsearch.painless.node
-
Tracks derived arguments and the loop counter.
- STACK_OVERFLOW_ERROR_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- standard(Definition.Type, Definition.Type, boolean) - Static method in class org.elasticsearch.painless.Definition.Cast
-
Create a standard cast with no boxing/unboxing.
- StashingTokenFactory<T extends Token> - Class in org.elasticsearch.painless.antlr
-
Token factory that preserves that last non-whitespace token so you can do token level lookbehind in the lexer.
- StashingTokenFactory(<any>) - Constructor for class org.elasticsearch.painless.antlr.StashingTokenFactory
-
- staticMembers - Variable in class org.elasticsearch.painless.Definition.Struct
-
- staticMethods - Variable in class org.elasticsearch.painless.Definition.Struct
-
- SThrow - Class in org.elasticsearch.painless.node
-
Represents a throw statement.
- SThrow(Location, AExpression) - Constructor for class org.elasticsearch.painless.node.SThrow
-
- STORE - Static variable in class org.elasticsearch.painless.DefBootstrap
-
static bootstrap parameter indicating a dynamic store (setter), e.g.
- STRING_TO_CHAR - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRING_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_BOOLEAN - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_CHAR - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_DOUBLE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_FLOAT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_INT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_LONG - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_OBJECT - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_APPEND_STRING - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_CONSTRUCTOR - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_TOSTRING - Static variable in class org.elasticsearch.painless.WriterConstants
-
- STRINGBUILDER_TYPE - Static variable in class org.elasticsearch.painless.WriterConstants
-
- StringTochar(String) - Static method in class org.elasticsearch.painless.Utility
-
- StringType - Variable in class org.elasticsearch.painless.Definition
-
- struct - Variable in class org.elasticsearch.painless.Definition.Type
-
- STry - Class in org.elasticsearch.painless.node
-
Represents the try block as part of a try-catch block.
- STry(Location, SBlock, List<SCatch>) - Constructor for class org.elasticsearch.painless.node.STry
-
- sum(Iterable<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Sums the result of an Iterable
- sum(Iterable<T>, ToDoubleFunction<T>) - Static method in class org.elasticsearch.painless.api.Augmentation
-
Sums the result of applying a function to each item of an Iterable.
- SWhile - Class in org.elasticsearch.painless.node
-
Represents a while loop.
- SWhile(Location, AExpression, SBlock) - Constructor for class org.elasticsearch.painless.node.SWhile
-
- symbol - Variable in enum org.elasticsearch.painless.Operation
-
- synthetic - Variable in class org.elasticsearch.painless.node.SFunction
-