Class InterfaceMethodDecider

java.lang.Object
org.emftext.language.java.resolver.decider.AbstractDecider
org.emftext.language.java.resolver.decider.InterfaceMethodDecider
All Implemented Interfaces:
IResolutionTargetDecider

public class InterfaceMethodDecider extends AbstractDecider
To resolve annotation attributes.
  • Constructor Details

    • InterfaceMethodDecider

      public InterfaceMethodDecider()
  • Method Details

    • canFindTargetsFor

      public boolean canFindTargetsFor(EObject referenceContainer, EReference containingReference)
      Description copied from interface: IResolutionTargetDecider
      Determines if the decider is of any use for the given resolving procedure.
      Returns:
      decision
    • 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
      Overrides:
      getAdditionalCandidates in class AbstractDecider
      Returns:
      null (corresponds to empty list) by default
    • isPossibleTarget

      public boolean isPossibleTarget(String id, EObject element)
      Description copied from interface: IResolutionTargetDecider
      Decides if the given element is a (possibly the final) target.
      Returns:
      decision
    • containsCandidates

      public boolean containsCandidates(EObject container, EReference containingReference)
      Description copied from interface: IResolutionTargetDecider
      Determines if the decider needs to look into the given reference.
      Returns:
      decision