Class VariableDeclarationExprHepers

java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.helpers.VariableDeclarationExprHepers

public class VariableDeclarationExprHepers extends Object
Helps working with VariableDeclarationExpr
Author:
Benoit Lacelle
  • 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;