本文整理汇总了Java中com.google.javascript.jscomp.SourceMap.Format类的典型用法代码示例。如果您正苦于以下问题:Java Format类的具体用法?Java Format怎么用?Java Format使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Format类属于com.google.javascript.jscomp.SourceMap包,在下文中一共展示了Format类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setSourceMapFormat
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
public void setSourceMapFormat(Format sourceMapFormat) {
compilerOptions.setSourceMapFormat(sourceMapFormat);
}
开发者ID:GeoDienstenCentrum,项目名称:closure-compiler-maven-plugin,代码行数:4,代码来源:CompilerOptionsMojo.java
示例2: getSourceMapFormat
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
@Override
protected Format getSourceMapFormat() {
return Format.V2;
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:5,代码来源:SourceMapTest.java
示例3: getSourceMapFormat
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
@Override
protected Format getSourceMapFormat() {
return SourceMap.Format.V2;
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:5,代码来源:SourceMapGeneratorV2Test.java
示例4: getSourceMapFormat
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
@Override
protected Format getSourceMapFormat() {
return SourceMap.Format.V3;
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:5,代码来源:SourceMapGeneratorV3Test.java
示例5: getSourceMapFormat
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
@Override
protected Format getSourceMapFormat() {
return SourceMap.Format.V1;
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:5,代码来源:SourceMapGeneratorV1Test.java
示例6: createCompilerOptions
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
private CompilerOptions createCompilerOptions() {
CompilerOptions options = new CompilerOptions();
this.compilationLevel.setOptionsForCompilationLevel(options);
if (this.debugOptions) {
this.compilationLevel.setDebugOptionsForCompilationLevel(options);
}
options.setEnvironment(this.environment);
options.setPrettyPrint(this.prettyPrint);
options.setPrintInputDelimiter(this.printInputDelimiter);
options.setPreferSingleQuotes(this.preferSingleQuotes);
options.setGenerateExports(this.generateExports);
options.setLanguageIn(this.languageIn);
options.setLanguageOut(this.languageOut);
options.setOutputCharset(this.outputEncoding);
this.warningLevel.setOptionsForWarningLevel(options);
options.setManageClosureDependencies(manageDependencies);
convertEntryPointParameters(options);
options.setTrustedStrings(true);
options.setAngularPass(angularPass);
if (replaceProperties) {
convertPropertiesMap(options);
}
convertDefineParameters(options);
for (Warning warning : warnings) {
CheckLevel level = warning.getLevel();
String groupName = warning.getGroup();
DiagnosticGroup group = new DiagnosticGroups().forName(groupName);
if (group == null) {
throw new BuildException(
"Unrecognized 'warning' option value (" + groupName + ")");
}
options.setWarningLevel(group, level);
}
if (!Strings.isNullOrEmpty(sourceMapFormat)) {
options.setSourceMapFormat(Format.valueOf(sourceMapFormat));
}
if (!Strings.isNullOrEmpty(sourceMapLocationMapping)) {
String[] tokens = sourceMapLocationMapping.split("\\|", -1);
LocationMapping lm = new LocationMapping(tokens[0], tokens[1]);
options.setSourceMapLocationMappings(Arrays.asList(lm));
}
options.setApplyInputSourceMaps(applyInputSourceMaps);
if (sourceMapOutputFile != null) {
File parentFile = sourceMapOutputFile.getParentFile();
if (parentFile.mkdirs()) {
log("Created missing parent directory " + parentFile, Project.MSG_DEBUG);
}
options.setSourceMapOutputPath(parentFile.getAbsolutePath());
}
return options;
}
开发者ID:google,项目名称:closure-compiler,代码行数:64,代码来源:CompileTask.java
示例7: getSourceMapFormat
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
@Override
protected Format getSourceMapFormat() {
return Format.V3;
}
开发者ID:google,项目名称:closure-compiler,代码行数:5,代码来源:SourceMapTest.java
示例8: createCompilerOptions
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
private CompilerOptions createCompilerOptions() {
CompilerOptions options = new CompilerOptions();
this.compilationLevel.setOptionsForCompilationLevel(options);
if (this.debugOptions) {
this.compilationLevel.setDebugOptionsForCompilationLevel(options);
}
options.prettyPrint = this.prettyPrint;
options.printInputDelimiter = this.printInputDelimiter;
options.generateExports = this.generateExports;
options.setLanguageIn(this.languageIn);
options.setOutputCharset(this.outputEncoding);
this.warningLevel.setOptionsForWarningLevel(options);
options.setManageClosureDependencies(manageDependencies);
convertEntryPointParameters(options);
options.setTrustedStrings(true);
if (replaceProperties) {
convertPropertiesMap(options);
}
convertDefineParameters(options);
for (Warning warning : warnings) {
CheckLevel level = warning.getLevel();
String groupName = warning.getGroup();
DiagnosticGroup group = new DiagnosticGroups().forName(groupName);
if (group == null) {
throw new BuildException(
"Unrecognized 'warning' option value (" + groupName + ")");
}
options.setWarningLevel(group, level);
}
if (!Strings.isNullOrEmpty(sourceMapFormat)) {
options.sourceMapFormat = Format.valueOf(sourceMapFormat);
}
if (sourceMapOutputFile != null) {
File parentFile = sourceMapOutputFile.getParentFile();
if (parentFile.mkdirs()) {
log("Created missing parent directory " + parentFile, Project.MSG_DEBUG);
}
options.sourceMapOutputPath = parentFile.getAbsolutePath();
}
return options;
}
开发者ID:nicks,项目名称:closure-compiler-old,代码行数:51,代码来源:CompileTask.java
示例9: createCompilerOptions
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
private CompilerOptions createCompilerOptions() {
CompilerOptions options = new CompilerOptions();
this.compilationLevel.setOptionsForCompilationLevel(options);
if (this.debugOptions) {
this.compilationLevel.setDebugOptionsForCompilationLevel(options);
}
options.prettyPrint = this.prettyPrint;
options.printInputDelimiter = this.printInputDelimiter;
options.generateExports = this.generateExports;
options.setLanguageIn(this.languageIn);
this.warningLevel.setOptionsForWarningLevel(options);
options.setManageClosureDependencies(manageDependencies);
if (replaceProperties) {
convertPropertiesMap(options);
}
convertDefineParameters(options);
for (Warning warning : warnings) {
CheckLevel level = warning.getLevel();
String groupName = warning.getGroup();
DiagnosticGroup group = new DiagnosticGroups().forName(groupName);
if (group == null) {
throw new BuildException(
"Unrecognized 'warning' option value (" + groupName + ")");
}
options.setWarningLevel(group, level);
}
if (!Strings.isNullOrEmpty(sourceMapFormat)) {
options.sourceMapFormat = Format.valueOf(sourceMapFormat);
}
if (sourceMapOutputFile != null) {
File parentFile = sourceMapOutputFile.getParentFile();
if (parentFile.mkdirs()) {
log("Created missing parent directory " + parentFile, Project.MSG_DEBUG);
}
options.sourceMapOutputPath = parentFile.getAbsolutePath();
}
return options;
}
开发者ID:Robbert,项目名称:closure-compiler-copy,代码行数:48,代码来源:CompileTask.java
示例10: ClosureConfig
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
/**
* Init Closure Compiler values.
*
* @param language the version of ECMAScript used to report errors in the code
* @param compilationLevel the degree of compression and optimization to apply to JavaScript
* @param dependencyOptions options for how to manage dependencies between input files
* @param externs preserve symbols that are defined outside of the code you are compiling
* @param useDefaultExterns use default externs packed with the Closure Compiler
* @param createSourceMap create a source map for the minifed/combined production files
* @param angularPass use {@code @ngInject} annotation to generate Angular injections
*/
public ClosureConfig(LanguageMode language, CompilationLevel compilationLevel, DependencyOptions dependencyOptions,
List<SourceFile> externs, boolean useDefaultExterns, boolean createSourceMap, boolean angularPass) {
this.language = language;
this.compilationLevel = compilationLevel;
this.dependencyOptions = dependencyOptions;
this.externs = externs;
this.useDefaultExterns = useDefaultExterns;
this.sourceMapFormat = (createSourceMap) ? SourceMap.Format.V3 : null;
this.angularPass = angularPass;
}
开发者ID:a1martin,项目名称:minifier-maven-plugin,代码行数:22,代码来源:ClosureConfig.java
示例11: getSourceMapFormat
import com.google.javascript.jscomp.SourceMap.Format; //导入依赖的package包/类
/**
* Gets the sourceMapFormat.
*
* @return the sourceMapFormat
*/
public Format getSourceMapFormat() {
return sourceMapFormat;
}
开发者ID:a1martin,项目名称:minifier-maven-plugin,代码行数:9,代码来源:ClosureConfig.java
注:本文中的com.google.javascript.jscomp.SourceMap.Format类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论