
org.apache.commons.jexl3.JexlScript Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-jexl3 Show documentation
Show all versions of commons-jexl3 Show documentation
The Apache Commons JEXL library is an implementation of the JSTL Expression Language with extensions.
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.jexl3;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Callable;
/**
* A JEXL Script.
*
* A script is some valid JEXL syntax to be executed with a given set of {@link JexlContext} variables.
*
* A script is a group of statements, separated by semicolons.
*
* The statements can be {@code blocks} (curly braces containing code),
* Control statements such as {@code if} and {@code while}
* as well as expressions and assignment statements.
*
* Do not create classes that implement this interface; delegate or compose instead.
*
* @since 1.1
*/
public interface JexlScript {
/**
* Creates a Callable from this script.
*
* This allows to submit it to an executor pool and provides support for asynchronous calls.
* The interpreter will handle interruption/cancellation gracefully if needed.
*
* @param context the context
* @return the callable
* @since 2.1
*/
Callable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy