1b21501f7a
R=zundel@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//9384013 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4191 260f80e4-7a28-3924-810f-c04153c831b5
106 lines
2.4 KiB
Java
106 lines
2.4 KiB
Java
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
package com.google.dart.compiler;
|
|
|
|
import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
|
|
import com.google.dart.compiler.metrics.CompilerMetrics;
|
|
|
|
import java.io.File;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Provides a way to override a specific method of an existing instance of a CompilerConfiguration.
|
|
*
|
|
* @author zundel@google.com (Eric Ayers)
|
|
*/
|
|
public class DelegatingCompilerConfiguration implements CompilerConfiguration {
|
|
|
|
private CompilerConfiguration delegate;
|
|
|
|
public DelegatingCompilerConfiguration(CompilerConfiguration delegate) {
|
|
this.delegate = delegate;
|
|
}
|
|
|
|
@Override
|
|
public boolean developerModeChecks() {
|
|
return delegate.developerModeChecks();
|
|
}
|
|
|
|
@Override
|
|
public List<DartCompilationPhase> getPhases() {
|
|
return delegate.getPhases();
|
|
}
|
|
|
|
@Override
|
|
public List<Backend> getBackends() {
|
|
return delegate.getBackends();
|
|
}
|
|
|
|
@Override
|
|
public CompilerMetrics getCompilerMetrics() {
|
|
return delegate.getCompilerMetrics();
|
|
}
|
|
|
|
@Override
|
|
public String getJvmMetricOptions() {
|
|
return delegate.getJvmMetricOptions();
|
|
}
|
|
|
|
@Override
|
|
public boolean typeErrorsAreFatal() {
|
|
return delegate.typeErrorsAreFatal();
|
|
}
|
|
|
|
@Override
|
|
public boolean warningsAreFatal() {
|
|
return delegate.warningsAreFatal();
|
|
}
|
|
|
|
@Override
|
|
public boolean resolveDespiteParseErrors() {
|
|
return delegate.resolveDespiteParseErrors();
|
|
}
|
|
|
|
@Override
|
|
public boolean incremental() {
|
|
return delegate.incremental();
|
|
}
|
|
|
|
@Override
|
|
public File getOutputFilename() {
|
|
return delegate.getOutputFilename();
|
|
}
|
|
|
|
@Override
|
|
public File getOutputDirectory() {
|
|
return delegate.getOutputDirectory();
|
|
}
|
|
|
|
@Override
|
|
public boolean checkOnly() {
|
|
return delegate.checkOnly();
|
|
}
|
|
|
|
@Override
|
|
public boolean expectEntryPoint() {
|
|
return delegate.expectEntryPoint();
|
|
}
|
|
|
|
@Override
|
|
public LibrarySource getSystemLibraryFor(String importSpec) {
|
|
return delegate.getSystemLibraryFor(importSpec);
|
|
}
|
|
|
|
@Override
|
|
public CompilerOptions getCompilerOptions() {
|
|
return delegate.getCompilerOptions();
|
|
}
|
|
|
|
@Override
|
|
public ErrorFormat printErrorFormat() {
|
|
return delegate.printErrorFormat();
|
|
}
|
|
}
|