Hello, I'm trying to add a call to the StaticClassName.class
field access to an existing class using JDT
's Dom methods.
I get an IllegalArgumentException
when I try to create a simple name using ast.newSimpleName("class")
.
I think this is because JDT
treats it as a keyword when it is also used as a field name.
Is there anyway to make the JDT
to accept "class" as an identifier name or another way of access the class object? (it has to work in both static and non static methods)