Class MethodReader


public final class MethodReader extends AnnotatedReader
  • Constructor Details

  • Method Details

    • readMethods

      public @org.checkerframework.checker.index.qual.NonNegative int readMethods()
      Reads each method and constructor in the class, making the class reader's visitor visit it.
      Returns:
      the offset of the first byte following the last method in the class
    • readAttribute

      @Nullable protected Boolean readAttribute(@NonNull String attributeName)
      Description copied from class: AnnotatedReader
      Attempts to read the next attribute, provided it's one recognizable by the implementing subclass.
      Specified by:
      readAttribute in class AnnotatedReader
      Parameters:
      attributeName - the attribute name
      Returns:
      true if BytecodeReader.codeIndex is already pointing to the next attribute in the classfile, false or null otherwise; in the case of null, the current attribute was not yet identified, but is one of the more general ones ("RuntimeVisibleAnnotations", "Deprecated", or "Synthetic")