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 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