Search in sources :

Example 6 with SourceDirectoryDslElement

use of com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement in project android by JetBrains.

the class SourceSetModel method renderscript.

@NotNull
public SourceDirectoryModel renderscript() {
    SourceDirectoryDslElement renderscript = myDslElement.getPropertyElement(RENDERSCRIPT, SourceDirectoryDslElement.class);
    if (renderscript == null) {
        renderscript = new SourceDirectoryDslElement(myDslElement, RENDERSCRIPT);
        myDslElement.setNewElement(RENDERSCRIPT, renderscript);
    }
    return new SourceDirectoryModel(renderscript);
}
Also used : SourceDirectoryModel(com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel) SourceDirectoryDslElement(com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement) NotNull(org.jetbrains.annotations.NotNull)

Example 7 with SourceDirectoryDslElement

use of com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement in project android by JetBrains.

the class SourceSetModel method aidl.

@NotNull
public SourceDirectoryModel aidl() {
    SourceDirectoryDslElement aidl = myDslElement.getPropertyElement(AIDL, SourceDirectoryDslElement.class);
    if (aidl == null) {
        aidl = new SourceDirectoryDslElement(myDslElement, AIDL);
        myDslElement.setNewElement(AIDL, aidl);
    }
    return new SourceDirectoryModel(aidl);
}
Also used : SourceDirectoryModel(com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel) SourceDirectoryDslElement(com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement) NotNull(org.jetbrains.annotations.NotNull)

Example 8 with SourceDirectoryDslElement

use of com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement in project android by JetBrains.

the class SourceSetModel method jniLibs.

@NotNull
public SourceDirectoryModel jniLibs() {
    SourceDirectoryDslElement jniLibs = myDslElement.getPropertyElement(JNI_LIBS, SourceDirectoryDslElement.class);
    if (jniLibs == null) {
        jniLibs = new SourceDirectoryDslElement(myDslElement, JNI_LIBS);
        myDslElement.setNewElement(JNI_LIBS, jniLibs);
    }
    return new SourceDirectoryModel(jniLibs);
}
Also used : SourceDirectoryModel(com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel) SourceDirectoryDslElement(com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement) NotNull(org.jetbrains.annotations.NotNull)

Example 9 with SourceDirectoryDslElement

use of com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement in project android by JetBrains.

the class SourceSetModel method res.

@NotNull
public SourceDirectoryModel res() {
    SourceDirectoryDslElement res = myDslElement.getPropertyElement(RES, SourceDirectoryDslElement.class);
    if (res == null) {
        res = new SourceDirectoryDslElement(myDslElement, RES);
        myDslElement.setNewElement(RES, res);
    }
    return new SourceDirectoryModel(res);
}
Also used : SourceDirectoryModel(com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel) SourceDirectoryDslElement(com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

SourceDirectoryDslElement (com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceDirectoryDslElement)9 SourceDirectoryModel (com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel)8 NotNull (org.jetbrains.annotations.NotNull)8 CMakeDslElement (com.android.tools.idea.gradle.dsl.parser.android.externalNativeBuild.CMakeDslElement)1 NdkBuildDslElement (com.android.tools.idea.gradle.dsl.parser.android.externalNativeBuild.NdkBuildDslElement)1 ExternalNativeBuildOptionsDslElement (com.android.tools.idea.gradle.dsl.parser.android.productFlavors.ExternalNativeBuildOptionsDslElement)1 NdkOptionsDslElement (com.android.tools.idea.gradle.dsl.parser.android.productFlavors.NdkOptionsDslElement)1 CMakeOptionsDslElement (com.android.tools.idea.gradle.dsl.parser.android.productFlavors.externalNativeBuild.CMakeOptionsDslElement)1 NdkBuildOptionsDslElement (com.android.tools.idea.gradle.dsl.parser.android.productFlavors.externalNativeBuild.NdkBuildOptionsDslElement)1 SourceFileDslElement (com.android.tools.idea.gradle.dsl.parser.android.sourceSets.SourceFileDslElement)1 AbiDslElement (com.android.tools.idea.gradle.dsl.parser.android.splits.AbiDslElement)1 DensityDslElement (com.android.tools.idea.gradle.dsl.parser.android.splits.DensityDslElement)1 LanguageDslElement (com.android.tools.idea.gradle.dsl.parser.android.splits.LanguageDslElement)1 UnitTestsDslElement (com.android.tools.idea.gradle.dsl.parser.android.testOptions.UnitTestsDslElement)1 ApplyDslElement (com.android.tools.idea.gradle.dsl.parser.apply.ApplyDslElement)1 BuildScriptDslElement (com.android.tools.idea.gradle.dsl.parser.build.BuildScriptDslElement)1 SubProjectsDslElement (com.android.tools.idea.gradle.dsl.parser.build.SubProjectsDslElement)1 DependenciesDslElement (com.android.tools.idea.gradle.dsl.parser.dependencies.DependenciesDslElement)1 ExtDslElement (com.android.tools.idea.gradle.dsl.parser.ext.ExtDslElement)1 FlatDirRepositoryDslElement (com.android.tools.idea.gradle.dsl.parser.repositories.FlatDirRepositoryDslElement)1