Modifiers | Name | Description |
---|---|---|
protected ReaderSource |
source |
|
protected SourceUnit |
sourceUnit |
Constructor and description |
---|
MethodInvocationTrap
(ReaderSource source, SourceUnit sourceUnit) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
addError(String msg, ASTNode expr) Reports an error back to the source unit. |
|
protected String |
convertClosureToSource(ClosureExpression expression) Converts a ClosureExpression into the String source. |
|
protected boolean |
handleTargetMethodCallExpression(MethodCallExpression call) |
|
protected boolean |
isBuildInvocation(MethodCallExpression call) |
|
void |
visitMethodCallExpression(MethodCallExpression call) Attempts to find AstBuilder 'from code' invocations. |
Reports an error back to the source unit.
msg
- the error messageexpr
- the expression that caused the error message.Converts a ClosureExpression into the String source.
expression
- a closureAttempts to find AstBuilder 'from code' invocations. When found, converts them into calls to the 'from string' approach.
call
- the method call expression that may or may not be an AstBuilder 'from code' invocation.Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.