本文整理匯總了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;
}