Package edu.umd.cs.findbugs.ba.jsr305
Class SourceSinkInfo
java.lang.Object
edu.umd.cs.findbugs.ba.jsr305.SourceSinkInfo
- All Implemented Interfaces:
Comparable<SourceSinkInfo>
Information about a source or sink in the type qualifier dataflow analysis.
- Author:
- David Hovemeyer
-
Constructor Summary
ConstructorDescriptionSourceSinkInfo
(SourceSinkType type, Location location, ValueNumber vn, javax.annotation.meta.When when) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
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()
int
getType()
javax.annotation.meta.When
getWhen()
int
hashCode()
void
setConstantValue
(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) toString()
-
Constructor Details
-
SourceSinkInfo
public SourceSinkInfo(SourceSinkType type, Location location, ValueNumber vn, javax.annotation.meta.When when) Constructor.- Parameters:
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 sink
-
-
Method Details
-
getType
- Returns:
- Returns the type.
-
getLocation
- Returns:
- Returns the location.
-
getValueNumber
- Returns:
- Returns the ValueNumber.
-
getWhen
public javax.annotation.meta.When getWhen()- Returns:
- Returns the when.
-
setParameter
public void setParameter(int parameter) - Parameters:
parameter
- The parameter to set.
-
setParameterAndLocal
public void setParameterAndLocal(int parameter, int local) - Parameters:
parameter
- The parameter to set.local
- The local to set.
-
getParameter
public int getParameter()- Returns:
- Returns the parameter.
-
getLocal
public int getLocal()- Returns:
- Returns the local.
-
setInterproc
public 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).- Parameters:
interproc
- true if the SourceSinkInfo results from computed type qualifiers for a called method, false otherwise
-
getInterproc
public 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).- Returns:
- true if the SourceSinkInfo results from computed type qualifiers for a called method, false otherwise
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SourceSinkInfo>
-
getConstantValue
-
setConstantValue
-
hashCode
public int hashCode() -
equals
-
toString
-