Class FrozenElementsFinder

All Implemented Interfaces:
ICustomDatatypeVisitor, IModelVisitor

public class FrozenElementsFinder extends AbstractFrozenElementsFinder
This class searches through a project (and its imports) for finding frozen elements.
Author:
El-Sharkawy
  • Field Details

  • Constructor Details

    • FrozenElementsFinder

      public FrozenElementsFinder(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

    • getFrozenElements

      public List<IFreezable> getFrozenElements()
      Returns all discovered frozen elements.
      Returns:
      All frozen elements.
    • getFreezeBlock

      public FreezeBlock getFreezeBlock(IFreezable freezable)
      Returns the freeze block to the given freezable.
      Parameters:
      freezable - the freezable
      Returns:
      the freeze block (if also in getFrozenElements(), null else)
    • 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