Interface AsmClassReader.ForClassFileApi.JdkClassReader

Enclosing class:
AsmClassReader.ForClassFileApi

@Proxied("codes.rafael.asmjdkbridge.JdkClassReader") protected static interface AsmClassReader.ForClassFileApi.JdkClassReader
A dispatcher to interact with codes.rafael.asmjdkbridge.JdkClassReader.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Object classReader, org.objectweb.asm.ClassVisitor classVisitor, int flags)
    Accepts a class reader to visit the represented class file.
    int
    getAccess(Object classReader)
    Returns the access flags of the underlying codes.rafael.asmjdkbridge.JdkClassReader.
    getClassName(Object classReader)
    Returns the internal name of the represented type.
    getInterfaces(Object classReader)
    Returns an array of internal names of the represented type's interface types, or null if none.
    getSuperClass(Object classReader)
    Returns the internal name of the represented type's super class or null if there is none.
    boolean
    Checks if the supplied object is an instance of codes.rafael.asmjdkbridge.JdkClassReader.
    make(byte[] binaryRepresentation, org.objectweb.asm.Attribute[] attribute)
    Creates an instance of codes.rafael.asmjdkbridge.JdkClassReader.
  • Method Details

    • isInstance

      @Instance boolean isInstance(Object value)
      Checks if the supplied object is an instance of codes.rafael.asmjdkbridge.JdkClassReader.
      Parameters:
      value - The instance to evaluate.
      Returns:
      true if the supplied object is an instance of codes.rafael.asmjdkbridge.JdkClassReader.
    • make

      @IsConstructor Object make(byte[] binaryRepresentation, org.objectweb.asm.Attribute[] attribute)
      Creates an instance of codes.rafael.asmjdkbridge.JdkClassReader.
      Parameters:
      binaryRepresentation - The binary representation of a class file to represent through the reader.
      attribute - An array of attribute prototypes.
      Returns:
      A new instance of codes.rafael.asmjdkbridge.JdkClassReader.
    • getAccess

      int getAccess(Object classReader)
      Returns the access flags of the underlying codes.rafael.asmjdkbridge.JdkClassReader.
      Parameters:
      classReader - The class reader that is being queried.
      Returns:
      The access flags of the underlying codes.rafael.asmjdkbridge.JdkClassReader.
    • getClassName

      String getClassName(Object classReader)
      Returns the internal name of the represented type.
      Parameters:
      classReader - The class reader that is being queried.
      Returns:
      The internal name of the represented type.
    • getSuperClass

      @MaybeNull String getSuperClass(Object classReader)
      Returns the internal name of the represented type's super class or null if there is none.
      Parameters:
      classReader - The class reader that is being queried.
      Returns:
      The internal name of the represented type's super class or null if there is none.
    • getInterfaces

      @MaybeNull String[] getInterfaces(Object classReader)
      Returns an array of internal names of the represented type's interface types, or null if none.
      Parameters:
      classReader - The class reader that is being queried.
      Returns:
      An array of internal names of the represented type's interface types, or null if none.
    • accept

      void accept(Object classReader, org.objectweb.asm.ClassVisitor classVisitor, int flags)
      Accepts a class reader to visit the represented class file.
      Parameters:
      classReader - The class reader that is being visited.
      classVisitor - The class visitor to visit the class.
      flags - The flags to consider during reading.