Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for classBody (0.19 sec)

  1. 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)
  2. 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)
  3. 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 (0)
  4. 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)
  5. 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)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/ClassData.java

            this.classNode = Lazy.unsafe().of(() -> {
                ClassNode classNode = new ClassNode();
                reader.accept(classNode, 0);
                return classNode;
            });
            this.classContent = content;
            this.typeRegistry = typeRegistry;
        }
    
        public byte[] getClassContent() {
            return classContent;
        }
    
        public ClassNode readClassAsNode() {
            return classNode.get();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 20:14:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/CustomCompilationUnit.java

                }
    
                @Override
                public void call(SourceUnit source, GeneratorContext context, ClassNode classNode) throws CompilationFailedException {
                    customVerifier.execute(classNode);
                    realClassgen.call(source, context, classNode);
                }
            };
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 22 10:43:11 UTC 2021
    - 4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/ClosureCreationInterceptingVerifier.java

    import org.codehaus.groovy.ast.ClassNode;
    import org.gradle.api.Action;
    
    /**
     * The verifier is the only thing in the Groovy compiler chain that gets to visit the classes generated from closure expressions. If we want to transform these classes, we have to do it with this
     * *hack*.
     */
    @ThreadSafe
    public class ClosureCreationInterceptingVerifier implements Action<ClassNode> {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/internal/installation/CurrentGradleInstallationLocatorTest.groovy

            TestFile classFile = contents.createFile('org/gradle/MyClass.class')
    
            ClassNode classNode = new ClassNode()
            classNode.version = Opcodes.V1_6
            classNode.access = Opcodes.ACC_PUBLIC
            classNode.name = 'org/gradle/MyClass'
            classNode.superName = 'java/lang/Object'
    
            ClassWriter cw = new ClassWriter(0)
            classNode.accept(cw)
    
            classFile.withDataOutputStream {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseThirdPartyAstTransform/src/main/java/MagicInterfaceTransform.java

    import org.codehaus.groovy.ast.ClassNode;
    import org.codehaus.groovy.control.SourceUnit;
    import org.codehaus.groovy.transform.ASTTransformation;
    import org.codehaus.groovy.transform.GroovyASTTransformation;
    
    @GroovyASTTransformation
    public class MagicInterfaceTransform implements ASTTransformation {
        public void visit(ASTNode[] nodes, SourceUnit source) {
            ClassNode clazz = (ClassNode) nodes[1];
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 514 bytes
    - Viewed (0)
Back to top