Class EnumConstantDecider
java.lang.Object
org.emftext.language.java.resolver.decider.AbstractDecider
org.emftext.language.java.resolver.decider.EnumConstantDecider
- All Implemented Interfaces:
IResolutionTargetDecider
A decider that looks for enumeration constants.
-
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.getAdditionalCandidates(String identifier, EObject container) Allows for the decider to provide additional target candidates that are not directly contained in the traversed model tree.booleanisPossibleTarget(String id, EObject element) Decides if the given element is a (possibly the final) target.Methods inherited from class org.emftext.language.java.resolver.decider.AbstractDecider
activate, continueAfterReference, deactivate, isActive, isSure, reset, walkInto
-
Constructor Details
-
EnumConstantDecider
public EnumConstantDecider()
-
-
Method Details
-
isPossibleTarget
Description copied from interface:IResolutionTargetDeciderDecides if the given element is a (possibly the final) target.- Returns:
- decision
-
getAdditionalCandidates
Description copied from interface:IResolutionTargetDeciderAllows 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:
getAdditionalCandidatesin interfaceIResolutionTargetDecider- Overrides:
getAdditionalCandidatesin classAbstractDecider- Returns:
- null (corresponds to empty list) by default
-
containsCandidates
Description copied from interface:IResolutionTargetDeciderDetermines if the decider needs to look into the given reference.- Returns:
- decision
-
canFindTargetsFor
Description copied from interface:IResolutionTargetDeciderDetermines if the decider is of any use for the given resolving procedure.- Returns:
- decision
-