On 20.09.2020 01:41, Andreas Mixich wrote:
Am 19.09.2020 um 23:30 schrieb Martin Honnen:
import com.vladsch.flexmark.parser.Parser.Builder;

with

   $builder => Parser.Builder:build()
Hello Martin,

thanks for taking the time!

I am not quite sure I understand. Do you want me to:

   import module namespace Parser.Builder =
"java:com.vladsch.flexmark.parser.Parser.Builder";


I am not sure I have completely understood the reflection and namespace
conventions but after some reading and testing it seems the inner class
Builder should be accessible by


declare namespace Builder =
'java:com.vladsch.flexmark.parser.Parser$Builder';


and then

$builder => Builder:build()


should work for the variable

let $builder := Parser:builder($mds)

you have, you should be able to chain

MutableDataSet:new() => Parser:builder() => Builder:build()

Reply via email to