Class DeclarationFinder

    • Field Detail

      • visibleDeclarations

        private java.util.List<AbstractVariable> visibleDeclarations
      • hiddenDeclarations

        private java.util.List<AbstractVariable> hiddenDeclarations
      • interfaces

        private java.util.Stack<java.util.Set<AbstractVariable>> interfaces
      • onlyToplevel

        private boolean onlyToplevel
    • Constructor Detail

      • 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.