/plugins/SQL/tags/v_1_02/sql/preprocessors/BeanShellEvaluator.java
# · Java · 46 lines · 10 code · 4 blank · 32 comment · 0 complexity · 88460a8e4fc14c1614ecf31cdbbc6804 MD5 · raw file
- /**
- * BeanShellEvaluator.java - Sql Plugin
- * Copyright (C) 2001 Sergey V. Udaltsov
- * svu@users.sourceforge.net
- *
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
- package sql.preprocessors;
- import org.gjt.sp.jedit.*;
- import sql.*;
- /**
- * Description of the Class
- *
- * @author svu
- */
- public class BeanShellEvaluator extends Preprocessor
- {
- /**
- *Description of the Method
- *
- * @param text Description of Parameter
- * @return Description of the Returned Value
- * @since
- */
- public String doProcess( String text )
- {
- return (String) BeanShell.eval( view, BeanShell.getNameSpace(), text );
- }
- }