2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 package org
.apache
.poi
.hssf
.record
.formula
.functions
;
20 import org
.apache
.poi
.hssf
.record
.formula
.eval
.ErrorEval
;
21 import org
.apache
.poi
.hssf
.record
.formula
.eval
.Eval
;
22 import org
.apache
.poi
.hssf
.record
.formula
.eval
.ValueEval
;
23 import org
.apache
.poi
.hssf
.usermodel
.HSSFSheet
;
24 import org
.apache
.poi
.hssf
.usermodel
.HSSFWorkbook
;
27 * Implementation for Excel function INDIRECT<p/>
29 * INDIRECT() returns the cell or area reference denoted by the text argument.<p/>
32 * <b>INDIRECT</b>(<b>ref_text</b>,isA1Style)<p/>
34 * <b>ref_text</b> a string representation of the desired reference as it would normally be written
35 * in a cell formula.<br/>
36 * <b>isA1Style</b> (default TRUE) specifies whether the ref_text should be interpreted as A1-style
42 public final class Indirect
implements FreeRefFunction
{
44 public ValueEval
evaluate(Eval
[] args
, int srcCellRow
, short srcCellCol
, HSSFWorkbook workbook
, HSSFSheet sheet
) {
45 // TODO - implement INDIRECT()
46 return ErrorEval
.FUNCTION_NOT_IMPLEMENTED
;