L2J_GeoDriver, java-engine-1.8 and mmocore libraries are dropped and directly integrated to project under "com.l2jserver.commons".
This commit is contained in:
@ -23,8 +23,6 @@ import java.util.logging.Logger;
|
||||
|
||||
import javax.script.ScriptContext;
|
||||
|
||||
import com.l2jserver.gameserver.scripting.L2ScriptEngineManager;
|
||||
|
||||
public class Expression
|
||||
{
|
||||
protected static final Logger _log = Logger.getLogger(Expression.class.getName());
|
||||
@ -34,32 +32,6 @@ public class Expression
|
||||
@SuppressWarnings("unused")
|
||||
private final String _code;
|
||||
|
||||
public static Object eval(String lang, String code)
|
||||
{
|
||||
try
|
||||
{
|
||||
return L2ScriptEngineManager.getInstance().eval(lang, code);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "", e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static Object eval(ScriptContext context, String lang, String code)
|
||||
{
|
||||
try
|
||||
{
|
||||
return L2ScriptEngineManager.getInstance().eval(lang, code, context);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "", e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static Expression create(ScriptContext context, String lang, String code)
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user