Changes between Version 152 and Version 153 of j2p


Ignore:
Timestamp:
11/06/24 14:40:16 (5 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v152 v153  
    364364Place the #PY block directly before the object you want to override. For example if you place a #PY block before an annotation, you override only the annotation, not the actual method/class after the annotation.  This unfortunately will look a bit non-java but it seems the best way to accurately target the  override.
    365365
     366If you want to insert a statement in python, not overriding an existing java statement, then insert an empty statement {{{;}}} in java, and annotate it with //#PY as usual.
     367
     368{{{#!td style="background: #fee"
     369Do not add a line-comment AFTER the empty statement - it will  override the earlier comment
     370}}}
     371
     372
    366373Python has strict requirements regarding indentation. To make this possible, we need to be strict about indentation as well. In a single line python comment, the code must look exactly like
    367374