FindBugs™ 1.3.9

edu.umd.cs.findbugs.model
Class ClassNameRewriterUtil

java.lang.Object
  extended by edu.umd.cs.findbugs.model.ClassNameRewriterUtil

public abstract class ClassNameRewriterUtil
extends java.lang.Object

Utility methods for using a ClassNameRewriter.

Author:
David Hovemeyer

Constructor Summary
ClassNameRewriterUtil()
           
 
Method Summary
static FieldAnnotation convertFieldAnnotation(ClassNameRewriter classNameRewriter, FieldAnnotation annotation)
          Rewrite a FieldAnnotation to update the class name and field signature, if needed.
static MethodAnnotation convertMethodAnnotation(ClassNameRewriter classNameRewriter, MethodAnnotation annotation)
          Rewrite a MethodAnnotation to update the class name, and any class names mentioned in the method signature.
static java.lang.String rewriteMethodSignature(ClassNameRewriter classNameRewriter, java.lang.String methodSignature)
          Rewrite a method signature.
static java.lang.String rewriteSignature(ClassNameRewriter classNameRewriter, java.lang.String signature)
          Rewrite a signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassNameRewriterUtil

public ClassNameRewriterUtil()
Method Detail

rewriteMethodSignature

public static java.lang.String rewriteMethodSignature(ClassNameRewriter classNameRewriter,
                                                      java.lang.String methodSignature)
Rewrite a method signature.

Parameters:
classNameRewriter - a ClassNameRewriter
methodSignature - a method signature
Returns:
the rewritten method signature

rewriteSignature

public static java.lang.String rewriteSignature(ClassNameRewriter classNameRewriter,
                                                java.lang.String signature)
Rewrite a signature.

Parameters:
classNameRewriter - a ClassNameRewriter
signature - a signature (parameter, return type, or field)
Returns:
rewritten signature with class name updated if required

convertMethodAnnotation

public static MethodAnnotation convertMethodAnnotation(ClassNameRewriter classNameRewriter,
                                                       MethodAnnotation annotation)
Rewrite a MethodAnnotation to update the class name, and any class names mentioned in the method signature.

Parameters:
classNameRewriter - a ClassNameRewriter
annotation - a MethodAnnotation
Returns:
the possibly-rewritten MethodAnnotation

convertFieldAnnotation

public static FieldAnnotation convertFieldAnnotation(ClassNameRewriter classNameRewriter,
                                                     FieldAnnotation annotation)
Rewrite a FieldAnnotation to update the class name and field signature, if needed.

Parameters:
classNameRewriter - a ClassNameRewriter
annotation - a FieldAnnotation
Returns:
the possibly-rewritten FieldAnnotation

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.