org.aspectj.org.eclipse.jdt.internal.eval
Class VariablesEvaluator

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.eval.Evaluator
      extended by org.aspectj.org.eclipse.jdt.internal.eval.VariablesEvaluator
All Implemented Interfaces:
EvaluationConstants

public class VariablesEvaluator
extends Evaluator
implements EvaluationConstants

A variables evaluator compiles the global variables of an evaluation context and returns the corresponding class files. Or it reports problems against these variables.


Field Summary
 
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.eval.EvaluationConstants
CODE_SNIPPET_CLASS_NAME_PREFIX, CODE_SNIPPET_NAME, DELEGATE_THIS, GLOBAL_VARS_CLASS_NAME_PREFIX, LOCAL_VAR_PREFIX, PACKAGE_NAME, RESULT_TYPE_FIELD, RESULT_VALUE_FIELD, ROOT_CLASS_NAME, ROOT_COMPOUND_NAME, ROOT_FULL_CLASS_NAME, RUN_METHOD, SETRESULT_ARGUMENTS, SETRESULT_SELECTOR
 
Method Summary
protected  void addEvaluationResultForCompilationProblem(java.util.Map resultsByIDs, CategorizedProblem problem, char[] cuSource)
          Adds the given problem to the corresponding evaluation result in the given table.
protected  char[] getClassName()
          Returns the name of the current class.
protected  char[] getPackageName()
          Returns the name of package of the current compilation unit.
protected  char[] getSource()
          Builds and returns the source for the current compilation unit.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.eval.Evaluator
evaluationResultsForCompilationProblems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addEvaluationResultForCompilationProblem

protected void addEvaluationResultForCompilationProblem(java.util.Map resultsByIDs,
                                                        CategorizedProblem problem,
                                                        char[] cuSource)
Description copied from class: Evaluator
Adds the given problem to the corresponding evaluation result in the given table. If the evaluation result doesn't exist yet, adds it in the table. Its evaluation id and evaluation type are computed so that they correspond to the given problem. If it is found to be an internal problem, then the evaluation id of the result is the given compilation unit source.

Specified by:
addEvaluationResultForCompilationProblem in class Evaluator
See Also:
Evaluator

getClassName

protected char[] getClassName()
Description copied from class: Evaluator
Returns the name of the current class. This is the simple name of the class. This doesn't include the extension ".java" nor the name of the package.

Specified by:
getClassName in class Evaluator
See Also:
Evaluator

getPackageName

protected char[] getPackageName()
Returns the name of package of the current compilation unit.


getSource

protected char[] getSource()
Description copied from class: Evaluator
Builds and returns the source for the current compilation unit.

Specified by:
getSource in class Evaluator
See Also:
Evaluator