Class 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
      Macro getMacro​(java.lang.String name)
      Tries to fetch a macro.
      boolean hasMacro​(java.lang.String name)
      Whether the macro is declared.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoMacros

        public NoMacros()
    • Method Detail

      • hasMacro

        public boolean hasMacro​(java.lang.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​(java.lang.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