Class AjClassFile

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.ClassFile
org.aspectj.ajdt.internal.compiler.AjClassFile
All Implemented Interfaces:
TypeConstants, TypeIds

public class AjClassFile extends ClassFile
Author:
colyer XXX lightweight subclass of ClassFile that only genuinely supports fileName and getBytes operations. This nasty hack enables us to keep the rest of the implementation much simpler.
  • Constructor Details

    • AjClassFile

      public AjClassFile(char[] fileName, byte[] byteCodes)
  • Method Details

    • fileName

      public char[] fileName()
      Description copied from class: ClassFile
      INTERNAL USE-ONLY This methods returns a char[] representing the file name of the receiver
      Overrides:
      fileName in class ClassFile
      Returns:
      char[]
    • getBytes

      public byte[] getBytes()
      Description copied from class: ClassFile
      EXTERNAL API Answer the actual bytes of the class file This method encodes the receiver structure into a byte array which is the content of the classfile. Returns the byte array that represents the encoded structure of the receiver.
      Overrides:
      getBytes in class ClassFile
      Returns:
      byte[]