org.eclipse.xtext.service
Class AbstractElementFinder
java.lang.Object
org.eclipse.xtext.service.AbstractElementFinder
- Direct Known Subclasses:
- AbstractElementFinder.AbstractEnumRuleElementFinder, AbstractElementFinder.AbstractGrammarElementFinder, AbstractElementFinder.AbstractParserRuleElementFinder
public abstract class AbstractElementFinder
- extends java.lang.Object
- Author:
- Moritz Eysholdt - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractElementFinder
public AbstractElementFinder()
findAssignments
public java.util.List<Assignment> findAssignments(AbstractRule... calledRules)
findByNestedRuleCall
protected <T> java.util.List<T> findByNestedRuleCall(java.lang.Class<T> clazz,
AbstractRule... rule)
findCrossReferences
public java.util.List<CrossReference> findCrossReferences(AbstractRule... rule)
findCrossReferences
public java.util.List<CrossReference> findCrossReferences(org.eclipse.emf.ecore.EClassifier... targetEClassifiers)
findKeywordPairs
public java.util.List<Pair<Keyword,Keyword>> findKeywordPairs(java.lang.String leftKw,
java.lang.String rightKw)
findKeywords
public java.util.List<Keyword> findKeywords(java.lang.String... keywords)
findRuleCalls
public java.util.List<RuleCall> findRuleCalls(AbstractRule... rules)
getRules
protected abstract java.lang.Iterable<? extends AbstractRule> getRules()