Package org.codehaus.groovy.ast.expr
Interface MethodCall
- All Known Implementing Classes:
ConstructorCallExpression,MethodCallExpression,StaticMethodCallExpression
public interface MethodCall
Interface defining common methods for method calls.
- Since:
- 2.1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the argument expression.Returns the method name as source text.Returns the receiver of the call.getText()Returns the source text of the call.
-
Method Details
-
getReceiver
ASTNode getReceiver()Returns the receiver of the call.- Returns:
- the receiver node
-
getMethodAsString
String getMethodAsString()Returns the method name as source text.- Returns:
- the name, or null when the call has no constant name
-
getArguments
Expression getArguments()Returns the argument expression.- Returns:
- the arguments
-
getText
String getText()Returns the source text of the call.- Returns:
- the call text
-