Posts Tagged ‘asm’
Typesafe DSLs in Java: Part 1 — Typesafe Bytecode
Written by Jevgeni Kabanov on March 24, 2008 – 12:25 amDomain Specific Languages (DSLs) have been brought to Java under the name of Fluent Interface. However most of them utilize a lot of strings and untyped behavior to make the interface fluent enough. It turns out that using Java 5 and a bag of tricks we can have the compiler to check a lot more. In this post we’ll check out how to write Java bytecode using ASM in a typesafe way.
Tags: asm, bytecode, dsl, java
Posted in Featured, creative | 6 Comments »