MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 15

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 14
CreatingaJavaComponent
Using the Command Line to Create Java Components
Action to Perform
mcc Option to Use Description
-W java:
Tells Java Builder to generate a Java component
that contains a class that encapsulates the
specified files.
Syntax
mcc-W'java:component_name[,class_name]' file1 [file2...fileN]
component_name
is a f ully q ualified package name for your component.
The name is a period-separated list.
class_name is the name for the Java class to be created. The default
class_name is the last item in the list specified by component_name.
file1 [file2.. .fileN]areM-filestobeencapsulatedasmethodsin
class_name.
Create a class
encapsulating one or
more M-files.
Example
mcc -W 'java:com.mycompany.mycomponent,myclass'
foo.m bar.m
The example creates a Java component that has a fully qualified package
name,
com.mycompany.mycomponent. The compone nt contains a single
Java class,
myclass, which contains methods foo and bar.
To use
myclass, place the following statement in your code:
import com.mycompany.mycomponent.myclass;
1-7
Przeglądanie stron 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag