Class SliceType

  • All Implemented Interfaces:
    java.lang.Comparable<SliceType>

    public final class SliceType
    extends java.lang.Object
    implements java.lang.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​(java.lang.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 java.lang.String displayString()
      • compareTo

        public int compareTo​(SliceType other)
        Specified by:
        compareTo in interface java.lang.Comparable<SliceType>
      • getKind

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

        public java.lang.String getName()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object