Class AbstractDecider

    • Field Detail

      • active

        protected boolean active
    • Constructor Detail

      • AbstractDecider

        public AbstractDecider()
    • Method Detail

      • continueAfterReference

        public boolean continueAfterReference()
        Description copied from interface: IResolutionTargetDecider
        Defines, if the scoping for this decider allows to look behind the point where the reference, for which the target is searched, was defined.
        Specified by:
        continueAfterReference in interface IResolutionTargetDecider
        Returns:
        true by default
      • walkInto

        public boolean walkInto​(EObject element)
        Description copied from interface: IResolutionTargetDecider
        Determines if references given element, which is a child of the elements visited by default in the tree traversing, should also be considered.
        Specified by:
        walkInto in interface IResolutionTargetDecider
        Parameters:
        element -
        Returns:
        false by default
      • getAdditionalCandidates

        public EList<? extends EObject> getAdditionalCandidates​(String identifier,
                                                                EObject container)
        Description copied from interface: IResolutionTargetDecider
        Allows for the decider to provide additional target candidates that are not directly contained in the traversed model tree. The additional candidates will be inserted into the scope behind the children of the given container.
        Specified by:
        getAdditionalCandidates in interface IResolutionTargetDecider
        Parameters:
        identifier -
        container -
        Returns:
        null (corresponds to empty list) by default
      • isSure

        public boolean isSure()
        Description copied from interface: IResolutionTargetDecider
        Should return true, if the last time isPossibleTarget() returned true was the final decision (i.e., traversal can be stopped).
        Specified by:
        isSure in interface IResolutionTargetDecider
        Returns:
        true by default
      • isActive

        public boolean isActive()
        Implements the interface specification. Do not override.
        Specified by:
        isActive in interface IResolutionTargetDecider
        Returns:
        true if the decider is active. false otherwise.