MCPcopy Create free account
hub / github.com/beanshell/beanshell / eval

Method eval

src/bsh/BSHFormalParameters.java:87–105  ·  view source on GitHub ↗

Evaluate the types. Note that type resolution does not require the interpreter instance.

( CallStack callstack, Interpreter interpreter )

Source from the content-addressed store, hash-verified

85 Note that type resolution does not require the interpreter instance.
86 */
87 public Object eval( CallStack callstack, Interpreter interpreter )
88 throws EvalError
89 {
90 if ( paramTypes != null )
91 return paramTypes;
92
93 insureParsed();
94 Class [] paramTypes = new Class[numArgs];
95
96 for(int i=0; i<numArgs; i++)
97 {
98 BSHFormalParameter param = (BSHFormalParameter)jjtGetChild(i);
99 paramTypes[i] = (Class)param.eval( callstack, interpreter );
100 }
101
102 this.paramTypes = paramTypes;
103
104 return paramTypes;
105 }
106}
107

Callers

nothing calls this directly

Calls 3

insureParsedMethod · 0.95
evalMethod · 0.95
jjtGetChildMethod · 0.65

Tested by

no test coverage detected