Package com.tonic.analysis.fingerprint
Enum FingerprintLevel
- java.lang.Object
-
- java.lang.Enum<FingerprintLevel>
-
- com.tonic.analysis.fingerprint.FingerprintLevel
-
- All Implemented Interfaces:
Serializable,Comparable<FingerprintLevel>
public enum FingerprintLevel extends Enum<FingerprintLevel>
The three fingerprint granularity levels, each with a fixed index and scoring weight.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DETAILEDOpcode-bigram, CFG edge and terminator histograms plus dominance depth.STABLEControl-flow shape - loop counts and nesting, bucketed block count, and branch, arithmetic and invoke histograms.ULTRA_STABLESignature shape plus the called, accessed and instantiated targets.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()intgetMask()doublegetWeight()static FingerprintLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static FingerprintLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ULTRA_STABLE
public static final FingerprintLevel ULTRA_STABLE
Signature shape plus the called, accessed and instantiated targets.
-
STABLE
public static final FingerprintLevel STABLE
Control-flow shape - loop counts and nesting, bucketed block count, and branch, arithmetic and invoke histograms.
-
DETAILED
public static final FingerprintLevel DETAILED
Opcode-bigram, CFG edge and terminator histograms plus dominance depth.
-
-
Method Detail
-
values
public static FingerprintLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FingerprintLevel c : FingerprintLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FingerprintLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()
- Returns:
- the index
-
getWeight
public double getWeight()
- Returns:
- the weight
-
getMask
public int getMask()
- Returns:
- the single-bit mask for this level, derived from its index
-
-