close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 12 and Version 13 of JCop


Ignore:
Timestamp:
01/06/2011 11:25:12 AM (9 years ago)
Author:
malte.appeltauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JCop

    v12 v13  
    1 [[]]
     1[[PageOutline]]
    22= JCop =
    33
     
    3030
    3131
    32 == Manual ==
     32== Command Line Tools ==
    3333In the following we describe the usage of the JCop language compiler that is able to compile
    3434programs of the JCop and Java programming language.
     
    3939the [http://jastadd.org/JastAdd JastAdd compiler framework].
    4040
    41 === Command Line Tools ===
    42 ==== Compile ====
    43 ===== Synopsis =====
     41
     42=== Compile ===
     43==== Synopsis ====
    4444   {{{jcopc  [Options]  [file]}}}
    4545
    46 ===== Description =====
     46==== Description ====
    4747The jcopc  command compiles JCop and Java source, producing .class files compliant
    4848with any Java VM (1.1 or later). The argument after the options specifies the source file
     
    5050name), separated by a dot (".") (rather than a folder delimiter as for javac).
    5151
    52 ===== Options  =====
     52==== Options ====
    5353{{{-classpath  <path>}}}
    5454  Specify where to find user class files and annotation processors.
     
    5757  Specify where to find input source files. Only required if the sources aren’t located in the working directory. [[BR]]
    5858  Example:
    59 {{{
    60 jcopc  -sourcepath  src  myPckg.MyMainClass
    61 }}}
     59  {{{ jcopc  -sourcepath  src  myPckg.MyMainClass }}}
    6260
    6361{{{-d  <directory>}}}
    6462  Specify where to place generated class files.  [[BR]]
    6563  Example:
    66 {{{
    67 jcopc  -d  bin  -sourcepath  src  myPckg.MyMainClass
    68 }}}
     64  {{{ jcopc  -d  bin  -sourcepath  src  myPckg.MyMainClass }}}
    6965
    7066{{{-sourcedump  <path>}}}
    7167  Dumps Java source files of the compiled classes into the specified folder.  [[BR]]
    7268  Example:
    73 {{{
    74 jcopc  -sourcedump  dump  myPckg.MyMainClass
    75 }}}
     69  {{{ jcopc  -sourcedump  dump  myPckg.MyMainClass }}}
    7670
    7771{{{-agg  <path>}}}
    7872  Generates a file containing an AGG graph representation of the program’s AST. [[BR]]
    7973  Example:
    80   {{{
    81   jcopc  -agg  output/agg  myPckg.MyMainClass
    82   }}}
     74  {{{ jcopc  -agg  output/agg  myPckg.MyMainClass }}}
    8375
    8476{{{-ctl}}}
    8577  Output JCop specific messages about what the compiler is doing. [[BR]]
    8678  Example:
    87   {{{
    88   jcopc  -ctl  myPckg.MyMainClass
     79  {{{ 
     80  jcopc  -ctl  myPckg.MyMainClass 
    8981  ...
    9082  >  copying  PartialMethod.java
     
    10496  Loggs layer activation and composition information at runtime.  [[BR]]
    10597  Example:
    106 {{{
    107 jcopc  -rtl  myPckg.MyMainClass
    108 ...
    109 >  INFO:  accessing  base  method  of  getBMI
    110 >  INFO:  accessing  method  getBMI  of  layer  Visualization
    111 ...
    112 }}}
     98  {{{
     99  jcopc  -rtl  myPckg.MyMainClass
     100  ...
     101  >  INFO:  accessing  base  method  of  getBMI
     102  >  INFO:  accessing  method  getBMI  of  layer  Visualization
     103  ...
     104  }}}
    113105
    114106{{{-verbose}}}
     
    130122  Generate an outline in XML format (useful for development environments)
    131123
    132 ===== File Names =====
     124==== File Names ====
    133125jcopc accepts source files with either the .java extension or the .jcop extension.
    134126
    135127
    136 ==== Launch ====
    137 ===== Synopsis =====
     128=== Launch ===
     129==== Synopsis ====
    138130   {{{jcop [Options] class [ argument ]}}}
    139131
    140 ===== Description =====
     132==== Description ====
    141133The jcop command launches a JCop or Java application. It does this by starting a Java runtime environment (instrumented with the AspectJ weaver), loading a specified class, and invoking that class's main method. The method declaration must look like a plain Java main method:
    142134       
     
    148140The argument after the options specifies the class file to compile and by its full qualified name (package name + type name), separated by a dot (".").
    149141
    150 ===== Options =====
     142==== Options ====
    151143
    152144As options all standard Java options are allowed.   
    153145
    154 ===== File Names =====
     146==== File Names ====
    155147
    156148{{{jcop}}} accepts Java bytecode files with the {{{class}}} extension.