| Constructor and Description |
|---|
ArrayModel(Value[] values,
java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
@NotNull java.lang.String |
getType()
Returns the type of the modeled class.
|
Value[] |
getValues() |
int |
hashCode() |
MethodResult |
init(MethodExecutionInfo methodExecutionInfo,
ValueCalculator valueCalculator)
Execute a constructor call for the modeled class.
|
MethodResult |
invoke(MethodExecutionInfo methodExecutionInfo,
ValueCalculator valueCalculator)
Execute an instance method on the modeled object.
|
MethodResult |
invokeStatic(MethodExecutionInfo methodExecutionInfo,
ValueCalculator valueCalculator)
Execute a static method for the modeled class.
|
java.lang.String |
toString() |
public ArrayModel(Value[] values, java.lang.String type)
public Value[] getValues()
@NotNull public @NotNull java.lang.String getType()
Modelpublic MethodResult init(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator)
ModelIt is suggested to add logic to allow running this only on a dummy model without any state.
init in interface ModelmethodExecutionInfo - execution info of the target method.valueCalculator - the value calculator that should be used to create any value in the
result.public MethodResult invoke(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator)
ModelIt is suggested to add logic to allow running this only on a model representing an initialized object.
public MethodResult invokeStatic(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator)
ModelIt is suggested to add logic to allow running this only on a dummy model without any state.
invokeStatic in interface ModelmethodExecutionInfo - execution info of the target method.valueCalculator - the value calculator that should be used to create any value in the
result.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object