Interface Macro
-
- All Known Implementing Classes:
IfElseMacro,InstancesHelper,JavaMacro
public interface MacroInterface 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Nodeevaluate(Node... nodes)Applies a macro to a set of parameter nodes.
-
-
-
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
-
-