Class Context


  • final class Context
    extends java.lang.Object
    Information about a class being parsed in a ClassReader.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int access
      The access flags of the method currently being parsed.
      (package private) Attribute[] attrs
      Prototypes of the attributes that must be parsed for this class.
      (package private) int[] bootstrapMethods
      The start index of each bootstrap method.
      (package private) char[] buffer
      The buffer used to read strings.
      (package private) java.lang.String desc
      The descriptor of the method currently being parsed.
      (package private) Label[] end
      The labels corresponding to the end of the local variable ranges in the local variable type annotation currently being parsed.
      (package private) int flags
      The ClassReader option flags for the parsing of this class.
      (package private) int[] index
      The local variable indices for each local variable range in the local variable type annotation currently being parsed.
      (package private) Label[] labels
      The label objects, indexed by bytecode offset, of the method currently being parsed (only bytecode offsets for which a label is needed have a non null associated Label object).
      (package private) java.lang.Object[] local
      The local values of the latest stack map frame that has been parsed.
      (package private) int localCount
      The number of locals in the latest stack map frame that has been parsed.
      (package private) int localDiff
      The number locals in the latest stack map frame that has been parsed, minus the number of locals in the previous frame.
      (package private) int mode
      The encoding of the latest stack map frame that has been parsed.
      (package private) java.lang.String name
      The name of the method currently being parsed.
      (package private) int offset
      The offset of the latest stack map frame that has been parsed.
      (package private) java.lang.Object[] stack
      The stack values of the latest stack map frame that has been parsed.
      (package private) int stackCount
      The stack size of the latest stack map frame that has been parsed.
      (package private) Label[] start
      The labels corresponding to the start of the local variable ranges in the local variable type annotation currently being parsed.
      (package private) TypePath typePath
      The path of the type annotation currently being parsed.
      (package private) int typeRef
      The target of the type annotation currently being parsed.
    • Constructor Summary

      Constructors 
      Constructor Description
      Context()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • attrs

        Attribute[] attrs
        Prototypes of the attributes that must be parsed for this class.
      • flags

        int flags
        The ClassReader option flags for the parsing of this class.
      • buffer

        char[] buffer
        The buffer used to read strings.
      • bootstrapMethods

        int[] bootstrapMethods
        The start index of each bootstrap method.
      • access

        int access
        The access flags of the method currently being parsed.
      • name

        java.lang.String name
        The name of the method currently being parsed.
      • desc

        java.lang.String desc
        The descriptor of the method currently being parsed.
      • labels

        Label[] labels
        The label objects, indexed by bytecode offset, of the method currently being parsed (only bytecode offsets for which a label is needed have a non null associated Label object).
      • typeRef

        int typeRef
        The target of the type annotation currently being parsed.
      • typePath

        TypePath typePath
        The path of the type annotation currently being parsed.
      • offset

        int offset
        The offset of the latest stack map frame that has been parsed.
      • start

        Label[] start
        The labels corresponding to the start of the local variable ranges in the local variable type annotation currently being parsed.
      • end

        Label[] end
        The labels corresponding to the end of the local variable ranges in the local variable type annotation currently being parsed.
      • index

        int[] index
        The local variable indices for each local variable range in the local variable type annotation currently being parsed.
      • mode

        int mode
        The encoding of the latest stack map frame that has been parsed.
      • localCount

        int localCount
        The number of locals in the latest stack map frame that has been parsed.
      • localDiff

        int localDiff
        The number locals in the latest stack map frame that has been parsed, minus the number of locals in the previous frame.
      • local

        java.lang.Object[] local
        The local values of the latest stack map frame that has been parsed.
      • stackCount

        int stackCount
        The stack size of the latest stack map frame that has been parsed.
      • stack

        java.lang.Object[] stack
        The stack values of the latest stack map frame that has been parsed.
    • Constructor Detail

      • Context

        Context()