PageRenderTime 29ms CodeModel.GetById 17ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/libformula-1.1.3/source/org/pentaho/reporting/libraries/formula/function/information/IsErrFunctionDescription.java

#
Java | 67 lines | 34 code | 10 blank | 23 comment | 0 complexity | b3782cd5d9a05ff9436247b3aa1309f6 MD5 | raw file
Possible License(s): LGPL-2.1
 1/*
 2 * This program is free software; you can redistribute it and/or modify it under the
 3 * terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
 4 * Foundation.
 5 *
 6 * You should have received a copy of the GNU Lesser General Public License along with this
 7 * program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
 8 * or from the Free Software Foundation, Inc.,
 9 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
12 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU Lesser General Public License for more details.
14 *
15 * Copyright (c) 2006 - 2009 Pentaho Corporation and Contributors.  All rights reserved.
16 */
17
18package org.pentaho.reporting.libraries.formula.function.information;
19
20import org.pentaho.reporting.libraries.formula.function.AbstractFunctionDescription;
21import org.pentaho.reporting.libraries.formula.function.FunctionCategory;
22import org.pentaho.reporting.libraries.formula.typing.Type;
23import org.pentaho.reporting.libraries.formula.typing.coretypes.AnyType;
24import org.pentaho.reporting.libraries.formula.typing.coretypes.LogicalType;
25
26/**
27 * Describes IsErrFunction function.
28 * @see IsErrFunction
29 *
30 * @author Cedric Pronzato
31 *
32 */
33public class IsErrFunctionDescription extends AbstractFunctionDescription
34{
35  private static final long serialVersionUID = 8746229705220584237L;
36
37  public IsErrFunctionDescription()
38  {
39    super("ISERR", "org.pentaho.reporting.libraries.formula.function.information.IsErr-Function");
40  }
41
42  public FunctionCategory getCategory()
43  {
44    return InformationFunctionCategory.CATEGORY;
45  }
46
47  public int getParameterCount()
48  {
49    return 1;
50  }
51
52  public Type getParameterType(final int position)
53  {
54    return AnyType.TYPE;
55  }
56
57  public Type getValueType()
58  {
59    return LogicalType.TYPE;
60  }
61
62  public boolean isParameterMandatory(final int position)
63  {
64    return true;
65  }
66
67}