Search in sources :

Example 1 with JavaDslElement

use of com.android.tools.idea.gradle.dsl.parser.java.JavaDslElement in project android by JetBrains.

the class GradleBuildModel method java.

@NotNull
public JavaModel java() {
    JavaDslElement javaDslElement = myGradleDslFile.getPropertyElement(JAVA_BLOCK_NAME, JavaDslElement.class);
    if (javaDslElement == null) {
        javaDslElement = new JavaDslElement(myGradleDslFile);
        myGradleDslFile.setNewElement(JAVA_BLOCK_NAME, javaDslElement);
    }
    return new JavaModel(javaDslElement);
}
Also used : JavaDslElement(com.android.tools.idea.gradle.dsl.parser.java.JavaDslElement) JavaModel(com.android.tools.idea.gradle.dsl.model.java.JavaModel) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

JavaModel (com.android.tools.idea.gradle.dsl.model.java.JavaModel)1 JavaDslElement (com.android.tools.idea.gradle.dsl.parser.java.JavaDslElement)1 NotNull (org.jetbrains.annotations.NotNull)1