<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-22T11:34:26Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/3217" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/3217</identifier><datestamp>2017-03-21T16:03:34Z</datestamp><setSpec>com_10012_9924</setSpec><setSpec>com_10012_1</setSpec><setSpec>col_10012_9930</setSpec><setSpec>col_10012_6</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="author" authority="3fb1c594-50c9-46f5-a98c-cbc9676b841a" confidence="600">Richard, Adam</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2007-09-11T17:21:03Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2007-09-11T17:21:03Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2007-09-11T17:21:03Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">2007</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">http://hdl.handle.net/10012/3217</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract" lang="en">We present a new language feature, specified as an extension to Java. The feature is a form of dispatch, which includes and subsumes multimethods, but which is not as powerful as general predicate dispatch. It is, however, intended to be more practical and easier to use than the latter. The extension, dubbed OOMatch, allows method parameters to be specified as patterns, which are matched against the arguments to the method call. When matches occur, the method applies; if multiple methods apply, the method with the more specific pattern overrides the others.&#xd;
&#xd;
The pattern matching is very similar to that found in the &amp;quot;case&amp;quot; constructs of many functional languages, with an important&#xd;
difference: functional languages normally allow pattern matching over variant types (and other primitives such as tuples), while OOMatch allows pattern matching on Java ob jects. Indeed, the wider goal here is the study of the combination of&#xd;
functional and ob ject-oriented programming paradigms.&#xd;
&#xd;
Maintaining encapsulation while allowing pattern matching is of special importance. Class designers should have the control needed to prevent implementation details (such as private variables) from being exposed to clients of the class.&#xd;
&#xd;
We here present both an informal &amp;quot;tutorial&amp;quot; description of OOMatch, as well as a formal specification of the language, and a proof that the conditions specified guarantee run-time safety.</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en">en</dim:field>
   <dim:field mdschema="dc" element="publisher" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">predicate dispatch</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">dynamic dispatch</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">pattern matching</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">multimethods</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">Java</dim:field>
   <dim:field mdschema="dc" element="subject" qualifier="program" lang="en">Computer Science</dim:field>
   <dim:field mdschema="dc" element="title" lang="en">OOMatch: Pattern Matching as Dispatch in Java</dim:field>
   <dim:field mdschema="dc" element="type" lang="en">Master Thesis</dim:field>
   <dim:field mdschema="dc" element="pending" lang="en">false</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="department" lang="en">School of Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" lang="en">Master of Mathematics</dim:field>
   <dim:field mdschema="uws" element="typeOfResource" lang="en">Text</dim:field>
   <dim:field mdschema="uws" element="peerReviewStatus" lang="en">Unreviewed</dim:field>
   <dim:field mdschema="uws" element="scholarLevel" lang="en">Graduate</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>