org.eclipse.ocl.examples.codegen.utilities
Class EquivalenceUtils

java.lang.Object
  extended by org.eclipse.ocl.examples.codegen.utilities.EquivalenceUtils

public class EquivalenceUtils
extends java.lang.Object

EquivalenceUtils provides the bodoes for many of the isEquivalentToInternal operations. These return:
true if two values are definitely the same.
false if two values are definitely different.
null if the values could be the same or different.


Constructor Summary
EquivalenceUtils()
           
 
Method Summary
static java.lang.Boolean isEquivalent(CGCallExp thisValue, CGCallExp thatValue)
           
static java.lang.Boolean isEquivalent(CGCollectionExp thisValue, CGCollectionExp thatValue)
           
static java.lang.Boolean isEquivalent(CGCollectionPart thisValue, CGCollectionPart thatValue)
           
static java.lang.Boolean isEquivalent(CGConstructorPart thisValue, CGConstructorPart thatValue)
           
static java.lang.Boolean isEquivalent(CGEcoreClassConstructorExp thisValue, CGEcoreClassConstructorExp thatValue)
           
static java.lang.Boolean isEquivalent(CGEcoreDataTypeConstructorExp thisValue, CGEcoreDataTypeConstructorExp thatValue)
           
static java.lang.Boolean isEquivalent(CGIfExp thisValue, CGIfExp thatValue)
           
static java.lang.Boolean isEquivalent(CGIterationCallExp thisValue, CGIterationCallExp thatValue)
           
static java.lang.Boolean isEquivalent(CGLetExp thisValue, CGLetExp thatValue)
           
static java.lang.Boolean isEquivalent(CGNavigationCallExp thisValue, CGNavigationCallExp thatValue)
           
static java.lang.Boolean isEquivalent(CGNumber thisValue, CGNumber thatValue)
           
static java.lang.Boolean isEquivalent(CGOperationCallExp thisValue, CGOperationCallExp thatValue)
           
static java.lang.Boolean isEquivalent(CGTupleExp thisValue, CGTupleExp thatValue)
           
static java.lang.Boolean isEquivalent(CGTuplePart thisValue, CGTuplePart thatValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquivalenceUtils

public EquivalenceUtils()
Method Detail

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGCallExp thisValue,
                                                      @NonNull
                                                      CGCallExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGCollectionExp thisValue,
                                                      @NonNull
                                                      CGCollectionExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGCollectionPart thisValue,
                                                      @NonNull
                                                      CGCollectionPart thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGConstructorPart thisValue,
                                                      @NonNull
                                                      CGConstructorPart thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGEcoreClassConstructorExp thisValue,
                                                      @NonNull
                                                      CGEcoreClassConstructorExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGEcoreDataTypeConstructorExp thisValue,
                                                      @NonNull
                                                      CGEcoreDataTypeConstructorExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGIfExp thisValue,
                                                      @NonNull
                                                      CGIfExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGIterationCallExp thisValue,
                                                      @NonNull
                                                      CGIterationCallExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGLetExp thisValue,
                                                      @NonNull
                                                      CGLetExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGNumber thisValue,
                                                      @NonNull
                                                      CGNumber thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGOperationCallExp thisValue,
                                                      @NonNull
                                                      CGOperationCallExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGNavigationCallExp thisValue,
                                                      @NonNull
                                                      CGNavigationCallExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGTupleExp thisValue,
                                                      @NonNull
                                                      CGTupleExp thatValue)

isEquivalent

@Nullable
public static java.lang.Boolean isEquivalent(@NonNull
                                                      CGTuplePart thisValue,
                                                      @NonNull
                                                      CGTuplePart thatValue)