org.eclipse.xtext.service
Class AbstractElementFinder

java.lang.Object
  extended by 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

Nested Class Summary
static class AbstractElementFinder.AbstractEnumRuleElementFinder
           
static class AbstractElementFinder.AbstractGrammarElementFinder
           
static class AbstractElementFinder.AbstractParserRuleElementFinder
           
 
Constructor Summary
AbstractElementFinder()
           
 
Method Summary
 java.util.List<Assignment> findAssignments(AbstractRule... calledRules)
           
protected
<T> java.util.List<T>
findByNestedRuleCall(java.lang.Class<T> clazz, AbstractRule... rule)
           
 java.util.List<CrossReference> findCrossReferences(AbstractRule... rule)
           
 java.util.List<CrossReference> findCrossReferences(org.eclipse.emf.ecore.EClassifier... targetEClassifiers)
           
 java.util.List<Pair<Keyword,Keyword>> findKeywordPairs(java.lang.String leftKw, java.lang.String rightKw)
           
 java.util.List<Keyword> findKeywords(java.lang.String... keywords)
           
 java.util.List<RuleCall> findRuleCalls(AbstractRule... rules)
           
protected abstract  java.lang.Iterable<? extends AbstractRule> getRules()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractElementFinder

public AbstractElementFinder()
Method Detail

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()