Class FreezeBlockFinder

All Implemented Interfaces:
ICustomDatatypeVisitor, IModelVisitor

public class FreezeBlockFinder extends AbstractFrozenElementsFinder
Finds all freeze blocks in a given project.
Author:
El-Sharkawy
  • Field Details

  • Constructor Details

    • FreezeBlockFinder

      public FreezeBlockFinder(Project project, FilterType filtertype)
      Default constructor for this class.
      Parameters:
      project - The project which should be inspected.
      filtertype - Specifies whether imports shall be considered or not.
  • Method Details

    • getFreezeBlocks

      public List<FreezeBlock> getFreezeBlocks()
      Returns a list of all freeze blocks in the specified project.
      Returns:
      A maybe empty list of existing freeze blocks.
    • visitFreezeBlock

      public void visitFreezeBlock(FreezeBlock freeze)
      Description copied from interface: IModelVisitor
      Method for visiting a freeze block.
      Parameters:
      freeze - The freeze block which should be visited.
    • visitCompoundAccessStatement

      public void visitCompoundAccessStatement(CompoundAccessStatement access)
      Description copied from interface: IModelVisitor
      Visits a compound access statement (may occur in freeze blocks.
      Parameters:
      access - the access statement