001 002package gudusoft.gsqlparser.pp.para.styleenums; 003 004/** Policy for blank lines found between statements. */ 005public enum TEmptyLinesOption { 006 /** Collapse two or more separating line breaks to one blank line. */ 007 EloMergeIntoOne, 008 /** Remove blank lines while retaining the newline that separates statements. */ 009 EloRemove, 010 /** Reproduce the number of blank lines present in the input. */ 011 EloPreserve; 012 013 public static TEmptyLinesOption of(String type) { 014 if (type == null) 015 return null; 016 for (TEmptyLinesOption value : TEmptyLinesOption.values()) { 017 if (value.name().equalsIgnoreCase(type)) { 018 return value; 019 } 020 } 021 return null; 022 } 023}