Search in sources :

Example 11 with GradleDslElementList

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;
}
Also used : GradleDslElementList(com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElementList) NotNull(org.jetbrains.annotations.NotNull)

Example 12 with GradleDslElementList

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;
}
Also used : GradleDslElementList(com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElementList) NotNull(org.jetbrains.annotations.NotNull)

Example 13 with GradleDslElementList

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);
}
Also used : GradleDslElementList(com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElementList)

Aggregations

GradleDslElementList (com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElementList)13 NotNull (org.jetbrains.annotations.NotNull)9 GradleDslElement (com.android.tools.idea.gradle.dsl.parser.elements.GradleDslElement)2 GradleDslMethodCall (com.android.tools.idea.gradle.dsl.parser.elements.GradleDslMethodCall)2 GradleDslExpressionList (com.android.tools.idea.gradle.dsl.parser.elements.GradleDslExpressionList)1 GradleDslExpressionMap (com.android.tools.idea.gradle.dsl.parser.elements.GradleDslExpressionMap)1 ArrayList (java.util.ArrayList)1