Problem with parameters in mother interface
I have two interfaces,
interface A {
int op0(int param1) ;
}
and
interface B extends A {
int op1(int param2);
}
when I use Javadoc with the B interface in parameter, I want to obtain the A interface with its methods, and when I want the parameter list for each method, I have no name for the 'param1' parameter.
MethodDoc <= inputClass.methods() ;
Parameter <= method.parameters() ;
parameter.typeName() prints 'int '.
Could you help me ? What is the problem ?
Thanks a lot.
[571 byte] By [
sebpc] at [2007-9-27 22:03:39]

Could you please provide the Java code that you are running?
I'm unfamiliar with the '<=' operator used between an interface
name and a method, as in "methodDoc <= inputClass.methods();".
Also, how are you running Javadoc? Please supply the command you are using.
-Doug Kramer
Javadoc team
Sorry, I was pressed when I have written this text.
I have two interfaces,
interface A {
int op0(int param1) ;
}
and
interface B extends A {
int op1(int param2);
}
MethodDoc methods = inputClass.methods() ;
for(i=0;i<methods.length;i++) {
Parameter parameters = methods.parameters() ;
for(j=0;j<parameters.length;j++) {
System.out.println(parameters.typeName()) ;
}
}
The System.out prints just the type for the values of the superinterface, but I had this problem before, and now the problem has disappeared. I don't understand how and why.
>
sebpc at 2007-7-7 12:00:06 >

Sorry, I was pressed when I have written this text.
I have two interfaces,
interface A {
int op0(int param1) ;
}
and
interface B extends A {
int op1(int param2);
}
MethodDoc methods = inputClass.methods() ;
for(i=0;i<methods.length;i++) {
Parameter parameters = methods.parameters() ;
for(j=0;j<parameters.length;j++) {
System.out.println(parameters.typeName()) ;
}
}
The System.out prints just the type for the values of the superinterface, but I had this problem before, and now the problem has disappeared. I don't understand how and why.
>
sebpc at 2007-7-7 12:00:06 >

Sorry, I was pressed when I have written this text.
I have two interfaces,
interface A {
int op0(int param1) ;
}
and
interface B extends A {
int op1(int param2);
}
MethodDoc methods = inputClass.methods() ;
for(i=0;i<methods.length;i++) {
Parameter parameters = methods.parameters() ;
for(j=0;j<parameters.length;j++) {
System.out.println(parameters.typeName()) ;
}
}
The System.out prints just the type for the values of the superinterface, but I had this problem before, and now the problem has disappeared. I don't understand how and why.
>
sebpc at 2007-7-7 12:00:06 >

Sorry, I was pressed when I have written this text.
I have two interfaces,
interface A {
int op0(int param1) ;
}
and
interface B extends A {
int op1(int param2);
}
MethodDoc methods = inputClass.methods() ;
for(i=0;i<methods.length;i++) {
Parameter parameters = methods.parameters() ;
for(j=0;j<parameters.length;j++) {
System.out.println(parameters.typeName()) ;
}
}
The System.out prints just the type for the values of the superinterface, but I had this problem before, and now the problem has disappeared. I don't understand how and why.
>
sebpc at 2007-7-7 12:00:06 >

This forum has formatting conventions that are preventing me
from seeing what you typed. For instance, I assume you typed
square bracket "[" followed by "i" followed by "]" to indicate
item i of the array, but that gets interpreted on the forum
as italic. So I suggest you use a different character in place
of the array bracket. Also, please use open bracket "[" followed
by "code" followed by "]" around code so indents will work.
The conventions are listed at the bottom of the FAQ (which you
can get to from the Welcome box above).
I'll use curly braces "{" in place of square brackets "[":
I believe this is what you meant:
MethodDoc methods = inputClass.methods() ;
for(i=0;i<methods.length;i++) {
Parameter parameters = methods{i}.parameters() ;
for(j=0;j<parameters.length;j++) {
System.out.println(parameters{j}.typeName()) ;
}
}
I don't understand the problem you are having.
I would expect System.out to print the typeName() for int,
which is "int". Are you saying it prints "A"? Please be
specific.
-Doug Kramer
Javadoc team
>
