Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27390

Re: building "path expressions"

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: building "path expressions"
Date Thu, 23 Jan 2014 16:11:36 -0500
Organization A noiseless patient Spider
Lines 35
Message-ID <lbs0le$nja$1@dont-email.me> (permalink)
References <path-expressions-20140123173039@ram.dialup.fu-berlin.de> <lbru26$8dv$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Thu, 23 Jan 2014 21:13:18 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="6b9e92482af47766954d85fb77d372f5"; logging-data="24170"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199lN3UgtwWMKioyrxFX4F18qhxUd1R94A="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10
In-Reply-To <lbru26$8dv$1@dont-email.me>
Cancel-Lock sha1:jh6YZhKUwqhU4A1xqlHahFiAw9w=
Xref csiph.com comp.lang.java.programmer:27390

Show key headers only | View raw


On 01/23/2014 03:27 PM, Jeff Higgins wrote:
> On 01/23/2014 11:37 AM, Stefan Ram wrote:
>>    When creating an interface for a library, sometimes one wants the user
>>    to see nesting in a »path expression«, like for example
>> »a.b.c.d.e.f.g.h«
>>    to convey the idea that h is a part of g, which is a part of f, and
>> so on.
>
> Do you have an example using some real world names to help me understand?
> Can the names help the user to visualize the nesting, or is some other
> markup required?
> I'm drawing a complete blank here.
>
>>    I think it is funny that one can use either package names /or/ nested
>>    classes /or/ fields to implement such a path, without this choice
>> being
>>    visible in the »path expression«. For example, one posssibility to
>>    implement a »path expression« »a.b.c.d.e.f.g.h« might be:
>>
>> package a.b.c;
>> class G { int h = 8; }
>> class F { G g = new G(); }
>> class d { static class e { static F f = new F(); }}
>> public final class Main
>> { public static void main( String[] args )
>>    { java.lang.System.out.println( a.b.c.d.e.f.g.h );  }}
>>
>
java.lang.System.out.println(
   test.ram.Automobile.Commands
     .StartCockpitVoiceRecorder.GetOBD.Devices.GetSecondaryAirBag.Fire)

!!!! @#$%^&* @#%$%^&***

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 15:27 -0500
  Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 16:11 -0500
  Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 16:52 -0500
    Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 17:29 -0500
      Re: building "path expressions" markspace <markspace@nospam.nospam> - 2014-01-23 15:33 -0800

csiph-web