use of com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElementList in project android by JetBrains.
the class DependenciesModel method addFileTree.
@NotNull
public DependenciesModel addFileTree(@NotNull String configurationName, @NotNull String dir, @Nullable List<String> includes, @Nullable List<String> excludes) {
GradleDslElementList list = getOrCreateGradleDslElementList(configurationName);
FileTreeDependencyModel.createAndAddToList(list, configurationName, dir, includes, excludes);
return this;
}
use of com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElementList in project android by JetBrains.
the class RepositoriesDslElement method getOrCreateRepositoriesElement.
@NotNull
private GradleDslElementList getOrCreateRepositoriesElement() {
GradleDslElementList elementList = getPropertyElement(REPOSITORIES_BLOCK_NAME, GradleDslElementList.class);
if (elementList == null) {
elementList = new GradleDslElementList(this, REPOSITORIES_BLOCK_NAME);
super.addParsedElement(REPOSITORIES_BLOCK_NAME, elementList);
}
return elementList;
}
use of com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElementList in project android by JetBrains.
the class RepositoriesDslElement method addParsedElement.
@Override
public void addParsedElement(@NotNull String name, @NotNull GradleDslElement repository) {
GradleDslElementList repositoriesListElement = getOrCreateRepositoriesElement();
repositoriesListElement.addParsedElement(repository);
}
Aggregations