Interface Macro

  • All Known Implementing Classes:
    IfElseMacro, InstancesHelper, JavaMacro

    public interface Macro
    Interface for compile time macros to enable meta programming

    Because macros have direct access to the AST (abstract syntax tree) they can rewrite it as they please.
    Version:
    $Revision: 1000 $
    Author:
    Benjamin Weber ( benweber at student dot ethz dot ch )
    • Method Detail

      • evaluate

        Node evaluate​(Node... nodes)
               throws SemanticException
        Applies a macro to a set of parameter nodes.
        Parameters:
        nodes - the nodes this macro should be applied to
        Returns:
        an AST node returned by the macro
        Throws:
        SemanticException