001package org.unix4j.unix.sed; 002 003import java.util.Arrays; 004import java.util.Collections; 005import java.util.EnumSet; 006import java.util.Iterator; 007import org.unix4j.option.Option; 008 009import org.unix4j.unix.Sed; 010 011/** 012 * Option sets for the {@link Sed sed} command with 013 * the following options: {@link #g g}, {@link #I I}, {@link #l l}, {@link #p p}, {@link #n n}, {@link #s s}. 014 * <p> 015 * Application code does normally not directly refer to this class; 016 * {@link Sed#Options} should be used instead to specify command 017 * options. See also {@link org.unix4j.unix.sed.SedOptions} for more information. 018 */ 019public enum SedOptionSet_Iglnps implements SedOptions { 020 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 021 Active_Iglnps( 022 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 023 true, 024 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 025 ), 026 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 027 Active_Iglnps_long( 028 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 029 false, 030 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 031 ), 032 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 033 Active_glnps( 034 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iglnps, /*ignoreCase:*/Active_Iglnps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 035 true, 036 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 037 ), 038 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 039 Active_glnps_long( 040 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iglnps, /*ignoreCase:*/Active_Iglnps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 041 false, 042 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 043 ), 044 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 045 Active_Ignps( 046 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iglnps, /*lineNumber:*/Active_Iglnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 047 true, 048 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.quiet, SedOption.substitute 049 ), 050 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 051 Active_Ignps_long( 052 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iglnps, /*lineNumber:*/Active_Iglnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 053 false, 054 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.quiet, SedOption.substitute 055 ), 056 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 057 Active_Iglns( 058 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iglnps, /*print:*/Active_Iglnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 059 true, 060 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet, SedOption.substitute 061 ), 062 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 063 Active_Iglns_long( 064 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iglnps, /*print:*/Active_Iglnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 065 false, 066 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet, SedOption.substitute 067 ), 068 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 069 Active_Ilnps( 070 /*g:*/Active_Iglnps, /*global:*/Active_Iglnps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 071 true, 072 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 073 ), 074 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 075 Active_Ilnps_long( 076 /*g:*/Active_Iglnps, /*global:*/Active_Iglnps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 077 false, 078 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 079 ), 080 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 081 Active_Iglps( 082 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iglnps, /*quiet:*/Active_Iglnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 083 true, 084 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.substitute 085 ), 086 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 087 Active_Iglps_long( 088 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iglnps, /*quiet:*/Active_Iglnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 089 false, 090 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.substitute 091 ), 092 /** Option set with the following active options: {@link #global g}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 093 Active_gnps( 094 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Ignps, /*ignoreCase:*/Active_Ignps_long, /*l:*/Active_glnps, /*lineNumber:*/Active_glnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 095 true, 096 /*active:*/SedOption.global, SedOption.print, SedOption.quiet, SedOption.substitute 097 ), 098 /** Option set with the following active options: {@link #global g}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 099 Active_gnps_long( 100 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Ignps, /*ignoreCase:*/Active_Ignps_long, /*l:*/Active_glnps, /*lineNumber:*/Active_glnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 101 false, 102 /*active:*/SedOption.global, SedOption.print, SedOption.quiet, SedOption.substitute 103 ), 104 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 105 Active_glns( 106 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iglns, /*ignoreCase:*/Active_Iglns_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_glnps, /*print:*/Active_glnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 107 true, 108 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.quiet, SedOption.substitute 109 ), 110 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 111 Active_glns_long( 112 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iglns, /*ignoreCase:*/Active_Iglns_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_glnps, /*print:*/Active_glnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 113 false, 114 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.quiet, SedOption.substitute 115 ), 116 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #quiet n}, {@link #substitute s}.*/ 117 Active_Igns( 118 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iglns, /*lineNumber:*/Active_Iglns_long, /*p:*/Active_Ignps, /*print:*/Active_Ignps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 119 true, 120 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.quiet, SedOption.substitute 121 ), 122 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #quiet n}, {@link #substitute s}.*/ 123 Active_Igns_long( 124 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iglns, /*lineNumber:*/Active_Iglns_long, /*p:*/Active_Ignps, /*print:*/Active_Ignps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 125 false, 126 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.quiet, SedOption.substitute 127 ), 128 /** Option set with the following active options: {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 129 Active_lnps( 130 /*g:*/Active_glnps, /*global:*/Active_glnps_long, /*I:*/Active_Ilnps, /*ignoreCase:*/Active_Ilnps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 131 true, 132 /*active:*/SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 133 ), 134 /** Option set with the following active options: {@link #lineNumber l}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 135 Active_lnps_long( 136 /*g:*/Active_glnps, /*global:*/Active_glnps_long, /*I:*/Active_Ilnps, /*ignoreCase:*/Active_Ilnps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 137 false, 138 /*active:*/SedOption.lineNumber, SedOption.print, SedOption.quiet, SedOption.substitute 139 ), 140 /** Option set with the following active options: {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 141 Active_Inps( 142 /*g:*/Active_Ignps, /*global:*/Active_Ignps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ilnps, /*lineNumber:*/Active_Ilnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 143 true, 144 /*active:*/SedOption.ignoreCase, SedOption.print, SedOption.quiet, SedOption.substitute 145 ), 146 /** Option set with the following active options: {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 147 Active_Inps_long( 148 /*g:*/Active_Ignps, /*global:*/Active_Ignps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ilnps, /*lineNumber:*/Active_Ilnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 149 false, 150 /*active:*/SedOption.ignoreCase, SedOption.print, SedOption.quiet, SedOption.substitute 151 ), 152 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 153 Active_Ilns( 154 /*g:*/Active_Iglns, /*global:*/Active_Iglns_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ilnps, /*print:*/Active_Ilnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 155 true, 156 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet, SedOption.substitute 157 ), 158 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 159 Active_Ilns_long( 160 /*g:*/Active_Iglns, /*global:*/Active_Iglns_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ilnps, /*print:*/Active_Ilnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 161 false, 162 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet, SedOption.substitute 163 ), 164 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 165 Active_glps( 166 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iglps, /*ignoreCase:*/Active_Iglps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_glnps, /*quiet:*/Active_glnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 167 true, 168 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.substitute 169 ), 170 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 171 Active_glps_long( 172 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iglps, /*ignoreCase:*/Active_Iglps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_glnps, /*quiet:*/Active_glnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 173 false, 174 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.substitute 175 ), 176 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #substitute s}.*/ 177 Active_Igps( 178 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iglps, /*lineNumber:*/Active_Iglps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Ignps, /*quiet:*/Active_Ignps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 179 true, 180 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.substitute 181 ), 182 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #substitute s}.*/ 183 Active_Igps_long( 184 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iglps, /*lineNumber:*/Active_Iglps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Ignps, /*quiet:*/Active_Ignps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 185 false, 186 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.substitute 187 ), 188 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #substitute s}.*/ 189 Active_Igls( 190 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iglps, /*print:*/Active_Iglps_long, /*n:*/Active_Iglns, /*quiet:*/Active_Iglns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 191 true, 192 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.substitute 193 ), 194 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #substitute s}.*/ 195 Active_Igls_long( 196 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iglps, /*print:*/Active_Iglps_long, /*n:*/Active_Iglns, /*quiet:*/Active_Iglns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 197 false, 198 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.substitute 199 ), 200 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 201 Active_Ilps( 202 /*g:*/Active_Iglps, /*global:*/Active_Iglps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Ilnps, /*quiet:*/Active_Ilnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 203 true, 204 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.substitute 205 ), 206 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 207 Active_Ilps_long( 208 /*g:*/Active_Iglps, /*global:*/Active_Iglps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Ilnps, /*quiet:*/Active_Ilnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 209 false, 210 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.substitute 211 ), 212 /** Option set with the following active options: {@link #global g}, {@link #quiet n}, {@link #substitute s}.*/ 213 Active_gns( 214 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igns, /*ignoreCase:*/Active_Igns_long, /*l:*/Active_glns, /*lineNumber:*/Active_glns_long, /*p:*/Active_gnps, /*print:*/Active_gnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 215 true, 216 /*active:*/SedOption.global, SedOption.quiet, SedOption.substitute 217 ), 218 /** Option set with the following active options: {@link #global g}, {@link #quiet n}, {@link #substitute s}.*/ 219 Active_gns_long( 220 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igns, /*ignoreCase:*/Active_Igns_long, /*l:*/Active_glns, /*lineNumber:*/Active_glns_long, /*p:*/Active_gnps, /*print:*/Active_gnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 221 false, 222 /*active:*/SedOption.global, SedOption.quiet, SedOption.substitute 223 ), 224 /** Option set with the following active options: {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 225 Active_nps( 226 /*g:*/Active_gnps, /*global:*/Active_gnps_long, /*I:*/Active_Inps, /*ignoreCase:*/Active_Inps_long, /*l:*/Active_lnps, /*lineNumber:*/Active_lnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 227 true, 228 /*active:*/SedOption.print, SedOption.quiet, SedOption.substitute 229 ), 230 /** Option set with the following active options: {@link #print p}, {@link #quiet n}, {@link #substitute s}.*/ 231 Active_nps_long( 232 /*g:*/Active_gnps, /*global:*/Active_gnps_long, /*I:*/Active_Inps, /*ignoreCase:*/Active_Inps_long, /*l:*/Active_lnps, /*lineNumber:*/Active_lnps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 233 false, 234 /*active:*/SedOption.print, SedOption.quiet, SedOption.substitute 235 ), 236 /** Option set with the following active options: {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 237 Active_lns( 238 /*g:*/Active_glns, /*global:*/Active_glns_long, /*I:*/Active_Ilns, /*ignoreCase:*/Active_Ilns_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_lnps, /*print:*/Active_lnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 239 true, 240 /*active:*/SedOption.lineNumber, SedOption.quiet, SedOption.substitute 241 ), 242 /** Option set with the following active options: {@link #lineNumber l}, {@link #quiet n}, {@link #substitute s}.*/ 243 Active_lns_long( 244 /*g:*/Active_glns, /*global:*/Active_glns_long, /*I:*/Active_Ilns, /*ignoreCase:*/Active_Ilns_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_lnps, /*print:*/Active_lnps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 245 false, 246 /*active:*/SedOption.lineNumber, SedOption.quiet, SedOption.substitute 247 ), 248 /** Option set with the following active options: {@link #ignoreCase I}, {@link #quiet n}, {@link #substitute s}.*/ 249 Active_Ins( 250 /*g:*/Active_Igns, /*global:*/Active_Igns_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ilns, /*lineNumber:*/Active_Ilns_long, /*p:*/Active_Inps, /*print:*/Active_Inps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 251 true, 252 /*active:*/SedOption.ignoreCase, SedOption.quiet, SedOption.substitute 253 ), 254 /** Option set with the following active options: {@link #ignoreCase I}, {@link #quiet n}, {@link #substitute s}.*/ 255 Active_Ins_long( 256 /*g:*/Active_Igns, /*global:*/Active_Igns_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ilns, /*lineNumber:*/Active_Ilns_long, /*p:*/Active_Inps, /*print:*/Active_Inps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 257 false, 258 /*active:*/SedOption.ignoreCase, SedOption.quiet, SedOption.substitute 259 ), 260 /** Option set with the following active options: {@link #global g}, {@link #print p}, {@link #substitute s}.*/ 261 Active_gps( 262 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igps, /*ignoreCase:*/Active_Igps_long, /*l:*/Active_glps, /*lineNumber:*/Active_glps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_gnps, /*quiet:*/Active_gnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 263 true, 264 /*active:*/SedOption.global, SedOption.print, SedOption.substitute 265 ), 266 /** Option set with the following active options: {@link #global g}, {@link #print p}, {@link #substitute s}.*/ 267 Active_gps_long( 268 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igps, /*ignoreCase:*/Active_Igps_long, /*l:*/Active_glps, /*lineNumber:*/Active_glps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_gnps, /*quiet:*/Active_gnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 269 false, 270 /*active:*/SedOption.global, SedOption.print, SedOption.substitute 271 ), 272 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #substitute s}.*/ 273 Active_gls( 274 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igls, /*ignoreCase:*/Active_Igls_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_glps, /*print:*/Active_glps_long, /*n:*/Active_glns, /*quiet:*/Active_glns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 275 true, 276 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.substitute 277 ), 278 /** Option set with the following active options: {@link #global g}, {@link #lineNumber l}, {@link #substitute s}.*/ 279 Active_gls_long( 280 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igls, /*ignoreCase:*/Active_Igls_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_glps, /*print:*/Active_glps_long, /*n:*/Active_glns, /*quiet:*/Active_glns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 281 false, 282 /*active:*/SedOption.global, SedOption.lineNumber, SedOption.substitute 283 ), 284 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #substitute s}.*/ 285 Active_Igs( 286 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Igls, /*lineNumber:*/Active_Igls_long, /*p:*/Active_Igps, /*print:*/Active_Igps_long, /*n:*/Active_Igns, /*quiet:*/Active_Igns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 287 true, 288 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.substitute 289 ), 290 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #substitute s}.*/ 291 Active_Igs_long( 292 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Igls, /*lineNumber:*/Active_Igls_long, /*p:*/Active_Igps, /*print:*/Active_Igps_long, /*n:*/Active_Igns, /*quiet:*/Active_Igns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 293 false, 294 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.substitute 295 ), 296 /** Option set with the following active options: {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 297 Active_lps( 298 /*g:*/Active_glps, /*global:*/Active_glps_long, /*I:*/Active_Ilps, /*ignoreCase:*/Active_Ilps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_lnps, /*quiet:*/Active_lnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 299 true, 300 /*active:*/SedOption.lineNumber, SedOption.print, SedOption.substitute 301 ), 302 /** Option set with the following active options: {@link #lineNumber l}, {@link #print p}, {@link #substitute s}.*/ 303 Active_lps_long( 304 /*g:*/Active_glps, /*global:*/Active_glps_long, /*I:*/Active_Ilps, /*ignoreCase:*/Active_Ilps_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_lnps, /*quiet:*/Active_lnps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 305 false, 306 /*active:*/SedOption.lineNumber, SedOption.print, SedOption.substitute 307 ), 308 /** Option set with the following active options: {@link #ignoreCase I}, {@link #print p}, {@link #substitute s}.*/ 309 Active_Ips( 310 /*g:*/Active_Igps, /*global:*/Active_Igps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ilps, /*lineNumber:*/Active_Ilps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Inps, /*quiet:*/Active_Inps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 311 true, 312 /*active:*/SedOption.ignoreCase, SedOption.print, SedOption.substitute 313 ), 314 /** Option set with the following active options: {@link #ignoreCase I}, {@link #print p}, {@link #substitute s}.*/ 315 Active_Ips_long( 316 /*g:*/Active_Igps, /*global:*/Active_Igps_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ilps, /*lineNumber:*/Active_Ilps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Inps, /*quiet:*/Active_Inps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 317 false, 318 /*active:*/SedOption.ignoreCase, SedOption.print, SedOption.substitute 319 ), 320 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #substitute s}.*/ 321 Active_Ils( 322 /*g:*/Active_Igls, /*global:*/Active_Igls_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ilps, /*print:*/Active_Ilps_long, /*n:*/Active_Ilns, /*quiet:*/Active_Ilns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 323 true, 324 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.substitute 325 ), 326 /** Option set with the following active options: {@link #ignoreCase I}, {@link #lineNumber l}, {@link #substitute s}.*/ 327 Active_Ils_long( 328 /*g:*/Active_Igls, /*global:*/Active_Igls_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ilps, /*print:*/Active_Ilps_long, /*n:*/Active_Ilns, /*quiet:*/Active_Ilns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 329 false, 330 /*active:*/SedOption.ignoreCase, SedOption.lineNumber, SedOption.substitute 331 ), 332 /** Option set with the following active options: {@link #quiet n}, {@link #substitute s}.*/ 333 Active_ns( 334 /*g:*/Active_gns, /*global:*/Active_gns_long, /*I:*/Active_Ins, /*ignoreCase:*/Active_Ins_long, /*l:*/Active_lns, /*lineNumber:*/Active_lns_long, /*p:*/Active_nps, /*print:*/Active_nps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 335 true, 336 /*active:*/SedOption.quiet, SedOption.substitute 337 ), 338 /** Option set with the following active options: {@link #quiet n}, {@link #substitute s}.*/ 339 Active_ns_long( 340 /*g:*/Active_gns, /*global:*/Active_gns_long, /*I:*/Active_Ins, /*ignoreCase:*/Active_Ins_long, /*l:*/Active_lns, /*lineNumber:*/Active_lns_long, /*p:*/Active_nps, /*print:*/Active_nps_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 341 false, 342 /*active:*/SedOption.quiet, SedOption.substitute 343 ), 344 /** Option set with the following active options: {@link #global g}, {@link #substitute s}.*/ 345 Active_gs( 346 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igs, /*ignoreCase:*/Active_Igs_long, /*l:*/Active_gls, /*lineNumber:*/Active_gls_long, /*p:*/Active_gps, /*print:*/Active_gps_long, /*n:*/Active_gns, /*quiet:*/Active_gns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 347 true, 348 /*active:*/SedOption.global, SedOption.substitute 349 ), 350 /** Option set with the following active options: {@link #global g}, {@link #substitute s}.*/ 351 Active_gs_long( 352 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igs, /*ignoreCase:*/Active_Igs_long, /*l:*/Active_gls, /*lineNumber:*/Active_gls_long, /*p:*/Active_gps, /*print:*/Active_gps_long, /*n:*/Active_gns, /*quiet:*/Active_gns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 353 false, 354 /*active:*/SedOption.global, SedOption.substitute 355 ), 356 /** Option set with the following active options: {@link #print p}, {@link #substitute s}.*/ 357 Active_ps( 358 /*g:*/Active_gps, /*global:*/Active_gps_long, /*I:*/Active_Ips, /*ignoreCase:*/Active_Ips_long, /*l:*/Active_lps, /*lineNumber:*/Active_lps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_nps, /*quiet:*/Active_nps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 359 true, 360 /*active:*/SedOption.print, SedOption.substitute 361 ), 362 /** Option set with the following active options: {@link #print p}, {@link #substitute s}.*/ 363 Active_ps_long( 364 /*g:*/Active_gps, /*global:*/Active_gps_long, /*I:*/Active_Ips, /*ignoreCase:*/Active_Ips_long, /*l:*/Active_lps, /*lineNumber:*/Active_lps_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_nps, /*quiet:*/Active_nps_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 365 false, 366 /*active:*/SedOption.print, SedOption.substitute 367 ), 368 /** Option set with the following active options: {@link #lineNumber l}, {@link #substitute s}.*/ 369 Active_ls( 370 /*g:*/Active_gls, /*global:*/Active_gls_long, /*I:*/Active_Ils, /*ignoreCase:*/Active_Ils_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_lps, /*print:*/Active_lps_long, /*n:*/Active_lns, /*quiet:*/Active_lns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 371 true, 372 /*active:*/SedOption.lineNumber, SedOption.substitute 373 ), 374 /** Option set with the following active options: {@link #lineNumber l}, {@link #substitute s}.*/ 375 Active_ls_long( 376 /*g:*/Active_gls, /*global:*/Active_gls_long, /*I:*/Active_Ils, /*ignoreCase:*/Active_Ils_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_lps, /*print:*/Active_lps_long, /*n:*/Active_lns, /*quiet:*/Active_lns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 377 false, 378 /*active:*/SedOption.lineNumber, SedOption.substitute 379 ), 380 /** Option set with the following active options: {@link #ignoreCase I}, {@link #substitute s}.*/ 381 Active_Is( 382 /*g:*/Active_Igs, /*global:*/Active_Igs_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ils, /*lineNumber:*/Active_Ils_long, /*p:*/Active_Ips, /*print:*/Active_Ips_long, /*n:*/Active_Ins, /*quiet:*/Active_Ins_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 383 true, 384 /*active:*/SedOption.ignoreCase, SedOption.substitute 385 ), 386 /** Option set with the following active options: {@link #ignoreCase I}, {@link #substitute s}.*/ 387 Active_Is_long( 388 /*g:*/Active_Igs, /*global:*/Active_Igs_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ils, /*lineNumber:*/Active_Ils_long, /*p:*/Active_Ips, /*print:*/Active_Ips_long, /*n:*/Active_Ins, /*quiet:*/Active_Ins_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 389 false, 390 /*active:*/SedOption.ignoreCase, SedOption.substitute 391 ), 392 /** Option set with the following active options: {@link #substitute s}.*/ 393 Active_s( 394 /*g:*/Active_gs, /*global:*/Active_gs_long, /*I:*/Active_Is, /*ignoreCase:*/Active_Is_long, /*l:*/Active_ls, /*lineNumber:*/Active_ls_long, /*p:*/Active_ps, /*print:*/Active_ps_long, /*n:*/Active_ns, /*quiet:*/Active_ns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 395 true, 396 /*active:*/SedOption.substitute 397 ), 398 /** Option set with the following active options: {@link #substitute s}.*/ 399 Active_s_long( 400 /*g:*/Active_gs, /*global:*/Active_gs_long, /*I:*/Active_Is, /*ignoreCase:*/Active_Is_long, /*l:*/Active_ls, /*lineNumber:*/Active_ls_long, /*p:*/Active_ps, /*print:*/Active_ps_long, /*n:*/Active_ns, /*quiet:*/Active_ns_long, /*s:*/null /*already set*/, /*substitute:*/null /*already set*/, 401 false, 402 /*active:*/SedOption.substitute 403 ); 404 private SedOptionSet_Iglnps( 405 SedOptionSet_Iglnps g, SedOptionSet_Iglnps global, SedOptionSet_Iglnps I, SedOptionSet_Iglnps ignoreCase, SedOptionSet_Iglnps l, SedOptionSet_Iglnps lineNumber, SedOptionSet_Iglnps p, SedOptionSet_Iglnps print, SedOptionSet_Iglnps n, SedOptionSet_Iglnps quiet, SedOptionSet_Iglnps s, SedOptionSet_Iglnps substitute, 406 boolean useAcronym, 407 SedOption... activeOptions 408 ) { 409 this.g = g == null ? this : g; 410 this.global = global == null ? this : global; 411 this.I = I == null ? this : I; 412 this.ignoreCase = ignoreCase == null ? this : ignoreCase; 413 this.l = l == null ? this : l; 414 this.lineNumber = lineNumber == null ? this : lineNumber; 415 this.p = p == null ? this : p; 416 this.print = print == null ? this : print; 417 this.n = n == null ? this : n; 418 this.quiet = quiet == null ? this : quiet; 419 this.s = s == null ? this : s; 420 this.substitute = substitute == null ? this : substitute; 421 this.useAcronym = useAcronym; 422 this.options = activeOptions.length == 0 ? EnumSet.noneOf(SedOption.class) : EnumSet.copyOf(Arrays.asList(activeOptions)); 423 } 424 private final boolean useAcronym; 425 /** 426 * Option {@code "-g"}: Globally substitute for all non-overlapping instances of the regexp 427 rather than just the first one. 428 <p> 429 (This option is ignored if the occurrence operand is specified). 430 * <p> 431 * The option {@code "-g"} is equivalent to the {@code "--}{@link #global global}{@code "} option. 432 * <p> 433 * Technically speaking, this field points to a set with the options of the 434 * current set plus the option {@code "-g"}. If the option {@code "-g"} 435 * is already set, the field {@code g} points to the enum constant itself 436 * as it already represents the current set of options. 437 */ 438 public final SedOptionSet_Iglnps g; 439 /** 440 * Option {@code "--global"}: Globally substitute for all non-overlapping instances of the regexp 441 rather than just the first one. 442 <p> 443 (This option is ignored if the occurrence operand is specified). 444 * <p> 445 * The option {@code "--global"} is equivalent to the {@code "-}{@link #g g}{@code "} option. 446 * <p> 447 * Technically speaking, this field points to a set with the options of the 448 * current set plus the option {@code "--global"}. If the option {@code "--global"} 449 * is already set, the field {@code global} points to the enum constant itself 450 * as it already represents the current set of options. 451 */ 452 public final SedOptionSet_Iglnps global; 453 /** 454 * Option {@code "-I"}: Use case insensitive pattern matching. 455 * <p> 456 * The option {@code "-I"} is equivalent to the {@code "--}{@link #ignoreCase ignoreCase}{@code "} option. 457 * <p> 458 * Technically speaking, this field points to a set with the options of the 459 * current set plus the option {@code "-I"}. If the option {@code "-I"} 460 * is already set, the field {@code I} points to the enum constant itself 461 * as it already represents the current set of options. 462 */ 463 public final SedOptionSet_Iglnps I; 464 /** 465 * Option {@code "--ignoreCase"}: Use case insensitive pattern matching. 466 * <p> 467 * The option {@code "--ignoreCase"} is equivalent to the {@code "-}{@link #I I}{@code "} option. 468 * <p> 469 * Technically speaking, this field points to a set with the options of the 470 * current set plus the option {@code "--ignoreCase"}. If the option {@code "--ignoreCase"} 471 * is already set, the field {@code ignoreCase} points to the enum constant itself 472 * as it already represents the current set of options. 473 */ 474 public final SedOptionSet_Iglnps ignoreCase; 475 /** 476 * Option {@code "-l"}: Writes the current line number on a separate line to the standard 477 output. 478 * <p> 479 * The option {@code "-l"} is equivalent to the {@code "--}{@link #lineNumber lineNumber}{@code "} option. 480 * <p> 481 * Technically speaking, this field points to a set with the options of the 482 * current set plus the option {@code "-l"}. If the option {@code "-l"} 483 * is already set, the field {@code l} points to the enum constant itself 484 * as it already represents the current set of options. 485 */ 486 public final SedOptionSet_Iglnps l; 487 /** 488 * Option {@code "--lineNumber"}: Writes the current line number on a separate line to the standard 489 output. 490 * <p> 491 * The option {@code "--lineNumber"} is equivalent to the {@code "-}{@link #l l}{@code "} option. 492 * <p> 493 * Technically speaking, this field points to a set with the options of the 494 * current set plus the option {@code "--lineNumber"}. If the option {@code "--lineNumber"} 495 * is already set, the field {@code lineNumber} points to the enum constant itself 496 * as it already represents the current set of options. 497 */ 498 public final SedOptionSet_Iglnps lineNumber; 499 /** 500 * Option {@code "-p"}: Write the matched line to standard output. 501 * <p> 502 * The option {@code "-p"} is equivalent to the {@code "--}{@link #print print}{@code "} option. 503 * <p> 504 * Technically speaking, this field points to a set with the options of the 505 * current set plus the option {@code "-p"}. If the option {@code "-p"} 506 * is already set, the field {@code p} points to the enum constant itself 507 * as it already represents the current set of options. 508 */ 509 public final SedOptionSet_Iglnps p; 510 /** 511 * Option {@code "--print"}: Write the matched line to standard output. 512 * <p> 513 * The option {@code "--print"} is equivalent to the {@code "-}{@link #p p}{@code "} option. 514 * <p> 515 * Technically speaking, this field points to a set with the options of the 516 * current set plus the option {@code "--print"}. If the option {@code "--print"} 517 * is already set, the field {@code print} points to the enum constant itself 518 * as it already represents the current set of options. 519 */ 520 public final SedOptionSet_Iglnps print; 521 /** 522 * Option {@code "-n"}: Suppress the default output (in which each line, after it is 523 examined for editing, is written to standard output). Only lines 524 explicitly selected for output are written. 525 * <p> 526 * The option {@code "-n"} is equivalent to the {@code "--}{@link #quiet quiet}{@code "} option. 527 * <p> 528 * Technically speaking, this field points to a set with the options of the 529 * current set plus the option {@code "-n"}. If the option {@code "-n"} 530 * is already set, the field {@code n} points to the enum constant itself 531 * as it already represents the current set of options. 532 */ 533 public final SedOptionSet_Iglnps n; 534 /** 535 * Option {@code "--quiet"}: Suppress the default output (in which each line, after it is 536 examined for editing, is written to standard output). Only lines 537 explicitly selected for output are written. 538 * <p> 539 * The option {@code "--quiet"} is equivalent to the {@code "-}{@link #n n}{@code "} option. 540 * <p> 541 * Technically speaking, this field points to a set with the options of the 542 * current set plus the option {@code "--quiet"}. If the option {@code "--quiet"} 543 * is already set, the field {@code quiet} points to the enum constant itself 544 * as it already represents the current set of options. 545 */ 546 public final SedOptionSet_Iglnps quiet; 547 /** 548 * Option {@code "-s"}: Substitutes the replacement string for instances of the regexp in 549 the matched line. 550<p> 551 The characters "$0" appearing in the replacement are replaced 552 by the line matching the regexp. The characters "$n", where n is a 553 digit other than zero, are replaced by the text matched by the 554 corresponding backreference expression (aka group). The special 555 meaning of "$n" in this context can be suppressed by preceding it 556 by a backslash. 557<p> 558 A line can be split by substituting a newline ('\n') into it. 559 <p> 560 A substitution is considered to have been performed even if the 561 replacement string is identical to the string that it replaces. 562 * <p> 563 * The option {@code "-s"} is equivalent to the {@code "--}{@link #substitute substitute}{@code "} option. 564 * <p> 565 * Technically speaking, this field points to a set with the options of the 566 * current set plus the option {@code "-s"}. If the option {@code "-s"} 567 * is already set, the field {@code s} points to the enum constant itself 568 * as it already represents the current set of options. 569 */ 570 public final SedOptionSet_Iglnps s; 571 /** 572 * Option {@code "--substitute"}: Substitutes the replacement string for instances of the regexp in 573 the matched line. 574<p> 575 The characters "$0" appearing in the replacement are replaced 576 by the line matching the regexp. The characters "$n", where n is a 577 digit other than zero, are replaced by the text matched by the 578 corresponding backreference expression (aka group). The special 579 meaning of "$n" in this context can be suppressed by preceding it 580 by a backslash. 581<p> 582 A line can be split by substituting a newline ('\n') into it. 583 <p> 584 A substitution is considered to have been performed even if the 585 replacement string is identical to the string that it replaces. 586 * <p> 587 * The option {@code "--substitute"} is equivalent to the {@code "-}{@link #s s}{@code "} option. 588 * <p> 589 * Technically speaking, this field points to a set with the options of the 590 * current set plus the option {@code "--substitute"}. If the option {@code "--substitute"} 591 * is already set, the field {@code substitute} points to the enum constant itself 592 * as it already represents the current set of options. 593 */ 594 public final SedOptionSet_Iglnps substitute; 595 private final EnumSet<SedOption> options; 596 597 //inherit javadoc 598 @Override 599 public Class<SedOption> optionType() { 600 return SedOption.class; 601 } 602 //inherit javadoc 603 @Override 604 public boolean isSet(SedOption option) { 605 return options.contains(option); 606 } 607 //inherit javadoc 608 @Override 609 public int size() { 610 return options.size(); 611 } 612 /** 613 * Returns the set with the active options. The returned set a new defensive 614 * copy instance created when this method is called, modifications of this 615 * set will therefore not alter {@code this} option set. 616 * 617 * @return a copy of the set with the active options. 618 */ 619 @Override 620 public EnumSet<SedOption> asSet() { 621 return EnumSet.copyOf(options); 622 } 623 /** 624 * Returns an immutable iterator with the active options of this option set. 625 * 626 * @return an immutable iterator for over the active options 627 */ 628 @Override 629 public Iterator<SedOption> iterator() { 630 return Collections.unmodifiableSet(options).iterator(); 631 } 632 /** 633 * Returns true if the {@link Option#acronym() acronym} should be used in 634 * for the specified {@code option} string representations. 635 * <p> 636 * In particular and independent from the {@code option} argument, this 637 * option set returns true if the last option added to this set was an 638 * acronym, and false if it was a long option name. 639 * <p> 640 * For instance, the set defined as 641 * <pre> 642 * SedOptionSet_Iglnps.global.I; 643 * </pre> 644 * uses acronyms, that is, this method always returns true for the above 645 * set. 646 * <p> 647 * On the other hand, long option names are used and this method always 648 * returns false for the set 649 * <pre> 650 * SedOptionSet_Iglnps.g.ignoreCase; 651 * </pre> 652 * <p> 653 * Note that a repeated option is <i>not</i> treated as the last set option. 654 * For instance, the first and last option of the following set are 655 * equivalent and acronyms are used: 656 * <pre> 657 * SedOptionSet_Iglnps.g.I.global; 658 * </pre> 659 * <p> 660 * This method always returns true for the empty set with no active options. 661 * 662 * @param option 663 * the option of interest, has no impact on the result returned 664 * by this method 665 * @return true if option acronyms should be used for string representations 666 * of any option of this option set 667 */ 668 @Override 669 public boolean useAcronymFor(SedOption option) { 670 return useAcronym; 671 } 672}