Class Subject.ClassSubject

  • All Implemented Interfaces:
    Subject
    Enclosing interface:
    Subject

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

      • ClassSubject

        public ClassSubject​(ClassFile classFile,
                            EvalContext context)
        Binds the cursor to a class.
        Parameters:
        classFile - the class to bind
        context - the shared evaluation context
    • Method Detail

      • classFile

        public ClassFile classFile()
        Returns:
        the bound class
      • 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