Package de.monticore.types3.util
Class SymTypeExpressionComparator
java.lang.Object
de.monticore.types3.util.SymTypeExpressionComparator
- All Implemented Interfaces:
Comparator<SymTypeExpression>
A Helper to create (Tree)Maps.
Mostly, this tries to avoid costly comparisons which require printing.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intcompareArray(SymTypeArray o1, SymTypeArray o2) protected intprotected intprotected intprotected intprotected <T extends Comparable<T>>
intcompareLists(List<? extends T> o1, List<? extends T> o2) protected intprotected intprotected intprotected intcompareRegEx(SymTypeOfRegEx o1, SymTypeOfRegEx o2) protected <T extends Comparable<T>>
intcompareSets(Set<? extends T> o1, Set<? extends T> o2) protected intprotected intcompareSymbol(de.monticore.symboltable.ISymbol o1, de.monticore.symboltable.ISymbol o2) static intprotected intcompareTuple(SymTypeOfTuple o1, SymTypeOfTuple o2) protected intprotected intcompareUnion(SymTypeOfUnion o1, SymTypeOfUnion o2) protected intprotected static SymTypeExpressionComparatorprotected intstatic voidinit()static voidreset()protected static voidsetDelegate(SymTypeExpressionComparator newDelegate) protected voidThis is not expected to be ever called.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
delegate
-
-
Constructor Details
-
SymTypeExpressionComparator
public SymTypeExpressionComparator()
-
-
Method Details
-
compareSymTypeExpressions
-
compare
- Specified by:
comparein interfaceComparator<SymTypeExpression>
-
getOrderOfSubType
-
compareUnion
-
compareIntersection
-
compareTuple
-
compareFunction
-
compareArray
-
comparePrimitive
-
compareSIUnit
-
compareNumericWithSIUnit
protected int compareNumericWithSIUnit(SymTypeOfNumericWithSIUnit o1, SymTypeOfNumericWithSIUnit o2) -
compareRegEx
-
compareObject
-
compareGeneric
-
compareWildcard
-
compareTypeVar
-
compareInfVar
-
compareSymbol
protected int compareSymbol(de.monticore.symboltable.ISymbol o1, de.monticore.symboltable.ISymbol o2) -
compareLists
-
compareSets
-
throwUnimplemented
This is not expected to be ever called.- Throws:
UnsupportedOperationException
-
init
public static void init() -
reset
public static void reset() -
setDelegate
-
getDelegate
-