2007-02-02 17:25:09 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* Copyright (c) 2002 - 2006 IBM Corporation.
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* IBM Corporation - initial API and implementation
|
|
|
|
*****************************************************************************/
|
|
|
|
package com.ibm.wala.cast.js.translator;
|
|
|
|
|
|
|
|
import com.ibm.wala.cast.js.loader.JavaScriptLoader;
|
|
|
|
|
|
|
|
public interface JavaScriptTranslatorFactory {
|
|
|
|
|
2007-11-16 01:54:39 +00:00
|
|
|
TranslatorBase make(JavaScriptLoader loader);
|
2007-02-02 17:25:09 +00:00
|
|
|
|
|
|
|
public static class CAstRhinoFactory implements JavaScriptTranslatorFactory {
|
|
|
|
|
2007-11-16 01:54:39 +00:00
|
|
|
public TranslatorBase make(JavaScriptLoader loader) {
|
2007-02-02 17:25:09 +00:00
|
|
|
return new CAstRhinoTranslator(loader);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|