java.lang.Object
io.codemodder.javaparser.ASTExpectations.VariableDeclarationExprExpectation
- Enclosing class:
- ASTExpectations
public static class ASTExpectations.VariableDeclarationExprExpectation
extends Object
A type for querying and filtering variable declaration(s).
-
Method Summary
Optional<com.github.javaparser.ast.expr.VariableDeclarationExpr>
Return an expectation that asserts the local variable declaration has only a single variable.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
toBeSingleLocalVariableDefinition
Return an expectation that asserts the local variable declaration has only a single variable.
-
result
public Optional<com.github.javaparser.ast.expr.VariableDeclarationExpr> result()