au.com.integradev.delphi.file.DefaultDelphiFileConfig Maven / Gradle / Ivy
The newest version!
/*
* Sonar Delphi Plugin
* Copyright (C) 2019 Integrated Application Development
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
package au.com.integradev.delphi.file;
import au.com.integradev.delphi.preprocessor.DelphiPreprocessorFactory;
import au.com.integradev.delphi.preprocessor.search.SearchPath;
import java.util.Set;
import javax.annotation.Nullable;
import org.sonar.plugins.communitydelphi.api.type.TypeFactory;
public class DefaultDelphiFileConfig implements DelphiFileConfig {
private final String encoding;
private final DelphiPreprocessorFactory preprocessorFactory;
private final TypeFactory typeFactory;
private final SearchPath searchPath;
private final Set definitions;
private final boolean skipImplementation;
DefaultDelphiFileConfig(
String encoding,
DelphiPreprocessorFactory preprocessorFactory,
TypeFactory typeFactory,
SearchPath searchPath,
Set definitions,
boolean skipImplementation) {
this.encoding = encoding;
this.preprocessorFactory = preprocessorFactory;
this.typeFactory = typeFactory;
this.searchPath = searchPath;
this.definitions = definitions;
this.skipImplementation = skipImplementation;
}
@Nullable
@Override
public String getEncoding() {
return encoding;
}
@Override
public DelphiPreprocessorFactory getPreprocessorFactory() {
return preprocessorFactory;
}
@Override
public TypeFactory getTypeFactory() {
return typeFactory;
}
@Override
public SearchPath getSearchPath() {
return searchPath;
}
@Override
public Set getDefinitions() {
return definitions;
}
@Override
public boolean shouldSkipImplementation() {
return skipImplementation;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy