Class VariableDeclarationExprHepers
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.helpers.VariableDeclarationExprHepers
Helps working with
VariableDeclarationExpr
- Author:
- Benoit Lacelle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<com.github.javaparser.ast.expr.VariableDeclarationExpr>
optSimpleDeclaration
(com.github.javaparser.ast.stmt.Statement stmt)
-
Constructor Details
-
VariableDeclarationExprHepers
protected VariableDeclarationExprHepers()
-
-
Method Details
-
optSimpleDeclaration
public static Optional<com.github.javaparser.ast.expr.VariableDeclarationExpr> optSimpleDeclaration(com.github.javaparser.ast.stmt.Statement stmt) - Parameters:
stmt
-- Returns:
- the
VariableDeclarationExpr
if stmt is semantically equivalent to a simple VariableDeclarationExpr;
-