Questions tagged [java-bytecode-asm]

ASM is a Java library used for JVM bytecode manipulation and creation.

ASM is a Java bytecode manipulation and analysis framework. It provides a library to read, write, transform, and analyze compiled Java classes, directly in the binary form of byte arrays. Its API allows easy access to class items such as annotations, fields, and methods. Instructions in methods can be analyzed, removed, or inserted as necessary. Output classes can be saved into files, or loaded dynamically by a ClassLoader.

Website: http://asm.ow2.org/

Document: ASM 4.0 A Java bytecode engineering library

798 questions
-3
votes
1 answer

access flag for default constructor in java

Could someone please tell which among ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED is the access modifier for default constructor in java? In some of the asm example I saw ACC_PUBLIC but I could not find jvm specification related to this…
nantitv
  • 3,539
  • 4
  • 38
  • 61
-3
votes
1 answer

Different byte code counts for same code

Hi I am trying to get the byte code count for some java codes using -XX:+CountBytecodes flag of Hotspot JVM. But this seems to give extremely dissimilar results when I perform parallel runs for the same code. Is this behavior expected? If yes, why?…
aichemzee
  • 91
  • 1
  • 6
-5
votes
1 answer

Java tool to perform a specific "Data Analysis" on ASM code

I need a particular "Data Analysis" on ASM code using a Java Class or anything that can be used on Eclipse. Specifically i need identify three step on a variable with this order: 1) Use; 2) Initialization; 3) Delete. Thanks.
paolo2988
  • 857
  • 3
  • 15
  • 31
1 2 3
53
54