Interface IJavaSynchronizedBlock

All Superinterfaces:
IJavaCompound, IJavaElement, IJavaExpression, IJavaStatement

@Ser public interface IJavaSynchronizedBlock extends IJavaCompound
Java AST interface to represent a synchronized block of code.

Example:

 synchronized(lockVar) {
     ...
 }
 
  • Method Details

    • getLock

      IJavaExpression getLock()
      Get the lock
      Returns:
      the lock
    • setLock

      void setLock(IJavaExpression lock)
      Set the lock.
      Parameters:
      lock -
    • getBody

      IJavaBlock getBody()
      Get the body.
      Returns:
      the body of code
    • setBody

      void setBody(IJavaBlock b)
      Set the body.
      Parameters:
      b -