Using code snippet below in an ANnotationProcessor, null is always returned.
static class testClassVisitor extends SimpleDeclarationVisitor {
public void visitFieldDeclaration(FieldDeclaration d) {
if (d.getConstantValue() != null)
System.out.println(d.getSimpleName()+ " = " + d.getConstantValue().toString() );
}
}
###@###.### 2004-03-04
static class testClassVisitor extends SimpleDeclarationVisitor {
public void visitFieldDeclaration(FieldDeclaration d) {
if (d.getConstantValue() != null)
System.out.println(d.getSimpleName()+ " = " + d.getConstantValue().toString() );
}
}
###@###.### 2004-03-04