本文整理汇总了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();
}