|
FindBugs™ 1.3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.LocalVariableAnnotation
public class LocalVariableAnnotation
Bug annotation class for local variable names
BugAnnotation,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface edu.umd.cs.findbugs.BugAnnotation |
|---|
MESSAGE_TAG |
| Constructor Summary | |
|---|---|
LocalVariableAnnotation(java.lang.String name,
int register,
int pc)
Constructor. |
|
| Method Summary | |
|---|---|
void |
accept(BugAnnotationVisitor visitor)
Accept a BugAnnotationVisitor. |
java.lang.Object |
clone()
|
int |
compareTo(BugAnnotation o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
format(java.lang.String key,
ClassAnnotation primaryClass)
Format the annotation as a String. |
java.lang.String |
getDescription()
Get a description of this bug annotation. |
static LocalVariableAnnotation |
getLocalVariableAnnotation(org.apache.bcel.classfile.Method method,
int local,
int position1,
int position2)
|
static LocalVariableAnnotation |
getLocalVariableAnnotation(org.apache.bcel.classfile.Method method,
Location location,
org.apache.bcel.generic.IndexedInstruction ins)
|
java.lang.String |
getName()
|
static LocalVariableAnnotation |
getParameterLocalVariableAnnotation(org.apache.bcel.classfile.Method method,
int local)
Get a local variable annotation describing a parameter. |
int |
getPC()
|
int |
getRegister()
|
int |
hashCode()
|
boolean |
isSignificant()
Is this annotation used to compute instance hashes or match bug instances across versions |
void |
setDescription(java.lang.String description)
Set a description of this bug annotation. |
java.lang.String |
toString()
|
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput. |
void |
writeXML(XMLOutput xmlOutput,
boolean addMessages,
boolean isPrimary)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalVariableAnnotation(java.lang.String name,
int register,
int pc)
name - the name of the local variableregister - the local variable indexpc - the bytecode offset of the instruction that mentions
this local variable| Method Detail |
|---|
public static LocalVariableAnnotation getLocalVariableAnnotation(org.apache.bcel.classfile.Method method,
Location location,
org.apache.bcel.generic.IndexedInstruction ins)
public static LocalVariableAnnotation getLocalVariableAnnotation(org.apache.bcel.classfile.Method method,
int local,
int position1,
int position2)
public static LocalVariableAnnotation getParameterLocalVariableAnnotation(org.apache.bcel.classfile.Method method,
int local)
method - a Methodlocal - the local variable containing the parameter
public java.lang.Object clone()
clone in interface BugAnnotationclone in class java.lang.Objectpublic void accept(BugAnnotationVisitor visitor)
BugAnnotation
accept in interface BugAnnotationvisitor - the visitor to accept
public java.lang.String format(java.lang.String key,
ClassAnnotation primaryClass)
BugAnnotation
format in interface BugAnnotationkey - how the annotation should be formattedprimaryClass - TODOpublic void setDescription(java.lang.String description)
BugAnnotation
setDescription in interface BugAnnotationpublic java.lang.String getDescription()
BugAnnotation
getDescription in interface BugAnnotationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(BugAnnotation o)
compareTo in interface java.lang.Comparable<BugAnnotation>public java.lang.String toString()
toString in class java.lang.Object
public void writeXML(XMLOutput xmlOutput)
throws java.io.IOException
XMLWriteable
writeXML in interface XMLWriteablexmlOutput - the XMLOutput for the document
java.io.IOException
public void writeXML(XMLOutput xmlOutput,
boolean addMessages,
boolean isPrimary)
throws java.io.IOException
writeXML in interface XMLWriteableWithMessagesjava.io.IOExceptionpublic java.lang.String getName()
public int getPC()
public int getRegister()
public boolean isSignificant()
BugAnnotation
isSignificant in interface BugAnnotation
|
FindBugs™ 1.3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||