Quando si implementa un'interfaccia in eclissi, ha una funzionalità davvero interessante che consente di "aggiungere metodi non implementati" e genera gli stub del metodo per i metodi dell'interfaccia.eclissi aggiunge metodi non implementati incluso javadoc
Tuttavia, non riporta la documentazione del metodo dai metodi dell'interfaccia e mi chiedevo se c'era un modo per ottenere eclissi per farlo.
Ecco cosa voglio accadere. Diciamo che ho avuto un'interfaccia simile a questo:
public interface BaseInterface {
/**
* This method takes the given string parameter and returns its integer value.
*
* @param x the string to convert
* @return the integer value of the string
*
* @throws Exception if some error occurs
*/
int method1(String x);
}
Ora creare una classe chiamata MyClass che implementa questa interfaccia. Quello che voglio che accada è che quando dico "aggiungere metodi non implementate", voglio che il mio codice a guardare come questo:
public class MyClass implements BaseInterface {
/**
* This method takes the given string parameter and returns its integer value.
*
* @param x the string to convert
* @return the integer value of the string
*
* @throws Exception if some error occurs
*/
public int method1(String x) {
return 0;
}
}
Ho provato, ma non ha funzionato. Non ha generato alcun documento per il metodo. – dcp