MCPcopy Index your code
hub / github.com/beanshell/beanshell / main

Method main

tests/src/callFromJava.java:5–16  ·  view source on GitHub ↗
( String argv[] )

Source from the content-addressed store, hash-verified

3public class callFromJava {
4
5 public static void main( String argv[] ) throws EvalError {
6
7 Interpreter interpreter = new Interpreter();
8 interpreter.set("foo", 5);
9 interpreter.eval("bar = foo*10");
10 Integer bar = (Integer)interpreter.get("bar");
11
12 if ( bar.intValue() != 50 )
13 System.out.println("FAILED...");
14 else
15 System.out.println("passed...");
16 }
17}
18

Callers

nothing calls this directly

Calls 5

setMethod · 0.95
evalMethod · 0.95
getMethod · 0.95
intValueMethod · 0.80
printlnMethod · 0.65

Tested by

no test coverage detected