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 Value[] getValues()
@NotNull public @NotNull java.lang.String getType()
Model
public MethodResult init(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator)
Model
It is suggested to add logic to allow running this only on a dummy model without any state.
init
in interface Model
methodExecutionInfo
- 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)
Model
It is suggested to add logic to allow running this only on a model representing an initialized object.
public MethodResult invokeStatic(MethodExecutionInfo methodExecutionInfo, ValueCalculator valueCalculator)
Model
It is suggested to add logic to allow running this only on a dummy model without any state.
invokeStatic
in interface Model
methodExecutionInfo
- 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object