- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for magicValue (0.53 sec)
-
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseAstTransformWrittenInGroovy/src/main/groovy/GroovyMagicFieldTransform.groovy
void visit(ASTNode[] nodes, SourceUnit source) { def 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 - 683 bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseAstTransformWrittenInGroovy/src/test/groovy/GroovyMagicFieldTransformTest.groovy
import org.junit.Test @GroovyMagicField class GroovyMagicFieldTransformTest { @Test void transformHasBeenApplied() { assert getClass().declaredFields.find { it.name == "magicField" } assert magicField == "magicValue" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 250 bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseThirdPartyAstTransform/src/test/groovy/MagicFieldTransformTest.groovy
@MagicField @MagicInterface class MagicFieldTransformTest { @Test void transformHasBeenApplied() { assert getClass().declaredFields.find { it.name == "magicField" } assert magicField == "magicValue" assert this instanceof Marker }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 292 bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseAstTransformWithAsm/src/test/groovy/GroovyMagicFieldTransformTest.groovy
import org.junit.Test @GroovyMagicField class GroovyMagicFieldTransformTest { @Test void transformHasBeenApplied() { assert getClass().declaredFields.find { it.name == "magicField" } assert magicField == "magicValue" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 250 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) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseAstTransformWithAsm/src/main/groovy/GroovyMagicFieldTransform.groovy
StringExpressionThroughAsm() { super(ClassHelper.STRING_TYPE) } @Override void visit(MethodVisitor methodVisitor) { methodVisitor.visitLdcInsn("magicValue") } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 1K bytes - Viewed (0)