Class NoMacros
- java.lang.Object
-
- weka.core.expressionlanguage.common.NoMacros
-
- All Implemented Interfaces:
MacroDeclarations
public class NoMacros extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacrogetMacro(java.lang.String name)Tries to fetch a macro.booleanhasMacro(java.lang.String name)Whether the macro is declared.
-
-
-
Method Detail
-
hasMacro
public boolean hasMacro(java.lang.String name)
Whether the macro is declared. Always returnsfalse- Specified by:
hasMacroin interfaceMacroDeclarations- Parameters:
name- name of the macro- Returns:
- whether the macro is declared. Always
false.
-
getMacro
public Macro getMacro(java.lang.String name)
Tries to fetch a macro. Will always fail. The same invariant ofMacroDeclarationsapplies here too.- Specified by:
getMacroin interfaceMacroDeclarations- Parameters:
name- name of the macro- Returns:
- nothing
-
-