Package io.codemodder.javaparser
Class ASTExpectations.MethodCallExpectation
java.lang.Object
io.codemodder.javaparser.ASTExpectations.MethodCallExpectation
- Enclosing class:
- ASTExpectations
A type for querying and filtering method call expressions.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodCallExpectation
(Optional<com.github.javaparser.ast.expr.MethodCallExpr> methodCallExpr) -
Method Summary
Modifier and TypeMethodDescriptionReturn an expectation that asserts the method call is initializing a variable value.Optional<com.github.javaparser.ast.expr.MethodCallExpr>
result()
Return an expectation that asserts the method call has 1+ arguments.withArgumentsSize
(int expectedSize) Return an expectation that asserts the method call has a specific number of arguments.Return an expectation that asserts the method call has a specific name.
-
Constructor Details
-
MethodCallExpectation
public MethodCallExpectation(Optional<com.github.javaparser.ast.expr.MethodCallExpr> methodCallExpr)
-
-
Method Details
-
result
-
withArgumentsSize
Return an expectation that asserts the method call has a specific number of arguments. -
withName
Return an expectation that asserts the method call has a specific name. -
withArguments
Return an expectation that asserts the method call has 1+ arguments. -
initializingVariable
Return an expectation that asserts the method call is initializing a variable value.
-