Package codeanalysis

Class EvaluationResult

java.lang.Object
codeanalysis.EvaluationResult

public class EvaluationResult extends Object
The EvaluationResult class represents the result of a code evaluation. It contains the computed value and any associated diagnostics.
Version:
1.0
Author:
Siyabend Urun
See Also:
  • Constructor Details

    • EvaluationResult

      public EvaluationResult(DiagnosticBox diagnostics, Object value)
      Creates a new instance of the EvaluationResult class with the specified diagnostics and value.
      Parameters:
      diagnostics - The diagnostics associated with the evaluation.
      value - The computed value of the evaluation.
  • Method Details

    • diagnostics

      public DiagnosticBox diagnostics()
      Retrieves the diagnostics box associated with the evaluation result.
      Returns:
      The diagnostics.
    • getValue

      public Object getValue()
      Retrieves the computed value of the evaluation.
      Returns:
      The computed value.