Class ParameterAccessor.Parameter
java.lang.Object
com.ibm.wala.core.util.ssa.SSAValue
com.ibm.wala.core.util.ssa.ParameterAccessor.Parameter
- Direct Known Subclasses:
ReuseParameters.ReuseParameter
- Enclosing class:
ParameterAccessor
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
- Author:
- Tobias Blaschke <code@tobiasblaschke.de>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.wala.core.util.ssa.SSAValue
SSAValue.NamedKey, SSAValue.TypeKey, SSAValue.UniqueKey, SSAValue.VariableKey, SSAValue.WeaklyNamedKey
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Parameter
(int number, String name, TypeReference type, ParameterAccessor.ParamerterDisposition disp, ParameterAccessor.BasedOn basedOn, MethodReference mRef, int descriptorOffset) Create Parameters using ParameterAccessor. -
Method Summary
Methods inherited from class com.ibm.wala.core.util.ssa.SSAValue
getNumber, getType, getValidIn, getVariableName, isAssigned, setAssigned
-
Constructor Details
-
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 Details
-
getNumberInDescriptor
public int getNumberInDescriptor()The position of the parameter in the methods Desciptor starting with 1. -
getDisposition
-
equals
- Overrides:
equals
in classSSAValue
- Throws:
IllegalArgumentException
- if you compare this to an object totally different.
-
hashCode
-
toString
-