PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/libformula-1.1.3/source/org/pentaho/reporting/libraries/formula/function/logical/FalseFunctionDescription.java

#
Java | 71 lines | 33 code | 10 blank | 28 comment | 0 complexity | 2e2476765d6e42d46df0e2485bd5c891 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. package org.pentaho.reporting.libraries.formula.function.logical;
  18. import org.pentaho.reporting.libraries.formula.function.AbstractFunctionDescription;
  19. import org.pentaho.reporting.libraries.formula.function.FunctionCategory;
  20. import org.pentaho.reporting.libraries.formula.typing.Type;
  21. import org.pentaho.reporting.libraries.formula.typing.coretypes.LogicalType;
  22. /**
  23. * Creation-Date: 04.11.2006, 18:28:55
  24. *
  25. * @author Thomas Morgner
  26. */
  27. public class FalseFunctionDescription extends AbstractFunctionDescription
  28. {
  29. private static final long serialVersionUID = -1846971196399484893L;
  30. public FalseFunctionDescription()
  31. {
  32. super("FALSE", "org.pentaho.reporting.libraries.formula.function.logical.False-Function");
  33. }
  34. public int getParameterCount()
  35. {
  36. return 0;
  37. }
  38. public Type getParameterType(final int position)
  39. {
  40. return LogicalType.TYPE;
  41. }
  42. public Type getValueType()
  43. {
  44. return LogicalType.TYPE;
  45. }
  46. /**
  47. * Defines, whether the parameter at the given position is mandatory. A
  48. * mandatory parameter must be filled in, while optional parameters need not
  49. * to be filled in.
  50. *
  51. * @return
  52. */
  53. public boolean isParameterMandatory(final int position)
  54. {
  55. return false;
  56. }
  57. public FunctionCategory getCategory()
  58. {
  59. return LogicalFunctionCategory.CATEGORY;
  60. }
  61. }