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

org.netbeans.spi.debugger.jpda
Class Evaluator.Expression<PreprocessedInfo>

java.lang.Object
  extended by org.netbeans.spi.debugger.jpda.Evaluator.Expression<PreprocessedInfo>
Enclosing interface:
Evaluator<PreprocessedInfo>

public static final class Evaluator.Expression<PreprocessedInfo>
extends Object

Representation of an expression that is a subject of evaluation. String expressions are evaluated. But this class allows to attach a custom preprocessed structure to the expression, which can be used on subsequent evaluations of the same expression. Clients can, but does not have to, set a pre-processed object and during repeated evaluations of the same expression use that pre-processed object to speed up the evaluation. The preprocessed object should not be Evaluator.Context-sensitive.


Constructor Summary
Evaluator.Expression(String expression)
          Creates a new expression from the string representation.
 
Method Summary
 String getExpression()
          Get the string representation of this expression.
 PreprocessedInfo getPreprocessedObject()
          Get the pre-processed object of the string expression.
 void setPreprocessedObject(PreprocessedInfo preprocessed)
          Set a pre-processed object of the string expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluator.Expression

public Evaluator.Expression(String expression)
Creates a new expression from the string representation.

Parameters:
expression - The string expression.
Method Detail

getExpression

public String getExpression()
Get the string representation of this expression.

Returns:
string expression

setPreprocessedObject

public void setPreprocessedObject(PreprocessedInfo preprocessed)
Set a pre-processed object of the string expression. A custom, client-specific object is expected, which represents the expression. This can be a syntax tree structure or whatever that speeds up repeated evaluations of the same expression.

Parameters:
preprocessed - object holding the information about pre-processed expression

getPreprocessedObject

public PreprocessedInfo getPreprocessedObject()
Get the pre-processed object of the string expression. The object set by setPreprocessedObject(java.lang.Object) is returned.

Returns:
the preprocessed object or null.

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

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