當前位置: 首頁>>代碼示例>>Java>>正文


Java TypeDeclarationsECMAv5類代碼示例

本文整理匯總了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();
}
 
開發者ID:bobbylight,項目名稱:RSTALanguageSupport,代碼行數:32,代碼來源:TypeDeclarationFactory.java

示例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());
}
 
開發者ID:loadtestgo,項目名稱:pizzascript,代碼行數:5,代碼來源:RhinoJavaScriptLanguageSupport.java

示例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());
}
 
開發者ID:Dakror,項目名稱:LiturfaliarCest,代碼行數:5,代碼來源:RhinoJavaScriptLanguageSupport.java

示例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();
}
 
開發者ID:bobbylight,項目名稱:RSTALanguageSupport,代碼行數:8,代碼來源:TypeDeclarationFactory.java


注:本文中的org.fife.rsta.ac.js.ast.type.ecma.v5.TypeDeclarationsECMAv5類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。