Class AlignmentRules


  • public final class AlignmentRules
    extends java.lang.Object
    Factory for instances of AlignmentRule.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AlignmentRule compose​(AlignmentRule... rules)
      A rule that applies other rules in order.
      static AlignmentRule constant​(int alignment)
      A rule that defines a constant alignment for all files.
      static AlignmentRule constantForSuffix​(java.lang.String suffix, int alignment)
      A rule that defines constant alignment for all files with a certain suffix, placing no restrictions on other files.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • constant

        public static AlignmentRule constant​(int alignment)
        A rule that defines a constant alignment for all files.
        Parameters:
        alignment - the alignment
        Returns:
        the rule
      • constantForSuffix

        public static AlignmentRule constantForSuffix​(java.lang.String suffix,
                                                      int alignment)
        A rule that defines constant alignment for all files with a certain suffix, placing no restrictions on other files.
        Parameters:
        suffix - the suffix
        alignment - the alignment for paths that match the provided suffix
        Returns:
        the rule