hudson.plugins.analysis.tokens
Class AbstractNewAnnotationsTokenMacro

java.lang.Object
  extended by org.jenkinsci.plugins.tokenmacro.TokenMacro
      extended by org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
          extended by hudson.plugins.analysis.tokens.AbstractTokenMacro
              extended by hudson.plugins.analysis.tokens.AbstractNewAnnotationsTokenMacro
All Implemented Interfaces:
hudson.ExtensionPoint

public class AbstractNewAnnotationsTokenMacro
extends AbstractTokenMacro

Provides a token that evaluates to the number of new annotations found by a plug-in.

Author:
Ulli Hafner

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.Parameter
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
AbstractNewAnnotationsTokenMacro(String tokenName, Class<? extends ResultAction<? extends BuildResult>>... resultActions)
          Creates a new instance of AbstractNewAnnotationsTokenMacro.
 
Method Summary
protected  String evaluate(BuildResult result)
          Evaluates the build result and returns the string value of the token.
 
Methods inherited from class hudson.plugins.analysis.tokens.AbstractTokenMacro
acceptsMacroName, evaluate
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand, expandAll, hasNestedContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNewAnnotationsTokenMacro

public AbstractNewAnnotationsTokenMacro(String tokenName,
                                        Class<? extends ResultAction<? extends BuildResult>>... resultActions)
Creates a new instance of AbstractNewAnnotationsTokenMacro.

Parameters:
tokenName - the name of the token
resultActions - associated actions containing the build result
Method Detail

evaluate

protected String evaluate(BuildResult result)
Description copied from class: AbstractTokenMacro
Evaluates the build result and returns the string value of the token.

Specified by:
evaluate in class AbstractTokenMacro
Parameters:
result - the result to evaluate
Returns:
the string value of the token


Copyright © 2004-2012 Hudson. All Rights Reserved.