• Aucun résultat trouvé

A Simple Dispatch Technique for Pure Java Multi-Methods

N/A
N/A
Protected

Academic year: 2023

Partager "A Simple Dispatch Technique for Pure Java Multi-Methods"

Copied!
28
0
0

Texte intégral

(1)

HAL Id: hal-00627863

https://hal.science/hal-00627863

Submitted on 29 Sep 2011

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

A Simple Dispatch Technique for Pure Java Multi-Methods

Rémi Forax, Étienne Duris, Gilles Roussel

To cite this version:

Rémi Forax, Étienne Duris, Gilles Roussel. A Simple Dispatch Technique for Pure Java Multi- Methods. 2001. �hal-00627863�

(2)
(3)
(4)

CharacterData

EImpl CDImpl TImpl CImpl DImpl

Element Document

Node

CDATASection Text Comment

Implementation classes Document

Object Model interface specifications

(5)
(6)
(7)
(8)

int boolean

long float double

char

byte short T’

T

direct supertype of

primitive Interface

Class

Serializable Cloneable

Object

D [D

[B B

[Object I

K C

E F

J

L

(9)
(10)
(11)

Bis a supertype ofD

Object

J

D

B C K

I

m2 m3

m1

arg1arg2 arg3 T

The fact that T could be the type of ï the 2nd argument of m3 or is depicted by:

ï the 3rd argument of m1

(12)
(13)

and are not comparable

m1 m2

m2:(D,I,I) m1:(B,C,K)

more specific than m3

is

m1

m1:(B,C,K)

m3:(B,I,J) and

are not comparable

m2 m3

m2:(D,I,I)

m3:(B,I,J)

a b ? c

(14)

than specific m3 is less

m1 and m3 m1 and m3

than specific m1 is more

PO PO t

m2m1 m3

m1 m2 m3 m1 m2 m3

m1m2 m3

(15)

Object

B

D

I J

K L

C

(16)
(17)
(18)

Object

B

D

I J

K L

F C

(19)
(20)
(21)
(22)

E D

L K

B C

I J

F Object MaskM

myMethod(D d,I i1, I i2){ } myMethod(B b,C c,K k){ } myMethod(B b,I i,J j){ } }

class HostClass {

myMethod(D d,I i1,I i2){ } myMethod(D d,I i,J j){ } myMethod(C c,K k,E e){ } }

class SubHostClass extends HostClass {

PO

Dispatch tables

(23)
(24)
(25)
(26)
(27)
(28)

Références

Documents relatifs

To test whether the vesicular pool of Atat1 promotes the acetyl- ation of -tubulin in MTs, we isolated subcellular fractions from newborn mouse cortices and then assessed

Néanmoins, la dualité des acides (Lewis et Bronsted) est un système dispendieux, dont le recyclage est une opération complexe et par conséquent difficilement applicable à

Cette mutation familiale du gène MME est une substitution d’une base guanine par une base adenine sur le chromosome 3q25.2, ce qui induit un remplacement d’un acide aminé cystéine

En ouvrant cette page avec Netscape composer, vous verrez que le cadre prévu pour accueillir le panoramique a une taille déterminée, choisie par les concepteurs des hyperpaysages

Chaque séance durera deux heures, mais dans la seconde, seule la première heure sera consacrée à l'expérimentation décrite ici ; durant la seconde, les élèves travailleront sur

A time-varying respiratory elastance model is developed with a negative elastic component (E demand ), to describe the driving pressure generated during a patient initiated

The aim of this study was to assess, in three experimental fields representative of the various topoclimatological zones of Luxembourg, the impact of timing of fungicide

Attention to a relation ontology [...] refocuses security discourses to better reflect and appreciate three forms of interconnection that are not sufficiently attended to