org.netbeans.api.debugger.jpda/2 2.31.1

org.netbeans.spi.debugger.jpda
Interface Evaluator<PreprocessedInfo>


public interface Evaluator<PreprocessedInfo>

Evaluator service for a language that compiles into bytecode. Implementation class should register using the annotation Evaluator.Registration for the desired language.

Since:
2.21

Nested Class Summary
static class Evaluator.Context
          Context of the evaluation.
static class Evaluator.Expression<PreprocessedInfo>
          Representation of an expression that is a subject of evaluation.
static interface Evaluator.Registration
          Declarative registration of Evaluator implementation.
static class Evaluator.Result
          Evaluation result.
 
Method Summary
 Evaluator.Result evaluate(Evaluator.Expression<PreprocessedInfo> expression, Evaluator.Context context)
          Evaluates given expression and provide the result.
 

Method Detail

evaluate

Evaluator.Result evaluate(Evaluator.Expression<PreprocessedInfo> expression,
                          Evaluator.Context context)
                          throws InvalidExpressionException
Evaluates given expression and provide the result.

Parameters:
expression - the expression to be evaluated
context - the context in which the expression is evaluated
Returns:
value of evaluated expression
Throws:
InvalidExpressionException - when the expression is invalid or other error occurs during the evaluation process.

org.netbeans.api.debugger.jpda/2 2.31.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.