Class LocalVariableDecider
java.lang.Object
org.emftext.language.java.resolver.decider.AbstractDecider
org.emftext.language.java.resolver.decider.LocalVariableDecider
- All Implemented Interfaces:
IResolutionTargetDecider
A decider that looks for local variable declarations.
-
Field Summary
Fields inherited from class org.emftext.language.java.resolver.decider.AbstractDecider
active -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFindTargetsFor(EObject referenceContainer, EReference containingReference) Determines if the decider is of any use for the given resolving procedure.booleancontainsCandidates(EObject container, EReference containingReference) Determines if the decider needs to look into the given reference.booleanDefines, if the scoping for this decider allows to look behind the point where the reference, for which the target is searched, was defined.booleanisPossibleTarget(String id, EObject element) Decides if the given element is a (possibly the final) target.booleanDetermines if references given element, which is a child of the elements visited by default in the tree traversing, should also be considered.Methods inherited from class org.emftext.language.java.resolver.decider.AbstractDecider
activate, deactivate, getAdditionalCandidates, isActive, isSure, reset
-
Constructor Details
-
LocalVariableDecider
public LocalVariableDecider()
-
-
Method Details
-
continueAfterReference
public boolean continueAfterReference()Description copied from interface:IResolutionTargetDeciderDefines, 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:
continueAfterReferencein interfaceIResolutionTargetDecider- Overrides:
continueAfterReferencein classAbstractDecider- Returns:
- true by default
-
isPossibleTarget
Description copied from interface:IResolutionTargetDeciderDecides if the given element is a (possibly the final) target.- Returns:
- decision
-
containsCandidates
Description copied from interface:IResolutionTargetDeciderDetermines if the decider needs to look into the given reference.- Returns:
- decision
-
walkInto
Description copied from interface:IResolutionTargetDeciderDetermines if references given element, which is a child of the elements visited by default in the tree traversing, should also be considered.- Specified by:
walkIntoin interfaceIResolutionTargetDecider- Overrides:
walkIntoin classAbstractDecider- Returns:
- false by default
-
canFindTargetsFor
Description copied from interface:IResolutionTargetDeciderDetermines if the decider is of any use for the given resolving procedure.- Returns:
- decision
-