All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.jexl2.JexlContext Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show 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.jexl2;

/**
 * Manages variables which can be referenced in a JEXL expression.
 * 

Note that JEXL may use '$jexl' and '$ujexl' variables for internal purpose; setting or getting those * variables may lead to unexpected results unless specified otherwise.

* @since 1.0 * @version $Id: JexlContext.java 1202769 2011-11-16 16:33:02Z henrib $ */ public interface JexlContext { /** * Gets the value of a variable. * @param name the variable's name * @return the value */ Object get(String name); /** * Sets the value of a variable. * @param name the variable's name * @param value the variable's value */ void set(String name, Object value); /** * Checks whether a variable is defined in this context. *

A variable may be defined with a null value; this method checks whether the * value is null or if the variable is undefined.

* @param name the variable's name * @return true if it exists, false otherwise */ boolean has(String name); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy