com.puresoltechnologies.purifinity.server.metrics.codedepth.CodeDepthMetricEvaluatorParameter Maven / Gradle / Ivy
package com.puresoltechnologies.purifinity.server.metrics.codedepth;
import java.util.HashSet;
import java.util.Set;
import com.puresoltechnologies.commons.domain.LevelOfMeasurement;
import com.puresoltechnologies.commons.domain.ParameterWithArbitraryUnit;
import com.puresoltechnologies.parsers.source.SourceCodeLocation;
import com.puresoltechnologies.purifinity.analysis.domain.CodeRangeType;
import com.puresoltechnologies.purifinity.evaluation.api.CodeRangeNameParameter;
import com.puresoltechnologies.purifinity.evaluation.api.CodeRangeTypeParameter;
import com.puresoltechnologies.purifinity.evaluation.api.QualityLevelParameter;
import com.puresoltechnologies.purifinity.evaluation.api.SourceCodeLocationParameter;
import com.puresoltechnologies.purifinity.evaluation.api.SourceCodeQualityParameter;
import com.puresoltechnologies.purifinity.evaluation.domain.QualityLevel;
import com.puresoltechnologies.purifinity.evaluation.domain.SourceCodeQuality;
import com.puresoltechnologies.purifinity.evaluation.domain.metrics.MetricParameter;
public class CodeDepthMetricEvaluatorParameter {
public static final ParameterWithArbitraryUnit SOURCE_CODE_LOCATION = SourceCodeLocationParameter
.getInstance();
public static final ParameterWithArbitraryUnit CODE_RANGE_TYPE = CodeRangeTypeParameter
.getInstance();
public static final ParameterWithArbitraryUnit CODE_RANGE_NAME = CodeRangeNameParameter
.getInstance();
public static final MetricParameter MAX_DEPTH = new MetricParameter(
"maxDepth", "", LevelOfMeasurement.RATIO,
"Maximum nesting depth in evaluated code ranges.", Integer.class);
public static final ParameterWithArbitraryUnit QUALITY = SourceCodeQualityParameter
.getInstance();
public static final ParameterWithArbitraryUnit QUALITY_LEVEL = QualityLevelParameter
.getInstance();
public static final Set> ALL = new HashSet<>();
static {
ALL.add(MAX_DEPTH);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy