Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设 foo.method() 可以在 java 上的 Jexl 表达式中调用,这是否可能在 Scala 中使用相同的 api 发生。
Scala 允许使用所有 Java 库,Jexl 也不例外。因此,您也可以在 Scala 中调用 Jexl 类方法。
例如:
val ja = new JexlArithmetic(false); ja.add(null, null) // 0