org.specrunner.annotator.core
Class AnnotatorStacktrace

java.lang.Object
  extended by org.specrunner.annotator.core.AnnotatorStacktrace
All Implemented Interfaces:
IAnnotator

public class AnnotatorStacktrace
extends Object
implements IAnnotator

Add stack traces to nodes with errors.

Author:
Thiago Santos

Constructor Summary
AnnotatorStacktrace()
           
 
Method Summary
protected  void addStackTrace(nu.xom.Node node, IResult result, int stackIndex)
          Add a stack trace to a node.
 void annotate(IResultSet result)
          Annotates the result information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatorStacktrace

public AnnotatorStacktrace()
Method Detail

annotate

public void annotate(IResultSet result)
              throws AnnotatorException
Description copied from interface: IAnnotator
Annotates the result information.

Specified by:
annotate in interface IAnnotator
Parameters:
result - The result set.
Throws:
AnnotatorException - On annotation errors.

addStackTrace

protected void addStackTrace(nu.xom.Node node,
                             IResult result,
                             int stackIndex)
                      throws AnnotatorException
Add a stack trace to a node.

Parameters:
node - The node.
result - The result.
stackIndex - The indexes map.
Throws:
AnnotatorException - On annotator errors.


Copyright © 2014. All rights reserved.