本文整理匯總了Java中org.fife.rsta.ac.js.ast.type.ecma.v5.TypeDeclarationsECMAv5類的典型用法代碼示例。如果您正苦於以下問題:Java TypeDeclarationsECMAv5類的具體用法?Java TypeDeclarationsECMAv5怎麽用?Java TypeDeclarationsECMAv5使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TypeDeclarationsECMAv5類屬於org.fife.rsta.ac.js.ast.type.ecma.v5包,在下文中一共展示了TypeDeclarationsECMAv5類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setTypeDeclarationVersion
import org.fife.rsta.ac.js.ast.type.ecma.v5.TypeDeclarationsECMAv5; //導入依賴的package包/類
public List<String> setTypeDeclarationVersion(String ecmaVersion,
boolean xmlSupported, boolean client) {
try
{
ecmaVersion = ecmaVersion == null ? getDefaultECMAVersion() : ecmaVersion;
//try to instantiate classes
Class<?> ecmaClass = TypeDeclarationFactory.class.getClassLoader().loadClass(ecmaVersion);
ecma = (TypeDeclarations) ecmaClass.newInstance();
}
catch(Exception e)
{
//TODO log error?
//ignore this
ecma = new TypeDeclarationsECMAv5();
}
if(xmlSupported) { //add E4X API
new ECMAvE4xAdditions().addAdditionalTypes(ecma);
}
if(client) {
//for client we are going to add DOM, HTML DOM and Browser attributes/methods
new ClientBrowserAdditions().addAdditionalTypes(ecma);
new DOMAddtions().addAdditionalTypes(ecma);
new HTMLDOMAdditions().addAdditionalTypes(ecma);
}
return ecma.getAllClasses();
}
示例2: RhinoJavaScriptLanguageSupport
import org.fife.rsta.ac.js.ast.type.ecma.v5.TypeDeclarationsECMAv5; //導入依賴的package包/類
public RhinoJavaScriptLanguageSupport() {
JavaScriptTokenMaker.setJavaScriptVersion("1.7");
setECMAVersion(TypeDeclarationsECMAv5.class.getName(), getJarManager());
}
示例3: RhinoJavaScriptLanguageSupport
import org.fife.rsta.ac.js.ast.type.ecma.v5.TypeDeclarationsECMAv5; //導入依賴的package包/類
public RhinoJavaScriptLanguageSupport() {
JavaScriptTokenMaker.setJavaScriptVersion("1.7");
setECMAVersion(TypeDeclarationsECMAv5.class.getName(), getJarManager());
}
示例4: getDefaultECMAVersion
import org.fife.rsta.ac.js.ast.type.ecma.v5.TypeDeclarationsECMAv5; //導入依賴的package包/類
/**
* @return Default base ECMA implementation
*/
protected String getDefaultECMAVersion()
{
return TypeDeclarationsECMAv5.class.getName();
}