public class SourceSinkInfo extends java.lang.Object implements java.lang.Comparable<SourceSinkInfo>
Constructor and Description |
---|
SourceSinkInfo(SourceSinkType type,
Location location,
ValueNumber vn,
javax.annotation.meta.When when)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SourceSinkInfo o) |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getConstantValue() |
boolean |
getInterproc()
Return whether or not the SourceSinkInfo was created based on the results
of type qualifiers computed for a called method (and not explicitly
annotating the called method).
|
int |
getLocal() |
Location |
getLocation() |
int |
getParameter() |
SourceSinkType |
getType() |
ValueNumber |
getValueNumber() |
javax.annotation.meta.When |
getWhen() |
int |
hashCode() |
void |
setConstantValue(java.lang.Object constantValue) |
void |
setInterproc(boolean interproc)
Set the SourceSinkInfo as having been created based on the results of
type qualifiers computed for a called method (and not explicitly
annotating the called method).
|
void |
setParameter(int parameter) |
void |
setParameterAndLocal(int parameter,
int local) |
java.lang.String |
toString() |
public SourceSinkInfo(SourceSinkType type, Location location, ValueNumber vn, javax.annotation.meta.When when)
type
- type of the source or sinklocation
- Location of the source or sinkvn
- the ValueNumber of the annotated valuewhen
- the When value used (explicitly or implicitly) to annotate
this source or sinkpublic SourceSinkType getType()
public Location getLocation()
public ValueNumber getValueNumber()
public javax.annotation.meta.When getWhen()
public void setParameter(int parameter)
parameter
- The parameter to set.public void setParameterAndLocal(int parameter, int local)
parameter
- The parameter to set.local
- The local to set.public int getParameter()
public int getLocal()
public void setInterproc(boolean interproc)
interproc
- true if the SourceSinkInfo results from computed type
qualifiers for a called method, false otherwisepublic boolean getInterproc()
public int compareTo(SourceSinkInfo o)
compareTo
in interface java.lang.Comparable<SourceSinkInfo>
public java.lang.Object getConstantValue()
public void setConstantValue(java.lang.Object constantValue)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.