doc / ch.tutteli.atrium.logic.creating.feature / MetaFeature

MetaFeature

data class MetaFeature<T> (source)

Represents an extracted feature of type T defined by the given maybeSubject including a description and a representation

Constructors

<init>

MetaFeature(description: String, representation: Any?, maybeSubject: Option<T>)
MetaFeature(description: String, subject: T)MetaFeature(description: Translatable, representation: Any?, maybeSubject: Option<T>)

Represents an extracted feature of type T defined by the given maybeSubject including a description and a representation

Properties

description

val description: Translatable

Will be used in reporting to describe the feature extraction - e.g. the name of a property, a method call etc.

maybeSubject

val maybeSubject: Option<T>

The feature as such where it is Some in case the extraction was successful or None if it was not.

representation

val representation: Any?

The representation of the feature, in most cases the value behind the feature.