View Javadoc
1 /*** 2 * Copyright 2003, 2004, 2005. CodeStreet LLC. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 7 * 8 * Unless required by applicable law or agreed to in writing, software 9 * distributed under the License is distributed on an "AS IS" BASIS, 10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 * See the License for the specific language governing permissions and 12 * limitations under the License. 13 */ 14 15 package com.codestreet.selector.parser; 16 17 import java.util.Map; 18 19 /*** 20 * Interface implemented by expression implementations. 21 * 22 * @author Jawaid Hakim. 23 */ 24 public interface IExpression 25 { 26 /*** 27 * Evaluate the expression. 28 * 29 * @param identifiers 30 * Identifier values. 31 * @return Result of the expression evaluation. 32 */ 33 Object eval(final Map identifiers); 34 35 /*** 36 * Evaluate the expression. 37 * 38 * @param provider 39 * Value provider. During evaluation of the expression callbacks 40 * are made on the value provider to get identifier values. 41 * @param corr 42 * Correlation data. Passed as-is to the value provider. 43 * @return Result evaluating the expression. 44 */ 45 Object eval(final IValueProvider provider, final Object corr); 46 }

This page was automatically generated by Maven