Package weka.core.expressionlanguage.common

# Class NoMacros

java.lang.Object
weka.core.expressionlanguage.common.NoMacros

All Implemented Interfaces:
  `MacroDeclarations`

public class NoMacros extends Object implements MacroDeclarations
A macro declarations that contains no macros at all

Version:
  $Revision: 1000 $
Author:
  Benjamin Weber ( benweber at student dot ethz dot ch )

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NoMacros()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Macro`
  `getMacro(String name)`
  Tries to fetch a macro.
  `boolean`
  `hasMacro(String name)`
  Whether the macro is declared.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NoMacros

    public NoMacros()

- ## Method Details

  - ### hasMacro

    public boolean hasMacro(String name)
    Whether the macro is declared. Always returns `false`
    Specified by:
      `hasMacro` in interface `MacroDeclarations`
    Parameters:
      `name` - name of the macro
    Returns:
      whether the macro is declared. Always `false`.

  - ### getMacro

    public Macro getMacro(String name)
    Tries to fetch a macro. Will always fail. The same invariant of `MacroDeclarations` applies here too.
    Specified by:
      `getMacro` in interface `MacroDeclarations`
    Parameters:
      `name` - name of the macro
    Returns:
      nothing