annotation-processing
Requestfactory Validation on Multi-Project Setup
I tried changing to the release version of gwt2.4 and run into a problem. I use multiple projects in my setup. I have a project with serversidecode, one project with shared code, that can be used in d[详细]
2023-04-12 15:02 分类:问答Java 6 annotation processing -- getting a class from an annotation
I have an custom annotation called @Pojo which I use for automatic wiki documentation generation: package com.example.annotations;[详细]
2023-04-11 16:41 分类:问答Can I get from a TypeVariable or VariableElement to a list of Methods on the underlying class In an annotation processor at compile time
I have an annotated class: public class CacheMessageHolder<TestMessage> implements MessageHolder<TestMessage> {[详细]
2023-03-25 19:00 分类:问答Accessing source code from Java Annotation Processor
I am trying to access the actual original source code of a type from 开发者_如何转开发within a Java Annotation Processor. Is this possible somehow? Thanks!I had a problem where I had to access some so[详细]
2023-03-13 05:52 分类:问答javax.lang.model: How do I get the type of a field?
In java.lang.reflect, one would do: Field someField = ...; Class<?> fieldType = someField.getType();[详细]
2023-01-31 02:56 分类:问答Java annotation processing: Accessing "Element"s of non-annotated classes possible?
Java annotation processing (since Java 6) is a very good concept, because it allows to access lots of information about classes and methods through the Element interface (and others).[详细]
2023-01-24 08:53 分类:问答Eclipse 3.5+ - Annotation processor: Generated classes cannot be imported
I am using a 3rd party annotation processor for generating meta-data code (.java files) from the annotated classes in my project.[详细]
2023-01-13 21:11 分类:问答How to capture an Enum from an AnnotationValue in an Annotation Processor
I am trying to read the value of an enum in an annotation using an annotation processor and annotation mirror, but I am getting back null. I think this has to do with the AnnotationValue wrapping an E[详细]
2023-01-04 01:32 分类:问答How to generate the JPA entity Metamodel?
In the spirit of type safety associated with the CriteriaQuery JPA 2.0 also has an API to support Metamodel representation of entities.[详细]
2023-01-03 14:55 分类:问答How do I get the type of the expression in a MemberSelectTree from a javac plugin?
I am trying to write an annotation processor in the JSR 269 format which uses javac\'s Compiler Tree API to do some source code analysis. I am interested in member select expressions, such as method c[详细]
2022-12-18 09:07 分类:问答