public class ClassModel extends java.lang.Object implements ReflectiveModel<ClassModel>
Model to track specific Clazz constants.log| Constructor and Description |
|---|
ClassModel(Clazz clazz) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Clazz |
getClazz() |
@NotNull java.lang.String |
getType()
Returns the type of the modeled class.
|
int |
hashCode() |
MethodResult |
init(MethodExecutionInfo methodExecutionInfo,
ValueCalculator valueCalculator)
Execute a constructor call for the modeled class.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitinvoke, invokeStaticpublic ClassModel(Clazz clazz)
public Clazz getClazz()
@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 Modelinit in interface ReflectiveModel<ClassModel>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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object