Class DeclarationFinder

All Implemented Interfaces:
ICustomDatatypeVisitor, IModelVisitor

public class DeclarationFinder extends AbstractDeclarationFinder
This class locates all top-level DecisionVariableDeclaration in a project.
Author:
beck, El-Sharkawy
  • Field Details

  • Constructor Details

    • DeclarationFinder

      public DeclarationFinder(Project project, FilterType filterType, IDatatype type)
      Constructor for specifying whether search results should be filtered regarding the specified IDatatype. Will only find toplevel declarations.
      Parameters:
      project - The project where all DecisionVariableDeclarations should be found.
      filterType - Specifies whether project imports shall be considered or not.
      type - If type is not null only declarations matching the specified type will be found
    • DeclarationFinder

      public DeclarationFinder(Project project, FilterType filterType, IDatatype type, boolean onlyToplevel)
      Constructor for specifying whether search results should be filtered regarding the specified IDatatype and whether only toplevel variables should be retrieved.
      Parameters:
      project - The project where all DecisionVariableDeclarations should be found.
      filterType - Specifies whether project imports shall be considered or not.
      type - If type is not null only declarations matching the specified type will be found
      onlyToplevel - true only toplevel declarations will be found, false will also consider declarations inside compounds.
  • Method Details