Class SliceType

  • All Implemented Interfaces:
    Comparable<SliceType>

    public final class SliceType
    extends Object
    implements Comparable<SliceType>
    Instances of SliceType define the type of a Node. There is a classType() for nodes representing a single Java class, there is a packageType() for nodes representing a package, and there is customType(String) for nodes representing custom slices, e.g. groups of packages. Each slice type has a name that represents the name of the slicing. For example, we might define a custom slicing "Quarter" that maps each package to one of 4 slices. That will result in 4 nodes in which each is a custom slice and all have the type sliceType("Quarter").
    • Method Detail

      • classType

        public static SliceType classType()
        Returns:
        the singleton class type
      • packageType

        public static SliceType packageType()
        Returns:
        the singleton package type
      • customType

        public static SliceType customType​(String name)
        Parameters:
        name - the name of the slicing
        Returns:
        a new slice type with the given name
      • isClassType

        public boolean isClassType()
      • isSliceType

        public boolean isSliceType()
      • displayString

        public String displayString()
      • getKind

        public de.obqo.decycle.model.SliceType.Kind getKind()
      • getName

        public String getName()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object