Class Subject.FieldAccessSubject

  • All Implemented Interfaces:
    Subject
    Enclosing interface:
    Subject

    public static final class Subject.FieldAccessSubject
    extends Object
    implements Subject
    A field read/write site; instruction is a GetField/PutField instruction.
    • Constructor Detail

      • FieldAccessSubject

        public FieldAccessSubject​(Instruction instruction,
                                  EvalContext context)
        Binds the cursor to a field read or write.
        Parameters:
        instruction - the field access instruction
        context - the shared evaluation context
    • Method Detail

      • instruction

        public Instruction instruction()
        Returns:
        the field access instruction
      • 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