Class ArrayModel
java.lang.Object
proguard.evaluation.value.object.model.ArrayModel
- All Implemented Interfaces:
Model
A
Model to track array values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull StringgetType()Returns the type of the modeled class.Value[]inthashCode()init(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator) Execute a constructor call for the modeled class.invoke(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator) Execute an instance method on the modeled object.invokeStatic(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator) Execute a static method for the modeled class.toString()
-
Constructor Details
-
ArrayModel
-
-
Method Details
-
getValues
-
getType
Description copied from interface:ModelReturns the type of the modeled class. -
init
Description copied from interface:ModelExecute a constructor call for the modeled class.It is suggested to add logic to allow running this only on a dummy model without any state.
- Specified by:
initin interfaceModel- Parameters:
methodExecutionInfo- execution info of the target method.valueCalculator- the value calculator that should be used to create any value in the result.- Returns:
- the result of the method invocation. Since it's a constructor invocation the return value of the result is expected to be empty and the constructed value should be set as the updated instance.
-
invoke
public MethodResult invoke(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator) Description copied from interface:ModelExecute an instance method on the modeled object. The state of the instance is represented by the state of the model.It is suggested to add logic to allow running this only on a model representing an initialized object.
-
invokeStatic
public MethodResult invokeStatic(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator) Description copied from interface:ModelExecute a static method for the modeled class.It is suggested to add logic to allow running this only on a dummy model without any state.
- Specified by:
invokeStaticin interfaceModel- Parameters:
methodExecutionInfo- execution info of the target method.valueCalculator- the value calculator that should be used to create any value in the result.- Returns:
- the result of the method invocation.
-
equals
-
hashCode
public int hashCode() -
toString
-