Enum SubjectKind

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARG
      One argument of a call site, which inherits that call's evaluation context.
      BOOTSTRAP_ARG
      A static bootstrap argument, identified only by its constant pool index; dynamic ones bind as DYNAMIC instead.
      CALL
      An invocation site, narrower than INSTRUCTION and the owner of its argument subjects.
      CLASS
      A whole class file, the outermost level a query can bind to.
      DYNAMIC
      An invokedynamic call site or dynamic constant, carrying its resolved bootstrap.
      FIELD_ACCESS
      One site that reads or writes a field, covering both directions.
      INSTRUCTION
      A single instruction in a method body, identified by its position there.
      METHOD
      A single method, the level attributes about a body as a whole resolve against.
      PARAM
      A parameter declared in a method signature, the callee-side counterpart of ARG.
    • Enum Constant Detail

      • CLASS

        public static final SubjectKind CLASS
        A whole class file, the outermost level a query can bind to.
      • METHOD

        public static final SubjectKind METHOD
        A single method, the level attributes about a body as a whole resolve against.
      • INSTRUCTION

        public static final SubjectKind INSTRUCTION
        A single instruction in a method body, identified by its position there.
      • CALL

        public static final SubjectKind CALL
        An invocation site, narrower than INSTRUCTION and the owner of its argument subjects.
      • ARG

        public static final SubjectKind ARG
        One argument of a call site, which inherits that call's evaluation context.
      • PARAM

        public static final SubjectKind PARAM
        A parameter declared in a method signature, the callee-side counterpart of ARG.
      • FIELD_ACCESS

        public static final SubjectKind FIELD_ACCESS
        One site that reads or writes a field, covering both directions.
      • DYNAMIC

        public static final SubjectKind DYNAMIC
        An invokedynamic call site or dynamic constant, carrying its resolved bootstrap.
      • BOOTSTRAP_ARG

        public static final SubjectKind BOOTSTRAP_ARG
        A static bootstrap argument, identified only by its constant pool index; dynamic ones bind as DYNAMIC instead.
    • Method Detail

      • values

        public static SubjectKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SubjectKind c : SubjectKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubjectKind valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null