bookmark

GitHub - jOOQ/jOOR: jOOR - Fluent Reflection in Java jOOR is a very simple fluent API that gives access to your Java Class structures in a more intuitive way. The JDK's reflection APIs are hard and verbose to use. Other languages have much simpler constructs to access type meta information at runtime. Let us make Java reflection better.


Description

Supplier<String> supplier = Reflect.compile( "com.example.HelloWorld", "package com.example;\n" + "class HelloWorld implements java.util.function.Supplier<String> {\n" + " public String get() {\n" + " return &quot;Hello World!&quot;;\n" + " }\n" + "}\n").create().get();

// Prints "Hello World!" System.out.println(supplier.get());

Preview

Tags

Users

  • @jil

Comments and Reviews