Is there a way to get source files as a result of AspectJ compilation? So instead of getting bytecode, ajc works as a preprocessor that generates Java sources that can be compiled with javac?
AspectJ compile-time weaving - getting output source code?
652 Views Asked by TFuto At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in PREPROCESSOR
- What preprocessor can I used to detect if QT is used to build my codes
- Modifying individual field form inputs (CSS, Placeholder, etc) Drupal 7 registration form preprocess
- Cxx11 ABI for a single function call?
- How to adjust scaled scikit-learn Logicistic Regression coeffs to score a non-scaled dataset?
- endPosTable already set when adding sourceSet
- Pre process arguments passed to all instance methods in Python
- How to write similar functions in Common Lisp?
- gdb API preprocessor macro
- Copy SRC directory with adding a prefix to all c-library functions
- Mechanics Fortran Preprocessor
- Add preprocessor macro to a target in xcode 6
- NASM Assembler, how to define label twice?
- Stripping code of #define
- Why isn't my cocoapods post_install hook updating my preprocessor macros?
- lexical and preprocessor issues ios on project rename
Related Questions in ASPECTJ
- What are benefits of using Aspectj in Spring config, if aspectj can be used alone
- pointcut execution for specific class constructor
- AspectJ declaremixin with class level annotation not matching
- Create a pointcut based on annotation parameters
- Getting java.lang.ClassFormatError: Duplicate method name&signature in class file when implementing PERTHIS aspectJ implementation in Wildfly 8
- How to get the pointcut details in the aspect constructor
- Eclipse not compiling because of ClassNotFoundException
- Dependency Injection into Spring non-managed beans
- NodeEntity attributes are NULL after transaction closed when using AspectJ
- Why is aspectj weaving Aspects from my test folder into my source classes (as opposed to the test classes)?
- Aspectj: Pointcut on lambda expression
- How export Eclipse 3.7 rcp product with AspectJ support?
- aspectj within a maven plugin fails to call pointcut
- How to enable autowire support within unmanaged class in spring using aspectj?
- AspectJ pointcuts in Scala using SBT
Related Questions in COMPILE-TIME-WEAVING
- @Configurable doesn't work for objects initialized in @PostConstruct methods
- Aspectj compile time weaving based transactions not working (JPA from a WebService call)
- Plugin 'AspectJ weaver' failed to initialize "java.lang.NoClassDefFoundError: com/intellij/openapi/compiler/ClassInstrumentingCompiler"
- Problems changing from Load Time Weaver to Compile Time Weaver in Spring
- How to distinguish generated methods (AspectJ)
- How to use load time weaving without -javaagent?
- Equinox Weaving doesn't work in Virgo tomcat
- Confused how ajc works with javac
- TypeScript code weaving
- How to add @Priority annotation with different values in aspectJ
- AspectJ compile-time weaving - getting output source code?
- postsharp 3 introduce/remove constructor aspect
- Compile time weaving for DI in non-spring managed classes
- The persistence doesn't recognize the entity class
- eclipselink static weaving with final fields on Java 9
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Since version 1.2 AspectJ has been a bytecode transformer, not a source transformer. For any recent version you cannot get sources directly out of AspectJ. You could use a decompiler/disassembler to go from the compiled bytecode back to sources but those sources may not look pretty.
You don't have to compile your aspects with the rest of your application code if that is your concern (i.e. that you want to build your app with javac)? You can compile your application with javac and then apply the aspects directly to the bytecode that javac produced in a binary weaving step.