Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
protected GroovyShell |
shell |
Type | Name and description |
---|---|
Object |
apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) Allow an anonymous function to be declared and invoked |
Object |
call(Object object, String method, Object[] args) Call the named method of the given object. |
void |
declareBean(BSFDeclaredBean bean) Declare a bean |
Object |
eval(String source, int lineNo, int columnNo, Object script) Evaluate an expression. |
void |
exec(String source, int lineNo, int columnNo, Object script) Execute a script. |
protected GroovyShell |
getEvalShell() @return a newly created GroovyShell using the same variable scope but a new class loader |
void |
initialize(BSFManager mgr, String lang, Vector declaredBeans) Initialize the engine. |
void |
undeclareBean(BSFDeclaredBean bean) Undeclare a previously declared bean. |
Allow an anonymous function to be declared and invoked
Call the named method of the given object.
Declare a bean
Initialize the engine.
Undeclare a previously declared bean.