@ Pure protected boolean isSubTypeOf ( EObject context , JvmTypeReference subType , JvmTypeReference superType ) { if ( isTypeReference ( superType ) && isTypeReference ( subType ) ) { StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner ( services , context ) ; LightweightTypeReferenceFactory factory = new LightweightTypeReferenceFactory ( owner , false ) ; LightweightTypeReference reference = factory . toLightweightReference ( subType ) ; return reference . isSubtypeOf ( superType . getType ( ) ) ; } return false ; }
Replies if the first parameter is a subtype of the second parameter .