<s> package org . eclipse . jdt . core . formatter ; import java . util . Map ; import org . eclipse . jdt . core . JavaCore ; import org . eclipse . jdt . core . ToolFactory ; import org . eclipse . jdt . internal . formatter . DefaultCodeFormatterOptions ; import org . eclipse . jdt . internal . formatter . align . Alignment ; public class DefaultCodeFormatterConstants { public static final String END_OF_LINE = "end_of_line" ; public static final String FALSE = "false" ; public static final String FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ASSIGNMENT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_COMPACT_IF = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_ENUM_CONSTANTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_EXPRESSIONS_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_MULTIPLE_FIELDS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_RESOURCES_IN_TRY = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_ENUM_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ALIGNMENT_FOR_UNION_TYPE_IN_MULTICATCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_AFTER_IMPORTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_AFTER_PACKAGE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BEFORE_FIELD = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BEFORE_IMPORTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BEFORE_METHOD = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BEFORE_PACKAGE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BETWEEN_IMPORT_GROUPS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_ANNOTATION_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_ANONYMOUS_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_BLOCK = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_BLOCK_IN_CASE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_ENUM_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_SWITCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public final static String FORMATTER_COMMENT_CLEAR_BLANK_LINES = "" ; public final static String FORMATTER_COMMENT_CLEAR_BLANK_LINES_IN_JAVADOC_COMMENT = "" ; public final static String FORMATTER_COMMENT_CLEAR_BLANK_LINES_IN_BLOCK_COMMENT = "" ; public final static String FORMATTER_COMMENT_FORMAT = "" ; public final static String FORMATTER_COMMENT_FORMAT_LINE_COMMENT = "" ; public static final String FORMATTER_COMMENT_FORMAT_LINE_COMMENT_STARTING_ON_FIRST_COLUMN = JavaCore . PLUGIN_ID + "" ; public final static String FORMATTER_COMMENT_PRESERVE_WHITE_SPACE_BETWEEN_CODE_AND_LINE_COMMENT = "" ; public final static String FORMATTER_COMMENT_FORMAT_BLOCK_COMMENT = "" ; public final static String FORMATTER_COMMENT_FORMAT_JAVADOC_COMMENT = "" ; public final static String FORMATTER_COMMENT_FORMAT_HEADER = "" ; public final static String FORMATTER_COMMENT_FORMAT_HTML = "" ; public final static String FORMATTER_COMMENT_FORMAT_SOURCE = "" ; public final static String FORMATTER_COMMENT_INDENT_PARAMETER_DESCRIPTION = "" ; public final static String FORMATTER_COMMENT_INDENT_ROOT_TAGS = "" ; public final static String FORMATTER_COMMENT_INSERT_EMPTY_LINE_BEFORE_ROOT_TAGS = "" ; public final static String FORMATTER_COMMENT_INSERT_NEW_LINE_FOR_PARAMETER = "" ; public final static String FORMATTER_COMMENT_LINE_LENGTH = "" ; public final static String FORMATTER_COMMENT_NEW_LINES_AT_BLOCK_BOUNDARIES = "" ; public final static String FORMATTER_COMMENT_NEW_LINES_AT_JAVADOC_BOUNDARIES = "" ; public static final String FORMATTER_COMPACT_ELSE_IF = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_CONTINUATION_INDENTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_CONTINUATION_INDENTATION_FOR_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_USE_ON_OFF_TAGS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_DISABLING_TAG = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_ENABLING_TAG = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ANNOTATION_DECLARATION_HEADER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_CONSTANT_HEADER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_DECLARATION_HEADER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_TYPE_HEADER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_EMPTY_LINES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BODY = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INDENTATION_SIZE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_MEMBER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_FIELD = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_METHOD = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_PACKAGE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_TYPE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_PARAMETER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_LOCAL_VARIABLE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_LABEL = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_AT_END_OF_FILE_IF_MISSING = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_BEFORE_FINALLY_IN_TRY_STATEMENT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_BEFORE_WHILE_IN_DO_STATEMENT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ANNOTATION_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ANONYMOUS_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_IN_EMPTY_METHOD_BODY = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_NEW_LINE_IN_EMPTY_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_AND_IN_TYPE_PARAMETER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_AT_IN_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_AT_IN_ANNOTATION_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_BINARY_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_CLOSING_BRACE_IN_BLOCK = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_CLOSING_PAREN_IN_CAST = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COLON_IN_ASSERT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CASE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CONDITIONAL = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COLON_IN_FOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COLON_IN_LABELED_STATEMENT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_CONSTANT_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_DECLARATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INCREMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INITS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_THROWS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_INVOCATION_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_SUPERINTERFACES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_ELLIPSIS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CAST = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CATCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_FOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_IF = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SWITCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SYNCHRONIZED = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_TRY = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_POSTFIX_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_PREFIX_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_CONDITIONAL = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_WILDCARD = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_SEMICOLON_IN_FOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_SEMICOLON_IN_TRY_RESOURCES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_AFTER_UNARY_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_AND_IN_TYPE_PARAMETER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_AT_IN_ANNOTATION_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_BINARY_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CAST = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CATCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_FOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_IF = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_PARENTHESIZED_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SWITCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SYNCHRONIZED = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_TRY = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_ASSERT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CASE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CONDITIONAL = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_DEFAULT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_FOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_LABELED_STATEMENT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_CONSTANT_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_DECLARATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INCREMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INITS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_THROWS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_INVOCATION_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_SUPERINTERFACES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_ELLIPSIS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ANNOTATION_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ANONYMOUS_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_BLOCK = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_SWITCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_TYPE_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_TYPE_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_ANNOTATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_ANNOTATION_TYPE_MEMBER_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CATCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_FOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_IF = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SWITCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SYNCHRONIZED = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_TRY = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_WHILE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_PARENTHESIZED_EXPRESSION_IN_RETURN = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_PARENTHESIZED_EXPRESSION_IN_THROW = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_POSTFIX_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_PREFIX_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_CONDITIONAL = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_WILDCARD = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON_IN_FOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON_IN_TRY_RESOURCES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BEFORE_UNARY_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_BRACKETS_IN_ARRAY_TYPE_REFERENCE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACKETS_IN_ARRAY_ALLOCATION_EXPRESSION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_ANNOTATION_TYPE_MEMBER_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_ENUM_CONSTANT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_INVOCATION = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_KEEP_ELSE_STATEMENT_ON_SAME_LINE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_KEEP_EMPTY_ARRAY_INITIALIZER_ON_ONE_LINE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_KEEP_GUARDIAN_CLAUSE_ON_ONE_LINE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_KEEP_SIMPLE_IF_ON_ONE_LINE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_KEEP_THEN_STATEMENT_ON_SAME_LINE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_LINE_SPLIT = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_NEVER_INDENT_BLOCK_COMMENTS_ON_FIRST_COLUMN = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_NEVER_INDENT_LINE_COMMENTS_ON_FIRST_COLUMN = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_JOIN_WRAPPED_LINES = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_JOIN_LINES_IN_COMMENTS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_TAB_CHAR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_TAB_SIZE = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_USE_TABS_ONLY_FOR_LEADING_INDENTATIONS = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_WRAP_BEFORE_BINARY_OPERATOR = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_WRAP_BEFORE_OR_OPERATOR_MULTICATCH = JavaCore . PLUGIN_ID + "" ; public static final String FORMATTER_WRAP_OUTER_EXPRESSIONS_WHEN_NESTED = JavaCore . PLUGIN_ID + "" ; public static final int INDENT_BY_ONE = 2 ; public static final int INDENT_DEFAULT = 0 ; public static final int INDENT_ON_COLUMN = 1 ; public static final String MIXED = "mixed" ; public static final String NEXT_LINE = "next_line" ; public static final String NEXT_LINE_ON_WRAP = "" ; public static final String NEXT_LINE_SHIFTED = "" ; public static final String TRUE = "true" ; public static final int WRAP_COMPACT = 1 ; public static final int WRAP_COMPACT_FIRST_BREAK = 2 ; public static final int WRAP_NEXT_PER_LINE = 5 ; public static final int WRAP_NEXT_SHIFTED = 4 ; public static final int WRAP_NO_SPLIT = 0 ; public static final int WRAP_ONE_PER_LINE = 3 ; private static final IllegalArgumentException WRONG_ARGUMENT = new IllegalArgumentException ( ) ; public static String createAlignmentValue ( boolean forceSplit , int wrapStyle , int indentStyle ) { int alignmentValue = 0 ; switch ( wrapStyle ) { case WRAP_COMPACT : alignmentValue |= Alignment . M_COMPACT_SPLIT ; break ; case WRAP_COMPACT_FIRST_BREAK : alignmentValue |= Alignment . M_COMPACT_FIRST_BREAK_SPLIT ; break ; case WRAP_NEXT_PER_LINE : alignmentValue |= Alignment . M_NEXT_PER_LINE_SPLIT ; break ; case WRAP_NEXT_SHIFTED : alignmentValue |= Alignment . M_NEXT_SHIFTED_SPLIT ; break ; case WRAP_ONE_PER_LINE : alignmentValue |= Alignment . M_ONE_PER_LINE_SPLIT ; break ; } if ( forceSplit ) { alignmentValue |= Alignment . M_FORCE ; } switch ( indentStyle ) { case INDENT_BY_ONE : alignmentValue |= Alignment . M_INDENT_BY_ONE ; break ; case INDENT_ON_COLUMN : alignmentValue |= Alignment . M_INDENT_ON_COLUMN ; } return String . valueOf ( alignmentValue ) ; } public static Map getEclipse21Settings ( ) { return DefaultCodeFormatterOptions . getDefaultSettings ( ) . getMap ( ) ; } public static Map getEclipseDefaultSettings ( ) { return DefaultCodeFormatterOptions . getEclipseDefaultSettings ( ) . getMap ( ) ; } public static boolean getForceWrapping ( String value ) { if ( value == null ) { throw WRONG_ARGUMENT ; } try { int existingValue = Integer . parseInt ( value ) ; return ( existingValue & Alignment . M_FORCE ) != 0 ; } catch ( NumberFormatException e ) { throw WRONG_ARGUMENT ; } } public static int getIndentStyle ( String value ) { if ( value == null ) { throw WRONG_ARGUMENT ; } try { int existingValue = Integer . parseInt ( value ) ; if ( ( existingValue & Alignment . M_INDENT_BY_ONE ) != 0 ) { return INDENT_BY_ONE ; } else if ( ( existingValue & Alignment . M_INDENT_ON_COLUMN ) != 0 ) { return INDENT_ON_COLUMN ; } else { return INDENT_DEFAULT ; } } catch ( NumberFormatException e ) { throw WRONG_ARGUMENT ; } } public static Map getJavaConventionsSettings ( ) { return DefaultCodeFormatterOptions . getJavaConventionsSettings ( ) . getMap ( ) ; } public static int getWrappingStyle ( String value ) { if ( value == null ) { throw WRONG_ARGUMENT ; } try { int existingValue = Integer . parseInt ( value ) & Alignment . SPLIT_MASK ; switch ( existingValue ) { case Alignment . M_COMPACT_SPLIT : return WRAP_COMPACT ; case Alignment . M_COMPACT_FIRST_BREAK_SPLIT : return WRAP_COMPACT_FIRST_BREAK ; case Alignment . M_NEXT_PER_LINE_SPLIT : return WRAP_NEXT_PER_LINE ; case Alignment . M_NEXT_SHIFTED_SPLIT : return WRAP_NEXT_SHIFTED ; case Alignment . M_ONE_PER_LINE_SPLIT : return WRAP_ONE_PER_LINE ; default : return WRAP_NO_SPLIT ; } } catch ( NumberFormatException e ) { throw WRONG_ARGUMENT ; } } public static String setForceWrapping ( String value , boolean force ) { if ( value == null ) { throw WRONG_ARGUMENT ; } try { int existingValue = Integer . parseInt ( value ) ; existingValue &= ~ Alignment . M_FORCE ; if ( force ) { existingValue |= Alignment . M_FORCE ; } return String . valueOf ( existingValue ) ; } catch ( NumberFormatException e ) { throw WRONG_ARGUMENT ; } } public static String setIndentStyle ( String value , int indentStyle ) { if ( value == null ) { throw WRONG_ARGUMENT ; } switch ( indentStyle ) { case INDENT_BY_ONE : case INDENT_DEFAULT : case INDENT_ON_COLUMN : break ; default : throw WRONG_ARGUMENT ; } try { int existingValue = Integer . parseInt ( value ) ; existingValue &= ~ ( Alignment . M_INDENT_BY_ONE | Alignment . M_INDENT_ON_COLUMN ) ; switch ( indentStyle ) { case INDENT_BY_ONE : existingValue |= Alignment . M_INDENT_BY_ONE ; break ; case INDENT_ON_COLUMN : existingValue |= Alignment . M_INDENT_ON_COLUMN ; } return String . valueOf ( existingValue ) ; } catch ( NumberFormatException e ) { throw WRONG_ARGUMENT ; } } public static String setWrappingStyle ( String value , int wrappingStyle ) { if ( value == null ) { throw WRONG_ARGUMENT ; } switch ( wrappingStyle ) { case WRAP_COMPACT : case WRAP_COMPACT_FIRST_BREAK : case WRAP_NEXT_PER_LINE : case WRAP_NEXT_SHIFTED : case WRAP_NO_SPLIT : case WRAP_ONE_PER_LINE : break ; default : throw WRONG_ARGUMENT ; } try { int existingValue = Integer . parseInt ( value ) ; existingValue &= ~ ( Alignment . SPLIT_MASK ) ; switch ( wrappingStyle ) { case WRAP_COMPACT : existingValue |= Alignment . M_COMPACT_SPLIT ; break ; case WRAP_COMPACT_FIRST_BREAK : existingValue |= Alignment . M_COMPACT_FIRST_BREAK_SPLIT ; break ; case WRAP_NEXT_PER_LINE : existingValue |= Alignment . M_NEXT_PER_LINE_SPLIT ; break ; case WRAP_NEXT_SHIFTED : existingValue |= Alignment . M_NEXT_SHIFTED_SPLIT ; break ; case WRAP_ONE_PER_LINE : existingValue |= Alignment . M_ONE_PER_LINE_SPLIT ; break ; } return String . valueOf ( existingValue ) ; } catch ( NumberFormatException e ) { throw WRONG_ARGUMENT ; } } } </s>