Package com.tonic.analysis.query.eval
Class Subject.InstructionSubject
- java.lang.Object
-
- com.tonic.analysis.query.eval.Subject.InstructionSubject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tonic.analysis.query.eval.Subject
Subject.ArgSubject, Subject.BootstrapArgSubject, Subject.CallSubject, Subject.ClassSubject, Subject.DynamicSubject, Subject.FieldAccessSubject, Subject.InstructionSubject, Subject.MethodSubject, Subject.ParamSubject
-
-
Constructor Summary
Constructors Constructor Description InstructionSubject(Instruction instruction, int index, EvalContext context)Binds the cursor to one instruction of a method body.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvalContextcontext()intindex()Instructioninstruction()SubjectKindkind()
-
-
-
Constructor Detail
-
InstructionSubject
public InstructionSubject(Instruction instruction, int index, EvalContext context)
Binds the cursor to one instruction of a method body.- Parameters:
instruction- the instruction to bindindex- its position in the bodycontext- the shared evaluation context
-
-
Method Detail
-
instruction
public Instruction instruction()
- Returns:
- the bound instruction
-
index
public int index()
- Returns:
- the instruction's position in the method body
-
kind
public SubjectKind kind()
-
context
public EvalContext context()
-
-