- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for classBody (0.42 sec)
-
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/compile/AbstractCompileAvoidanceIntegrationTest.kt
} protected fun givenJavaClassInBuildSrcContains(classBody: String, classAnnotations: String = ""): String = javaSourceFile("buildSrc", classBody, classAnnotations) protected fun givenKotlinClassInBuildSrcContains(classBody: String): String { withKotlinDslPluginInBuildSrc() return kotlinClassSourceFile("buildSrc", classBody) } protected
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Sep 24 17:45:43 UTC 2023 - 4.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/normalization/KotlinApiClassExtractorTest.kt
private fun compileClass(className: String, classBody: String): ClassFixture { return compileScript( className, """ class $className { $classBody } """, "$className.class" ) } private fun compileObject(objectName: String, classBody: String): ClassFixture { return compileScript(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 19:59:56 UTC 2023 - 12K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/compile/BuildScriptCompileAvoidanceIntegrationTest.kt
""" ) val className = javaSourceFile(baseDir, classBody) build(existing(baseDir), "build") val jarPath = "$baseDir/build/libs/buildscript.jar" assertTrue(existing(jarPath).exists()) return Pair(className, jarPath) } private fun buildKotlinJarForBuildScriptClasspath(classBody: String): Pair<String, String> { val baseDir = "buildscript"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Sep 24 17:45:42 UTC 2023 - 19.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/bytecode/AsmExtensions.kt
import kotlin.reflect.KClass fun publicClass( name: InternalName, superName: InternalName? = null, interfaces: List<InternalName>? = null, classBody: ClassWriter.() -> Unit = {} ) = beginPublicClass(name, superName, interfaces).run { classBody() endClass() } internal fun beginPublicClass(name: InternalName, superName: InternalName? = null, interfaces: List<InternalName>? = null) =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 7.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/bytecode/KotlinMetadata.kt
import java.io.File internal fun publicKotlinClass( internalClassName: InternalName, header: KotlinClassHeader, classBody: ClassWriter.() -> Unit ): ByteArray = publicClass(internalClassName) { visitKotlinMetadataAnnotation(header) classBody() } internal fun writeFileFacadeClassHeader( moduleName: String, kmPackage: KmPackage.() -> Unit
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:46 UTC 2024 - 9.2K bytes - Viewed (1) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/bytecode/AsmExtensions.kt
internal fun publicClass( name: InternalName, superName: InternalName? = null, interfaces: List<InternalName>? = null, classBody: ClassWriter.() -> Unit = {} ) = beginPublicClass(name, superName, interfaces).run { classBody() endClass() } internal fun beginPublicClass(name: InternalName, superName: InternalName? = null, interfaces: List<InternalName>? = null) =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 8.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompiler.kt
"(Lorg/gradle/kotlin/dsl/support/KotlinScriptHost;)V" private inline fun <reified T : ExecutableProgram> program(noinline classBody: ClassWriter.() -> Unit = {}) { program(T::class.internalName, classBody) } private fun program(superName: InternalName, classBody: ClassWriter.() -> Unit = {}) { writeFile( "Program.class",
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:45 UTC 2024 - 27.1K bytes - Viewed (0) -
platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryCompilationIntegrationTest.groovy
buildSharedJar('1.0', 'class Foo {}') } private void publishSharedV11() { buildSharedJar('1.1', 'class Foo { int x }') } private void buildSharedJar(String version, String classBody) { def jar = mavenRepo.module('org.gradle.test', 'shared', version).publish().artifactFile def configuration = new CompilerConfiguration() def bytes = null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 18 13:02:41 UTC 2024 - 14K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/LambdaInputsIntegrationTest.groovy
private static String javaClass(String className, String classBody) { """ import org.gradle.api.Action; import org.gradle.api.Task; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.util.function.Consumer; public class ${className} { ${classBody} } """ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 09:08:49 UTC 2023 - 18.5K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseAstTransformWrittenInGroovy/src/main/groovy/GroovyMagicFieldTransform.groovy
import org.codehaus.groovy.ast.ASTNode import org.codehaus.groovy.ast.ClassHelper import org.codehaus.groovy.ast.ClassNode import org.codehaus.groovy.ast.expr.ConstantExpression import org.codehaus.groovy.control.SourceUnit import org.codehaus.groovy.transform.ASTTransformation import org.codehaus.groovy.transform.GroovyASTTransformation import java.lang.reflect.Modifier @GroovyASTTransformation
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 683 bytes - Viewed (0)