Other than the fact that class is a keyword so this would not compile: >> Is it possible to do something like: >> AbstractClass class = #{System.out.println("abstract class")}; ^