Class GrammarElementDeclarationOrder
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterImpl
-
- org.eclipse.xtext.serializer.analysis.GrammarElementDeclarationOrder
-
- All Implemented Interfaces:
java.util.Comparator<org.eclipse.emf.ecore.EObject>,org.eclipse.emf.common.notify.Adapter,org.eclipse.emf.common.notify.Adapter.Internal
public class GrammarElementDeclarationOrder extends org.eclipse.emf.common.notify.impl.AdapterImpl implements java.util.Comparator<org.eclipse.emf.ecore.EObject>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<org.eclipse.emf.ecore.EObject,java.lang.Integer>elementIDCache
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrammarElementDeclarationOrder(Grammar grammar)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.eclipse.emf.ecore.EObject o1, org.eclipse.emf.ecore.EObject o2)static GrammarElementDeclarationOrderget(Grammar grammar)intgetElementID(org.eclipse.emf.ecore.EObject ele)<T> java.util.Comparator<T>toComparator(com.google.common.base.Function<T,org.eclipse.emf.ecore.EObject> elementAccess)-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget
-
-
-
-
Constructor Detail
-
GrammarElementDeclarationOrder
protected GrammarElementDeclarationOrder(Grammar grammar)
-
-
Method Detail
-
get
public static GrammarElementDeclarationOrder get(Grammar grammar)
-
compare
public int compare(org.eclipse.emf.ecore.EObject o1, org.eclipse.emf.ecore.EObject o2)- Specified by:
comparein interfacejava.util.Comparator<org.eclipse.emf.ecore.EObject>
-
getElementID
public int getElementID(org.eclipse.emf.ecore.EObject ele)
-
toComparator
public <T> java.util.Comparator<T> toComparator(com.google.common.base.Function<T,org.eclipse.emf.ecore.EObject> elementAccess)
-
-