test_class.declarator: instance = new TestFormatAlignmentBase()
test_class.original_string: TestFormatAlignmentBase instance = new TestFormatAlignmentBase();
test_class.type: TestFormatAlignmentBase
test_class.var_name: instance
test_class.declarator: format = Procs.invoke(this, "format")
test_class.modifier: private
test_class.original_string: private Proc format = Procs.invoke(this, "format");
test_class.type: Proc
test_class.var_name: format
test_class.file: strings/src/test/java/org/cthul/strings/format/conversion/FormatAlignmentBaseTest.java
test_class.identifier: FormatAlignmentBaseTest
test_case.body: @Test
      public void test_justify_right() throws IOException {
          assertThat(format(   1, "", 3), is("  1"));
          assertThat(format(  12, "", 3), is(" 12"));
          assertThat(format( 123, "", 3), is("123"));
          assertThat(format(1234, "", 3), is("1234"));
      }
test_case.class_method_signature: FormatAlignmentBaseTest.test_justify_right()
test_case.full_signature: @Test public void test_justify_right()
test_case.identifier: test_justify_right
test_case.invocations: assertThat format is assertThat format is assertThat format is assertThat format is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_justify_right()
focal_class.declarator: F_ALL = flags(F_JUSTIFICATION, F_PADDING)
focal_class.modifier: private static final
focal_class.original_string: private static final char[] F_ALL = flags(F_JUSTIFICATION, F_PADDING);
focal_class.type: char[]
focal_class.var_name: F_ALL
focal_class.declarator: F_PAD = flags(F_PADDING)
focal_class.modifier: private static final
focal_class.original_string: private static final char[] F_PAD = flags(F_PADDING);
focal_class.type: char[]
focal_class.var_name: F_PAD
focal_class.file: strings/src/main/java/org/cthul/strings/format/conversion/FormatAlignmentBase.java
focal_class.identifier: FormatAlignmentBase
focal_class.class_method_signature: FormatAlignmentBase.getValidFlags()
focal_class.full_signature: protected char[] getValidFlags()
focal_class.identifier: getValidFlags
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: char[]
focal_class.signature: char[] getValidFlags()
focal_class.class_method_signature: FormatAlignmentBase.getValidDuplicateFlags()
focal_class.full_signature: protected char[] getValidDuplicateFlags()
focal_class.identifier: getValidDuplicateFlags
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: char[]
focal_class.signature: char[] getValidDuplicateFlags()
focal_class.class_method_signature: FormatAlignmentBase.getPaddingFlags()
focal_class.full_signature: protected char[] getPaddingFlags()
focal_class.identifier: getPaddingFlags
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: char[]
focal_class.signature: char[] getPaddingFlags()
focal_class.class_method_signature: FormatAlignmentBase.getDefaultPaddingChar()
focal_class.full_signature: protected char getDefaultPaddingChar()
focal_class.identifier: getDefaultPaddingChar
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: char
focal_class.signature: char getDefaultPaddingChar()
focal_class.class_method_signature: FormatAlignmentBase.getPaddingChar(String flags)
focal_class.full_signature: protected char getPaddingChar(String flags)
focal_class.identifier: getPaddingChar
focal_class.modifiers: protected
focal_class.parameters: (String flags)
focal_class.return: char
focal_class.signature: char getPaddingChar(String flags)
focal_class.class_method_signature: FormatAlignmentBase.validateFlags(String flags)
focal_class.full_signature: protected void validateFlags(String flags)
focal_class.identifier: validateFlags
focal_class.modifiers: protected
focal_class.parameters: (String flags)
focal_class.return: void
focal_class.signature: void validateFlags(String flags)
focal_class.class_method_signature: FormatAlignmentBase.format(FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)
focal_class.full_signature: @Override public int format(FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)
focal_class.identifier: format
focal_class.modifiers: @Override public
focal_class.parameters: (FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)
focal_class.return: int
focal_class.signature: int format(FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)
focal_class.class_method_signature: FormatAlignmentBase.format(Appendable a, Object value, Locale locale, String flags, int precision, String formatString, int position)
focal_class.full_signature: protected abstract int format(Appendable a, Object value, Locale locale, String flags, int precision, String formatString, int position)
focal_class.identifier: format
focal_class.modifiers: protected abstract
focal_class.parameters: (Appendable a, Object value, Locale locale, String flags, int precision, String formatString, int position)
focal_class.return: int
focal_class.signature: int format(Appendable a, Object value, Locale locale, String flags, int precision, String formatString, int position)
focal_class.superclass: extends FormatConversionBase
focal_method.body: @Override
      public int format(FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position) throws IOException {
          validateFlags(flags);
          if (width < 0) {
              ensureNoInvalidFlags(flags, getPaddingFlags());
              return format(formatter, value, locale, flags, precision, formatString, position);
          } else {
              Justification j = getJustification(flags);
              char p = getPaddingChar(flags);
              StringBuilder sb = new StringBuilder();
              int result = format(sb, value, locale, flags, precision, formatString, position);
              switch (j) {
                  case Left:
                      justifyLeft(formatter, sb, p, width);
                      break;
                  case Center:
                      justifyCenter(formatter, sb, p, width);
                      break;
                  default:
                      justifyRight(formatter, sb, p, width);
              }
              return result;
          }
      }
focal_method.class_method_signature: FormatAlignmentBase.format(FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)
focal_method.full_signature: @Override public int format(FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)
focal_method.identifier: format
focal_method.invocations: validateFlags ensureNoInvalidFlags getPaddingFlags format getJustification getPaddingChar format justifyLeft justifyCenter justifyRight
focal_method.modifiers: @Override public
focal_method.parameters: (FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)
focal_method.return: int
focal_method.signature: int format(FormatterAPI formatter, Object value, Locale locale, String flags, int width, int precision, String formatString, int position)