Subject: Re: interfaces in demeterj
From: Karl Lieberherr (lieber@ccs.neu.edu)
Date: Thu Nov 29 2001 - 14:33:07 EST
>From push@ccs.neu.edu Thu Nov 29 11:52:14 2001
>Date: Thu, 29 Nov 2001 11:51:56 -0500
>Subject: interfaces in demeterj
>From: Ryan Perry <push@ccs.neu.edu>
>To: lieber@ccs.neu.edu
>
>Hi Professor Leiberherr,
>
>I would like to create a class in demeterj that implements an interface.
>I am also the designer of the interface, so if possible, I would like to
>use demeterj to define the interface. Is one or both of these possible?
>
I think that you can do this in the cd.
http://www.ccs.neu.edu/research/demeter/DemeterJava/use/generate.cd
allows to define interfaces in the cd.
An alternative would be to define a Java package that contains the
interface and to import that interface in your cd.
Doug: please can you advise.
>Also, I was wondering if there is some definitive documentation on the
>syntax of the String that can be passed to a TraversalStrategy, etc., to
>define a traversal. I haven't been able to find any documents saying
>exactly what can and can not be used, and in what order. I suppose that I
>could dig it out of the demeterj or DJ source code somewhere, but some
>clear, concise documentation would be much easier.
The cd for DemeterJ contains the syntax:
http://www.ccs.neu.edu/research/demeter/DemeterJava/use/generate.cd
in concise form:
PathDirective = [ <constraint> NegativeConstraint ]
<segments> List(PathSegment)
TargetDirective.
etc.
-- Karl
>
>Thanks in advance,
>
>Ryan
>
This archive was generated by hypermail 2b28 : Thu Nov 29 2001 - 14:34:44 EST