Domanda

In lot of cases there is no need for classes to be explicitly compiled(i.e. running unit tests - I want them to be just runnable, not necessarily to be compiled & packaged).

I'm curious if there is any library for interpreting java.

Scala(static typed, runs on jvm) has interpreter built-in so in my understanding it should technically possible for java as well.

È stato utile?

Soluzione

You can go a look at BeanShell. It's a Java interpreter. It may be a bit dated, I don't know if it supports generics for example, but you should take a look at it. It probably fits what you want to do.

Altri suggerimenti

Take a look on beanshell (http://www.beanshell.org).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top