Class Subject.BootstrapArgSubject

  • All Implemented Interfaces:
    Subject
    Enclosing interface:
    Subject

    public static final class Subject.BootstrapArgSubject
    extends Object
    implements Subject
    A non-dynamic static bootstrap argument, identified by its constant-pool index.
    • Constructor Detail

      • BootstrapArgSubject

        public BootstrapArgSubject​(int cpIndex,
                                   EvalContext context)
        Binds the cursor to a static bootstrap argument.
        Parameters:
        cpIndex - the argument's constant pool index
        context - the shared evaluation context
    • Method Detail

      • cpIndex

        public int cpIndex()
        Returns:
        the argument's constant pool index
      • kind

        public SubjectKind kind()
        Specified by:
        kind in interface Subject
        Returns:
        which variant this subject is, selecting the attributes that apply to it
      • context

        public EvalContext context()
        Specified by:
        context in interface Subject
        Returns:
        the evaluation context shared across every subject in a run