001
002package gudusoft.gsqlparser.pp.para.styleenums;
003
004/** Output-density modes for the formatter. */
005public enum TCompactMode {
006        /** Run the normal statement-specific pretty-printing pipeline. */
007        CpmNone,
008        /** Skip normal layout and emit compact token text, wrapping at the configured line width. */
009        Cpmugly;
010
011        public static TCompactMode of(String type) {
012                if (type == null)
013                        return null;
014                for (TCompactMode value : TCompactMode.values()) {
015                        if (value.name().equalsIgnoreCase(type)) {
016                                return value;
017                        }
018                }
019                return null;
020        }
021}