Class Subject.MethodSubject

  • All Implemented Interfaces:
    Subject
    Enclosing interface:
    Subject

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

      • MethodSubject

        public MethodSubject​(MethodEntry method,
                             EvalContext context)
        Binds the cursor to a method.
        Parameters:
        method - the method to bind
        context - the shared evaluation context
    • Method Detail

      • method

        public MethodEntry method()
        Returns:
        the bound method
      • 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