| Modifier and Type | Field and Description |
|---|---|
| protected final ReaderSource | |
| protected final SourceUnit |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected String | Returns: the source the closure was created froma closure expression)Converts a ClosureExpression into the String source. |
| protected abstract boolean | |
| protected abstract boolean | |
| public void | visitMethodCallExpression(MethodCallExpression
the method call expression that may or may not be an AstBuilder 'from code' invocation. call)Overrides org. Implements org. |
| source | back to summary |
|---|---|
| protected final ReaderSource source | |
| sourceUnit | back to summary |
|---|---|
| protected final SourceUnit sourceUnit | |
| MethodInvocationTrap | back to summary |
|---|---|
| public MethodInvocationTrap(ReaderSource source, SourceUnit sourceUnit) | |
| addError | back to summary |
|---|---|
| protected void addError(String msg, ASTNode expr) Reports an error back to the source unit. | |
| convertClosureToSource | back to summary |
|---|---|
| protected String convertClosureToSource(ClosureExpression expression) Converts a ClosureExpression into the String source.
| |
| handleTargetMethodCallExpression | back to summary |
|---|---|
| protected abstract boolean handleTargetMethodCallExpression(MethodCallExpression call) | |
| isBuildInvocation | back to summary |
|---|---|
| protected abstract boolean isBuildInvocation(MethodCallExpression call) | |
| visitMethodCallExpression | back to summary |
|---|---|
| public void visitMethodCallExpression(MethodCallExpression call) Overrides org. Implements org. Attempts to find AstBuilder 'from code' invocations. When found, converts them into calls to the 'from string' approach.
| |