|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.covcomplplot.analyzer.AbstractMethodInfoHandler
public abstract class AbstractMethodInfoHandler
Abstract handler which is the superclass of Hudson plugin handlers.
| Constructor Summary | |
|---|---|
AbstractMethodInfoHandler()
|
|
| Method Summary | |
|---|---|
abstract void |
checkBuild(hudson.model.AbstractBuild<?,?> build)
Check if passed AbstractBuild contains valid hudson plugin result
for this handler processing. |
protected void |
checkBuildContainningBuildAction(hudson.model.AbstractBuild<?,?> build,
java.lang.String buildActionName)
|
org.dom4j.Document |
getBuildArtifact(hudson.model.AbstractBuild<?,?> build,
java.lang.String fileName,
Analyzer forWhat)
Get build xml artifact |
java.lang.String |
getCustomJavaScript()
|
hudson.model.Action |
getCustomSourceViewBuildAction(hudson.model.AbstractBuild<?,?> build)
|
abstract java.lang.String |
getDescription()
Get the description of Hudson plugin from which this handler get information |
abstract java.lang.String |
getMethodUrlLocation(hudson.model.AbstractBuild<?,?> build,
MethodInfo methodInfo)
Get method content URL. |
protected boolean |
isGetterSetter(MethodInfo method)
Check if the give method is valid |
protected boolean |
isMethodValid(MethodInfo method,
boolean excludeGetterSetter)
Check if the method is valid. |
abstract java.util.List<MethodInfo> |
process(hudson.model.AbstractBuild<?,?> build,
boolean excludeGetterSetter,
java.lang.String rootDir,
LoggerWrapper logger,
Analyzer analyzer)
Parse the Hudson plugin result and return the MethodInfo list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMethodInfoHandler()
| Method Detail |
|---|
public abstract java.util.List<MethodInfo> process(hudson.model.AbstractBuild<?,?> build,
boolean excludeGetterSetter,
java.lang.String rootDir,
LoggerWrapper logger,
Analyzer analyzer)
throws InvalidHudsonProjectException
MethodInfo list.
build - build infoexcludeGetterSetter - whether getter/setter methods are included or not.rootDir - base directory of build.logger - logger to be usedanalyzer - information which analyzer is used.
MethodInfo list parsed.
InvalidHudsonProjectException
public org.dom4j.Document getBuildArtifact(hudson.model.AbstractBuild<?,?> build,
java.lang.String fileName,
Analyzer forWhat)
throws InvalidHudsonProjectException
build - buildfileName - file to be retrieveforWhat - analyzer enum to be used for logging.
InvalidHudsonProjectException
protected boolean isMethodValid(MethodInfo method,
boolean excludeGetterSetter)
method - method to checked. if it's null, it's valid.excludeGetterSetter - true if the getter/setter should be excluded.
protected boolean isGetterSetter(MethodInfo method)
method - method to be checked
public java.lang.String getCustomJavaScript()
public abstract java.lang.String getMethodUrlLocation(hudson.model.AbstractBuild<?,?> build,
MethodInfo methodInfo)
build - AbstractBuild instance against each methodInfo.methodInfo - method.
public abstract void checkBuild(hudson.model.AbstractBuild<?,?> build)
throws InvalidHudsonProjectException
AbstractBuild contains valid hudson plugin result
for this handler processing. This method is invoked before the process
method is called.
build -
InvalidHudsonProjectExceptionpublic abstract java.lang.String getDescription()
protected void checkBuildContainningBuildAction(hudson.model.AbstractBuild<?,?> build,
java.lang.String buildActionName)
throws InvalidHudsonProjectException
InvalidHudsonProjectExceptionpublic hudson.model.Action getCustomSourceViewBuildAction(hudson.model.AbstractBuild<?,?> build)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||