本文整理汇总了Java中com.google.javascript.jscomp.ErrorHandler类的典型用法代码示例。如果您正苦于以下问题:Java ErrorHandler类的具体用法?Java ErrorHandler怎么用?Java ErrorHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ErrorHandler类属于com.google.javascript.jscomp包,在下文中一共展示了ErrorHandler类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ModuleLoader
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public ModuleLoader(
@Nullable ErrorHandler errorHandler,
Iterable<String> moduleRoots,
Iterable<? extends DependencyInfo> inputs,
ResolutionMode resolutionMode) {
this(errorHandler, moduleRoots, inputs, PathResolver.RELATIVE, resolutionMode);
}
示例2: setErrorHandler
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public void setErrorHandler(ErrorHandler errorHandler) {
if (errorHandler == null) {
this.errorHandler = new NoopErrorHandler();
} else {
this.errorHandler = errorHandler;
}
this.moduleResolver.setErrorHandler(this.errorHandler);
}
示例3: NodeModuleResolver
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public NodeModuleResolver(
ImmutableSet<String> modulePaths,
ImmutableList<String> moduleRootPaths,
Map<String, String> packageJsonMainEntries,
ErrorHandler errorHandler) {
super(modulePaths, moduleRootPaths, errorHandler);
this.nodeModulesFolders = buildNodeModulesFoldersRegistry(modulePaths);
if (packageJsonMainEntries == null) {
this.packageJsonMainEntries = ImmutableMap.of();
} else {
this.packageJsonMainEntries = buildPackageJsonMainEntries(packageJsonMainEntries);
}
}
示例4: WebpackModuleResolver
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public WebpackModuleResolver(
ImmutableSet<String> modulePaths,
ImmutableList<String> moduleRootPaths,
Map<String, String> modulesById,
ErrorHandler errorHandler) {
super(modulePaths, moduleRootPaths, null, errorHandler);
this.modulesById = ImmutableMap.copyOf(modulesById);
}
示例5: ModuleResolver
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public ModuleResolver(
ImmutableSet<String> modulePaths,
ImmutableList<String> moduleRootPaths,
ErrorHandler errorHandler) {
this.modulePaths = modulePaths;
this.moduleRootPaths = moduleRootPaths;
this.errorHandler = errorHandler;
}
示例6: setErrorHandler
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public void setErrorHandler(ErrorHandler handler) {
compilerOptions.setErrorHandler(handler);
}
示例7: getErrorHandler
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public ErrorHandler getErrorHandler() {
return this.errorHandler;
}
示例8: BrowserModuleResolver
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public BrowserModuleResolver(
ImmutableSet<String> modulePaths,
ImmutableList<String> moduleRootPaths,
ErrorHandler errorHandler) {
super(modulePaths, moduleRootPaths, errorHandler);
}
示例9: setErrorHandler
import com.google.javascript.jscomp.ErrorHandler; //导入依赖的package包/类
public void setErrorHandler(ErrorHandler errorHandler) {
this.errorHandler = errorHandler;
}