MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale Utente Pagina 195

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 408
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 194
Invoking Methods on Java Objects
5-25
For example, display a full description of all methods of the
java.awt.Dimension object.
methods java.awt.Dimension -full
Methods for class java.awt.Dimension:
Dimension()
Dimension(java.awt.Dimension)
Dimension(int,int)
java.lang.Class getClass() % Inherited from java.lang.Object
int hashCode() % Inherited from java.lang.Object
boolean equals(java.lang.Object)
java.lang.String toString()
void notify() % Inherited from java.lang.Object
void notifyAll() % Inherited from java.lang.Object
void wait(long) throws java.lang.InterruptedException
% Inherited from java.lang.Object
void wait(long,int) throws java.lang.InterruptedException
% Inherited from java.lang.Object
void wait() throws java.lang.InterruptedException
% Inherited from java.lang.Object
java.awt.Dimension getSize()
void setSize(java.awt.Dimension)
void setSize(int,int)
Determining What Classes Define a Method
You can use the which function to display the fully qualified name (package
and class name) of a method implemented by a loaded Java class. With the
-all qualifier, the which function finds all classes with a method of the name
specified.
Suppose, for example, that you want to find the package and class name for the
concat method, with the String class currently loaded. Use the command
which concat
java.lang.String.concat % String method
If the java.lang.String class has not been loaded, the same which command
would give the output
which concat
concat not found.
Vedere la pagina 194
1 2 ... 190 191 192 193 194 195 196 197 198 199 200 ... 407 408

Commenti su questo manuale

Nessun commento