Class Subject.ArgSubject

  • All Implemented Interfaces:
    Subject
    Enclosing interface:
    Subject

    public static final class Subject.ArgSubject
    extends Object
    implements Subject
    • Constructor Detail

      • ArgSubject

        public ArgSubject​(Subject.CallSubject call,
                          int argIndex)
        Binds the cursor to one argument of a call site, inheriting its context.
        Parameters:
        call - the call site the argument is passed to
        argIndex - the argument's position
    • Method Detail

      • argIndex

        public int argIndex()
        Returns:
        the argument's position in the call
      • 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