- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for ClassNode (0.17 sec)
-
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) -
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) -
subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/CustomCompilationUnit.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 22 10:43:11 UTC 2021 - 4K bytes - Viewed (0) -
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) -
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) -
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) -
subprojects/core/src/test/groovy/org/gradle/internal/installation/GradleRuntimeShadedJarDetectorTest.groovy
TestFile classFile = contents.createFile("${CLASS_NAME}.class") ClassNode classNode = new ClassNode() classNode.version = Opcodes.V1_6 classNode.access = Opcodes.ACC_PUBLIC classNode.name = CLASS_NAME 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 Mar 06 01:29:26 UTC 2020 - 3.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ClasspathDependenciesAttributesIntegrationTest.groovy
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: Tue Oct 10 21:10:11 UTC 2023 - 7.4K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseAstTransformThatReferencesGroovyTestCase/src/main/groovy/TestCaseTransform.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 TestCaseTransform 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 - 1.1K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseThirdPartyAstTransform/src/main/java/MagicFieldTransform.java
public void visit(ASTNode[] nodes, SourceUnit source) { ClassNode clazz = (ClassNode) nodes[1]; clazz.addField("magicField", Modifier.PUBLIC, ClassHelper.STRING_TYPE, new ConstantExpression("magicValue")); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 707 bytes - Viewed (0)