[Java] Class MacroContext
- 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
Constructor and description |
---|
MacroContext
(CompilationUnit compilationUnit, SourceUnit sourceUnit, MethodCallExpression call) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
MethodCallExpression |
getCall() @return original method call expression | |
CompilationUnit |
getCompilationUnit() @return current compilation unit | |
SourceUnit |
getSourceUnit() @return current source unit |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public MacroContext(CompilationUnit compilationUnit, SourceUnit sourceUnit, MethodCallExpression call)
Method Detail
public MethodCallExpression getCall()
- Returns:
- original method call expression
public CompilationUnit getCompilationUnit()
- Returns:
- current compilation unit
public SourceUnit getSourceUnit()
- Returns:
- current source unit
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/macro/runtime/MacroContext.html