use of com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel in project android by JetBrains.
the class SourceSetModel method resources.
@NotNull
public SourceDirectoryModel resources() {
SourceDirectoryDslElement resources = myDslElement.getPropertyElement(RESOURCES, SourceDirectoryDslElement.class);
if (resources == null) {
resources = new SourceDirectoryDslElement(myDslElement, RESOURCES);
myDslElement.setNewElement(RESOURCES, resources);
}
return new SourceDirectoryModel(resources);
}
use of com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel in project android by JetBrains.
the class SourceSetModel method assets.
@NotNull
public SourceDirectoryModel assets() {
SourceDirectoryDslElement assets = myDslElement.getPropertyElement(ASSETS, SourceDirectoryDslElement.class);
if (assets == null) {
assets = new SourceDirectoryDslElement(myDslElement, ASSETS);
myDslElement.setNewElement(ASSETS, assets);
}
return new SourceDirectoryModel(assets);
}
use of com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel in project android by JetBrains.
the class SourceSetModel method java.
@NotNull
public SourceDirectoryModel java() {
SourceDirectoryDslElement java = myDslElement.getPropertyElement(JAVA, SourceDirectoryDslElement.class);
if (java == null) {
java = new SourceDirectoryDslElement(myDslElement, JAVA);
myDslElement.setNewElement(JAVA, java);
}
return new SourceDirectoryModel(java);
}
use of com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel 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);
}
use of com.android.tools.idea.gradle.dsl.model.android.sourceSets.SourceDirectoryModel 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);
}
Aggregations