- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for magicField (0.13 sec)
-
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseThirdPartyAstTransform/src/main/java/MagicField.java
import org.codehaus.groovy.transform.GroovyASTTransformationClass; @GroovyASTTransformationClass({"MagicFieldTransform"})
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 155 bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseThirdPartyAstTransform/src/test/groovy/MagicFieldTransformTest.groovy
import org.junit.Test @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/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/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/canUseAstTransformWrittenInGroovy/src/main/groovy/GroovyMagicFieldTransform.groovy
@GroovyASTTransformation class GroovyMagicFieldTransform implements ASTTransformation { 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/canUseThirdPartyAstTransform/src/main/java/MagicFieldTransform.java
@GroovyASTTransformation public class MagicFieldTransform implements ASTTransformation { 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
@GroovyASTTransformation class GroovyMagicFieldTransform implements ASTTransformation, Opcodes { void visit(ASTNode[] nodes, SourceUnit source) { def clazz = (ClassNode) nodes[1] clazz.addField("magicField", ACC_PUBLIC, ClassHelper.STRING_TYPE, new StringExpressionThroughAsm()) } private class StringExpressionThroughAsm extends BytecodeExpression { StringExpressionThroughAsm() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 1K bytes - Viewed (0)