Interface InvokableStmt

All Superinterfaces:
Acceptor<StmtVisitor>, EquivTo, Stmt
All Known Implementing Classes:
JAssignStmt, JInvokeStmt

public interface InvokableStmt extends Stmt
Interface for Stmts that could invoke a different method which will be executed before the next statement is executed
  • Method Details

    • invokesStaticInitializer

      boolean invokesStaticInitializer()
      Checks if the invokable statement can potentially invoke a static initializer To cause a static initializer call, the statement contains a static method call, a new expression, or a static field reference.
      Returns:
      true if the statement can cause a static initializer call, and false if not.
    • containsInvokeExpr

      boolean containsInvokeExpr()
      Checks if the invokable statement contains a invoke expression that defines the invoke.
      Returns:
      true if the statement contains an invoke expression, false if not
    • getInvokeExpr

      Optional<AbstractInvokeExpr> getInvokeExpr()
      Returns the possible invoke expression in the invokable statement
      Returns:
      The optional contains the invoke expression of the invokable statement or is empty if there is no invoke expression.