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


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

Re: terminology

Path csiph.com!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: terminology
Date Thu, 19 Apr 2012 20:01:11 -0700
Organization A noiseless patient Spider
Lines 75
Message-ID <jmqjhq$b7b$1@dont-email.me> (permalink)
References <terminology-20120420003700@ram.dialup.fu-berlin.de> <580829.126.1334881065985.JavaMail.geo-discussion-forums@pbcgs4>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Fri, 20 Apr 2012 03:01:14 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="QNqT5u6Ryx/DB+LpnoCWdQ"; logging-data="11499"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+B5IsU4zYe3IBWqiFLTzz7wEJoxSQw1P8="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
In-Reply-To <580829.126.1334881065985.JavaMail.geo-discussion-forums@pbcgs4>
Cancel-Lock sha1:VDI3AR8ubnjFoWotJB4Cowp0bg8=
Xref csiph.com comp.lang.java.programmer:13675

Show key headers only | View raw


On 4/19/2012 5:17 PM, Lew wrote:

> Stefan Ram wrote:
>> java.lang.Thread     . dumpStack() java.lang.System.out . print( 2
>> )
>>
>> I do call the source code part in front of the last dot a
>> /context/.

>
> Fully-qualified type name.
> <http://docs.oracle.com/javase/specs/jls/se7/html/jls-6.html#jls-6.5.5.2>


I'd have said the same off the top of my head.  I'd also call it a
"class" if FQN was a bit long, or I was being less strict in my speaking.

>
>> I do call the simple name between the last dot and the first
>> parentheses a /verb/. (So a verb does never contain a dot.)
>
> Simple method name.
> <http://docs.oracle.com/javase/specs/jls/se7/html/jls-6.html#jls-6.5.7.1>


"Method" or "method invocation" works for me.


>> (I do /not/ call this »method name«, since I want to exclude texts
>> with dots, like »>java.lang.Thread.dumpStack«, which are also
>> method names in Java AFAIK.)
>
> Qualified method name.
> <http://docs.oracle.com/javase/specs/jls/se7/html/jls-6.html#jls-6.5.7.2>


Or identifier, or "method name," imo.


>> I do call the simple call after the last dot up to the last
>> parentheses a /sentence/.
>
> Method invocation expression, except that includes the qualifier.
> There is no standard term for what you call a "sentence", nor would
> most Java programs have the faintest clue what you mean by that
> word.
> <http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12>


Also  "statement" if there's a ; at the end, I think.


>
>> (I do /not/ call this »[method ]call«, since the whole lines
>> including the dots are also called »[method ]calls« or »[method
>> ]invocations« in Java.)
>
> There's always a qualifier in a method invocation, so there is no
> such thing as an invocation without one. The qualifier is just
> implicit by the grace of 'import', but it's explicit in the JVM
> regardless.


I'm not sure.  If you're invoking a method that is a member of an 
enclosing class or type, you don't need to qualify it.  "wait()", 
"notify()", etc. never need to be qualified if "this" is the qualifier.

As for "the whole line is an invocation," this is a statement with two 
invocations:

   double d = Math.sin(1.0) + Math.cos(1.0);

I don't think the "whole line" can be an invocations, it's just that you 
happen to have a method call, expression, and statement that are all the 
same thing in that one particular example.  That won't always be true.

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


Thread

Re: terminology Lew <lewbloch@gmail.com> - 2012-04-19 17:17 -0700
  Re: terminology markspace <-@.> - 2012-04-19 20:01 -0700
    Re: terminology Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-20 07:09 -0300
    Re: terminology Lew <noone@lewscanon.com> - 2012-04-20 08:05 -0700
    Re: terminology markspace <-@.> - 2012-04-20 11:03 -0700
    Re: "static context" Lew <noone@lewscanon.com> - 2012-04-21 04:15 -0700

csiph-web