Package io.codemodder.javaparser
Class ASTExpectations.NodeExpectation
java.lang.Object
io.codemodder.javaparser.ASTExpectations.NodeExpectation
- Enclosing class:
- ASTExpectations
A type for querying and filtering generic AST nodes.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NodeExpectation
public NodeExpectation(com.github.javaparser.ast.Node node)
-
-
Method Details
-
withBlockParent
Return an expectation that asserts the parent node is aBlockStmt. -
toBeVariableDeclarationStatement
Return an expectation that asserts the node is anExpressionStmtwith aVariableDeclarationExprfor its expression. -
result
-