S
Stefan Ram
How is »f(0)« called in »o.f(0)«?
I am inclined to call it a »message«.
It can not be referred to as »call« or »invocation«, because
the whole expression »o.f(0)« already is the call/invocation.
The object »o« is sometimes referred to as »target object«
or »context« of the call in the JLS, IIRC. But I am not aware
of wording for the part »f(0)«.
Let's ask the JDK:
public class Main
{ public static void main( final java.lang.String[] args )
{ class C { void f( final int arg ){} void f( final double arg ){} };
new C().f( true ); }}
Main.java:4: cannot find symbol
symbol : method f(boolean)
So a (possibly slightly extended) signature is referred to as
a »symbol« by the JDK, but this refers to »f(boolean)«, not
»f( true )«.
So, is there a more Javaish term for »f(true)« than »message«
in this case?
I am inclined to call it a »message«.
It can not be referred to as »call« or »invocation«, because
the whole expression »o.f(0)« already is the call/invocation.
The object »o« is sometimes referred to as »target object«
or »context« of the call in the JLS, IIRC. But I am not aware
of wording for the part »f(0)«.
Let's ask the JDK:
public class Main
{ public static void main( final java.lang.String[] args )
{ class C { void f( final int arg ){} void f( final double arg ){} };
new C().f( true ); }}
Main.java:4: cannot find symbol
symbol : method f(boolean)
So a (possibly slightly extended) signature is referred to as
a »symbol« by the JDK, but this refers to »f(boolean)«, not
»f( true )«.
So, is there a more Javaish term for »f(true)« than »message«
in this case?