Class LocalVariableDecider

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

public class LocalVariableDecider extends AbstractDecider
A decider that looks for local variable declarations.
  • Constructor Details

    • LocalVariableDecider

      public LocalVariableDecider()
  • Method Details

    • 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
      Overrides:
      continueAfterReference in class AbstractDecider
      Returns:
      true 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
    • 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
      Overrides:
      walkInto in class AbstractDecider
      Returns:
      false by default
    • 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