Creating meta language with Java

前端 未结 5 1603
清歌不尽
清歌不尽 2020-12-04 04:13

guys! I need to create some sort of meta language which I could embed in XML and then parse with Java. For example:


    [if value1>value2 the         


        
5条回答
  •  北海茫月
    2020-12-04 04:41

    Java has a scripting API that you could use for this. Lookup the API documentation of the package javax.script.

    You could include code in for example JavaScript in the code element, and execute that using the scripting API.

提交回复
热议问题