Package com.ibm.wala.util.ssa
Class ParameterAccessor.Parameter
- java.lang.Object
-
- com.ibm.wala.util.ssa.SSAValue
-
- com.ibm.wala.util.ssa.ParameterAccessor.Parameter
-
- Direct Known Subclasses:
ReuseParameters.ReuseParameter
- Enclosing class:
- ParameterAccessor
public static class ParameterAccessor.Parameter extends SSAValue
The representation of a Parameter handled using a ParameterAccessor. It basically consists of a SSA-Value and an associated TypeReference. Use .getNumber() to access the associated SSA-Value.- Since:
- 2013-10-19
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.wala.util.ssa.SSAValue
SSAValue.NamedKey, SSAValue.TypeKey, SSAValue.UniqueKey, SSAValue.VariableKey, SSAValue.WeaklyNamedKey
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Parameter(int number, String name, TypeReference type, ParameterAccessor.ParamerterDisposition disp, ParameterAccessor.BasedOn basedOn, MethodReference mRef, int descriptorOffset)
Create Parameters using ParameterAccessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ParameterAccessor.ParamerterDisposition
getDisposition()
int
getNumberInDescriptor()
The position of the parameter in the methods Desciptor starting with 1.int
hashCode()
Clashes deliberately with SSAValue as it's basically the same thing.String
toString()
-
Methods inherited from class com.ibm.wala.util.ssa.SSAValue
getNumber, getType, getValidIn, getVariableName, isAssigned, setAssigned
-
-
-
-
Constructor Detail
-
Parameter
protected Parameter(int number, String name, TypeReference type, ParameterAccessor.ParamerterDisposition disp, ParameterAccessor.BasedOn basedOn, MethodReference mRef, int descriptorOffset)
Create Parameters using ParameterAccessor.- Parameters:
number
- SSA-Value to access this parametername
- Optional variable-name - may be nulltype
- Variable Type to this parameterdisp
- Implicit this, regular parameter or return value?basedOn
- Is Accessor constructed with IMethod or MethodReferencemRef
- Method this parameter belongs todescriptorOffset
- add to number to get position in descriptor
-
-
Method Detail
-
getNumberInDescriptor
public int getNumberInDescriptor()
The position of the parameter in the methods Desciptor starting with 1.
-
getDisposition
public ParameterAccessor.ParamerterDisposition getDisposition()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSSAValue
- Throws:
IllegalArgumentException
- if you compare this to an object totally different.
-
hashCode
public final int hashCode()
Clashes deliberately with SSAValue as it's basically the same thing.
-
-