public abstract class PackageMemberAnnotation extends BugAnnotationWithSourceLines
BugAnnotation,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
className |
protected String |
description |
sourceFileName, sourceLinesMESSAGE_TAG| Modifier | Constructor and Description |
|---|---|
protected |
PackageMemberAnnotation(String className,
String description)
Constructor.
|
protected |
PackageMemberAnnotation(String className,
String description,
String sourceFileName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(String key,
ClassAnnotation primaryClass)
Format the annotation.
|
protected abstract String |
formatPackageMember(String key,
ClassAnnotation primaryClass)
Do default and subclass-specific formatting.
|
ClassDescriptor |
getClassDescriptor()
Get the class descriptor.
|
String |
getClassName()
Get the dotted class name.
|
String |
getDescription()
Get a description of this bug annotation.
|
String |
getPackageName()
Get the package name.
|
String |
getSimpleClassName() |
String |
getSlashedClassName()
Get the dotted class name.
|
boolean |
isSignificant()
Is this annotation used to compute instance hashes or match bug instances
across versions
|
protected static String |
removePackage(String typeName) |
protected static String |
removePackageName(String typeName)
Shorten a type name by removing the package name
|
void |
setDescription(String description)
Set a description of this bug annotation.
|
protected static String |
shorten(String pkgName,
String typeName)
Shorten a type name of remove extraneous components.
|
String |
toString()
All PackageMemberAnnotation object share a common toString()
implementation.
|
String |
toString(ClassAnnotation primaryClass) |
clone, getSourceFileName, getSourceLines, setSourceLinesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptcompareTowriteXMLwriteXML@DottedClassName protected final String className
protected String description
protected PackageMemberAnnotation(@DottedClassName String className, String description)
className - name of the classprotected PackageMemberAnnotation(@DottedClassName String className, String description, String sourceFileName)
className - name of the class@DottedClassName public final String getClassName()
@SlashedClassName public final String getSlashedClassName()
public String getSimpleClassName()
public final ClassDescriptor getClassDescriptor()
@DottedClassName public final String getPackageName()
public final String format(String key, ClassAnnotation primaryClass)
key - the keyprimaryClass - The primary class for the bug; some bug annotation format msgs
are simplified in relation to that class.public void setDescription(String description)
BugAnnotationpublic String getDescription()
BugAnnotationprotected static String shorten(String pkgName, String typeName)
java.lang package.protected static String removePackageName(String typeName)
protected abstract String formatPackageMember(String key, ClassAnnotation primaryClass)
key - the key specifying how to do the formattingprimaryClass - TODOpublic String toString()
public String toString(ClassAnnotation primaryClass)
toString in interface BugAnnotationtoString in class BugAnnotationWithSourceLinespublic boolean isSignificant()
BugAnnotationCopyright © 2003–2015. All rights reserved.