Class MacroContext
java.lang.Object
org.codehaus.groovy.macro.runtime.MacroContext
Macro method context. Every macro method must be an extension method of it.
- Since:
- 2.5.0
-
Constructor Summary
ConstructorDescriptionMacroContext
(CompilationUnit compilationUnit, SourceUnit sourceUnit, MethodCallExpression call) -
Method Summary
-
Constructor Details
-
MacroContext
public MacroContext(CompilationUnit compilationUnit, SourceUnit sourceUnit, MethodCallExpression call)
-
-
Method Details
-
getCall
- Returns:
- original method call expression
-
getSourceUnit
- Returns:
- current source unit
-
getCompilationUnit
- Returns:
- current compilation unit
-