Klasse CodeSnippetEvaluator

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.eval.Evaluator
org.aspectj.org.eclipse.jdt.internal.eval.CodeSnippetEvaluator
Alle implementierten Schnittstellen:
EvaluationConstants

public class CodeSnippetEvaluator extends Evaluator implements EvaluationConstants
A code snippet evaluator compiles and returns class file for a code snippet. Or it reports problems against the code snippet.
  • Methodendetails

    • addEvaluationResultForCompilationProblem

      protected void addEvaluationResultForCompilationProblem(Map<char[],EvaluationResult> resultsByIDs, CategorizedProblem problem, char[] cuSource)
      Beschreibung aus Klasse kopiert: 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.
      Angegeben von:
      addEvaluationResultForCompilationProblem in Klasse Evaluator
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.eval.Evaluator
    • getClassName

      protected char[] getClassName()
      Beschreibung aus Klasse kopiert: 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.
      Angegeben von:
      getClassName in Klasse Evaluator
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.eval.Evaluator
    • getSource

      protected char[] getSource()
      Beschreibung aus Klasse kopiert: Evaluator
      Builds and returns the source for the current compilation unit.
      Angegeben von:
      getSource in Klasse Evaluator
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.eval.Evaluator