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 #i i}, {@link #l l}, {@link #p p}, {@link #n n}. 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_Igilnp implements SedOptions { 020 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 021 Active_Igilnp( 022 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/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*/, 023 true, 024 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 025 ), 026 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 027 Active_Igilnp_long( 028 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/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*/, 029 false, 030 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 031 ), 032 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 033 Active_gilnp( 034 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igilnp, /*ignoreCase:*/Active_Igilnp_long, /*i:*/null /*already set*/, /*insert:*/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*/, 035 true, 036 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 037 ), 038 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 039 Active_gilnp_long( 040 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igilnp, /*ignoreCase:*/Active_Igilnp_long, /*i:*/null /*already set*/, /*insert:*/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*/, 041 false, 042 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 043 ), 044 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 045 Active_Iginp( 046 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igilnp, /*lineNumber:*/Active_Igilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 047 true, 048 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.print, SedOption.quiet 049 ), 050 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 051 Active_Iginp_long( 052 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igilnp, /*lineNumber:*/Active_Igilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 053 false, 054 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.print, SedOption.quiet 055 ), 056 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 057 Active_Igiln( 058 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Igilnp, /*print:*/Active_Igilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 059 true, 060 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.quiet 061 ), 062 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 063 Active_Igiln_long( 064 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Igilnp, /*print:*/Active_Igilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 065 false, 066 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.quiet 067 ), 068 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 069 Active_Iilnp( 070 /*g:*/Active_Igilnp, /*global:*/Active_Igilnp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/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*/, 071 true, 072 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 073 ), 074 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 075 Active_Iilnp_long( 076 /*g:*/Active_Igilnp, /*global:*/Active_Igilnp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/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*/, 077 false, 078 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 079 ), 080 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 081 Active_Igilp( 082 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Igilnp, /*quiet:*/Active_Igilnp_long, 083 true, 084 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print 085 ), 086 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 087 Active_Igilp_long( 088 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Igilnp, /*quiet:*/Active_Igilnp_long, 089 false, 090 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print 091 ), 092 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 093 Active_ginp( 094 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iginp, /*ignoreCase:*/Active_Iginp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_gilnp, /*lineNumber:*/Active_gilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 095 true, 096 /*active:*/SedOption.global, SedOption.insert, SedOption.print, SedOption.quiet 097 ), 098 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 099 Active_ginp_long( 100 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iginp, /*ignoreCase:*/Active_Iginp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_gilnp, /*lineNumber:*/Active_gilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 101 false, 102 /*active:*/SedOption.global, SedOption.insert, SedOption.print, SedOption.quiet 103 ), 104 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 105 Active_giln( 106 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igiln, /*ignoreCase:*/Active_Igiln_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_gilnp, /*print:*/Active_gilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 107 true, 108 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber, SedOption.quiet 109 ), 110 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 111 Active_giln_long( 112 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igiln, /*ignoreCase:*/Active_Igiln_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_gilnp, /*print:*/Active_gilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 113 false, 114 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber, SedOption.quiet 115 ), 116 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #quiet n}.*/ 117 Active_Igin( 118 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igiln, /*lineNumber:*/Active_Igiln_long, /*p:*/Active_Iginp, /*print:*/Active_Iginp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 119 true, 120 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.quiet 121 ), 122 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #quiet n}.*/ 123 Active_Igin_long( 124 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igiln, /*lineNumber:*/Active_Igiln_long, /*p:*/Active_Iginp, /*print:*/Active_Iginp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 125 false, 126 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.quiet 127 ), 128 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 129 Active_ilnp( 130 /*g:*/Active_gilnp, /*global:*/Active_gilnp_long, /*I:*/Active_Iilnp, /*ignoreCase:*/Active_Iilnp_long, /*i:*/null /*already set*/, /*insert:*/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*/, 131 true, 132 /*active:*/SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 133 ), 134 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 135 Active_ilnp_long( 136 /*g:*/Active_gilnp, /*global:*/Active_gilnp_long, /*I:*/Active_Iilnp, /*ignoreCase:*/Active_Iilnp_long, /*i:*/null /*already set*/, /*insert:*/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*/, 137 false, 138 /*active:*/SedOption.insert, SedOption.lineNumber, SedOption.print, SedOption.quiet 139 ), 140 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 141 Active_Iinp( 142 /*g:*/Active_Iginp, /*global:*/Active_Iginp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iilnp, /*lineNumber:*/Active_Iilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 143 true, 144 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.print, SedOption.quiet 145 ), 146 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 147 Active_Iinp_long( 148 /*g:*/Active_Iginp, /*global:*/Active_Iginp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iilnp, /*lineNumber:*/Active_Iilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 149 false, 150 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.print, SedOption.quiet 151 ), 152 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 153 Active_Iiln( 154 /*g:*/Active_Igiln, /*global:*/Active_Igiln_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iilnp, /*print:*/Active_Iilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 155 true, 156 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.quiet 157 ), 158 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 159 Active_Iiln_long( 160 /*g:*/Active_Igiln, /*global:*/Active_Igiln_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iilnp, /*print:*/Active_Iilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 161 false, 162 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.quiet 163 ), 164 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 165 Active_gilp( 166 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igilp, /*ignoreCase:*/Active_Igilp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_gilnp, /*quiet:*/Active_gilnp_long, 167 true, 168 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber, SedOption.print 169 ), 170 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 171 Active_gilp_long( 172 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igilp, /*ignoreCase:*/Active_Igilp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_gilnp, /*quiet:*/Active_gilnp_long, 173 false, 174 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber, SedOption.print 175 ), 176 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #print p}.*/ 177 Active_Igip( 178 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igilp, /*lineNumber:*/Active_Igilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iginp, /*quiet:*/Active_Iginp_long, 179 true, 180 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.print 181 ), 182 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #print p}.*/ 183 Active_Igip_long( 184 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igilp, /*lineNumber:*/Active_Igilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iginp, /*quiet:*/Active_Iginp_long, 185 false, 186 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.print 187 ), 188 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}.*/ 189 Active_Igil( 190 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Igilp, /*print:*/Active_Igilp_long, /*n:*/Active_Igiln, /*quiet:*/Active_Igiln_long, 191 true, 192 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber 193 ), 194 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}.*/ 195 Active_Igil_long( 196 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Igilp, /*print:*/Active_Igilp_long, /*n:*/Active_Igiln, /*quiet:*/Active_Igiln_long, 197 false, 198 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber 199 ), 200 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 201 Active_Iilp( 202 /*g:*/Active_Igilp, /*global:*/Active_Igilp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iilnp, /*quiet:*/Active_Iilnp_long, 203 true, 204 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print 205 ), 206 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 207 Active_Iilp_long( 208 /*g:*/Active_Igilp, /*global:*/Active_Igilp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iilnp, /*quiet:*/Active_Iilnp_long, 209 false, 210 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber, SedOption.print 211 ), 212 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #quiet n}.*/ 213 Active_gin( 214 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igin, /*ignoreCase:*/Active_Igin_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_giln, /*lineNumber:*/Active_giln_long, /*p:*/Active_ginp, /*print:*/Active_ginp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 215 true, 216 /*active:*/SedOption.global, SedOption.insert, SedOption.quiet 217 ), 218 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #quiet n}.*/ 219 Active_gin_long( 220 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igin, /*ignoreCase:*/Active_Igin_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_giln, /*lineNumber:*/Active_giln_long, /*p:*/Active_ginp, /*print:*/Active_ginp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 221 false, 222 /*active:*/SedOption.global, SedOption.insert, SedOption.quiet 223 ), 224 /** Option set with the following active options: {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 225 Active_inp( 226 /*g:*/Active_ginp, /*global:*/Active_ginp_long, /*I:*/Active_Iinp, /*ignoreCase:*/Active_Iinp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_ilnp, /*lineNumber:*/Active_ilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 227 true, 228 /*active:*/SedOption.insert, SedOption.print, SedOption.quiet 229 ), 230 /** Option set with the following active options: {@link #insert i}, {@link #print p}, {@link #quiet n}.*/ 231 Active_inp_long( 232 /*g:*/Active_ginp, /*global:*/Active_ginp_long, /*I:*/Active_Iinp, /*ignoreCase:*/Active_Iinp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_ilnp, /*lineNumber:*/Active_ilnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 233 false, 234 /*active:*/SedOption.insert, SedOption.print, SedOption.quiet 235 ), 236 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 237 Active_iln( 238 /*g:*/Active_giln, /*global:*/Active_giln_long, /*I:*/Active_Iiln, /*ignoreCase:*/Active_Iiln_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_ilnp, /*print:*/Active_ilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 239 true, 240 /*active:*/SedOption.insert, SedOption.lineNumber, SedOption.quiet 241 ), 242 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}, {@link #quiet n}.*/ 243 Active_iln_long( 244 /*g:*/Active_giln, /*global:*/Active_giln_long, /*I:*/Active_Iiln, /*ignoreCase:*/Active_Iiln_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_ilnp, /*print:*/Active_ilnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 245 false, 246 /*active:*/SedOption.insert, SedOption.lineNumber, SedOption.quiet 247 ), 248 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #quiet n}.*/ 249 Active_Iin( 250 /*g:*/Active_Igin, /*global:*/Active_Igin_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iiln, /*lineNumber:*/Active_Iiln_long, /*p:*/Active_Iinp, /*print:*/Active_Iinp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 251 true, 252 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.quiet 253 ), 254 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #quiet n}.*/ 255 Active_Iin_long( 256 /*g:*/Active_Igin, /*global:*/Active_Igin_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iiln, /*lineNumber:*/Active_Iiln_long, /*p:*/Active_Iinp, /*print:*/Active_Iinp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 257 false, 258 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.quiet 259 ), 260 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #print p}.*/ 261 Active_gip( 262 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igip, /*ignoreCase:*/Active_Igip_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_gilp, /*lineNumber:*/Active_gilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_ginp, /*quiet:*/Active_ginp_long, 263 true, 264 /*active:*/SedOption.global, SedOption.insert, SedOption.print 265 ), 266 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #print p}.*/ 267 Active_gip_long( 268 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igip, /*ignoreCase:*/Active_Igip_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_gilp, /*lineNumber:*/Active_gilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_ginp, /*quiet:*/Active_ginp_long, 269 false, 270 /*active:*/SedOption.global, SedOption.insert, SedOption.print 271 ), 272 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}.*/ 273 Active_gil( 274 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igil, /*ignoreCase:*/Active_Igil_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_gilp, /*print:*/Active_gilp_long, /*n:*/Active_giln, /*quiet:*/Active_giln_long, 275 true, 276 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber 277 ), 278 /** Option set with the following active options: {@link #global g}, {@link #insert i}, {@link #lineNumber l}.*/ 279 Active_gil_long( 280 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igil, /*ignoreCase:*/Active_Igil_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_gilp, /*print:*/Active_gilp_long, /*n:*/Active_giln, /*quiet:*/Active_giln_long, 281 false, 282 /*active:*/SedOption.global, SedOption.insert, SedOption.lineNumber 283 ), 284 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}.*/ 285 Active_Igi( 286 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igil, /*lineNumber:*/Active_Igil_long, /*p:*/Active_Igip, /*print:*/Active_Igip_long, /*n:*/Active_Igin, /*quiet:*/Active_Igin_long, 287 true, 288 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert 289 ), 290 /** Option set with the following active options: {@link #global g}, {@link #ignoreCase I}, {@link #insert i}.*/ 291 Active_Igi_long( 292 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Igil, /*lineNumber:*/Active_Igil_long, /*p:*/Active_Igip, /*print:*/Active_Igip_long, /*n:*/Active_Igin, /*quiet:*/Active_Igin_long, 293 false, 294 /*active:*/SedOption.global, SedOption.ignoreCase, SedOption.insert 295 ), 296 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 297 Active_ilp( 298 /*g:*/Active_gilp, /*global:*/Active_gilp_long, /*I:*/Active_Iilp, /*ignoreCase:*/Active_Iilp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_ilnp, /*quiet:*/Active_ilnp_long, 299 true, 300 /*active:*/SedOption.insert, SedOption.lineNumber, SedOption.print 301 ), 302 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}, {@link #print p}.*/ 303 Active_ilp_long( 304 /*g:*/Active_gilp, /*global:*/Active_gilp_long, /*I:*/Active_Iilp, /*ignoreCase:*/Active_Iilp_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_ilnp, /*quiet:*/Active_ilnp_long, 305 false, 306 /*active:*/SedOption.insert, SedOption.lineNumber, SedOption.print 307 ), 308 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #print p}.*/ 309 Active_Iip( 310 /*g:*/Active_Igip, /*global:*/Active_Igip_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iilp, /*lineNumber:*/Active_Iilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iinp, /*quiet:*/Active_Iinp_long, 311 true, 312 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.print 313 ), 314 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #print p}.*/ 315 Active_Iip_long( 316 /*g:*/Active_Igip, /*global:*/Active_Igip_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iilp, /*lineNumber:*/Active_Iilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iinp, /*quiet:*/Active_Iinp_long, 317 false, 318 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.print 319 ), 320 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}.*/ 321 Active_Iil( 322 /*g:*/Active_Igil, /*global:*/Active_Igil_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iilp, /*print:*/Active_Iilp_long, /*n:*/Active_Iiln, /*quiet:*/Active_Iiln_long, 323 true, 324 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber 325 ), 326 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}, {@link #lineNumber l}.*/ 327 Active_Iil_long( 328 /*g:*/Active_Igil, /*global:*/Active_Igil_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Iilp, /*print:*/Active_Iilp_long, /*n:*/Active_Iiln, /*quiet:*/Active_Iiln_long, 329 false, 330 /*active:*/SedOption.ignoreCase, SedOption.insert, SedOption.lineNumber 331 ), 332 /** Option set with the following active options: {@link #insert i}, {@link #quiet n}.*/ 333 Active_in( 334 /*g:*/Active_gin, /*global:*/Active_gin_long, /*I:*/Active_Iin, /*ignoreCase:*/Active_Iin_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_iln, /*lineNumber:*/Active_iln_long, /*p:*/Active_inp, /*print:*/Active_inp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 335 true, 336 /*active:*/SedOption.insert, SedOption.quiet 337 ), 338 /** Option set with the following active options: {@link #insert i}, {@link #quiet n}.*/ 339 Active_in_long( 340 /*g:*/Active_gin, /*global:*/Active_gin_long, /*I:*/Active_Iin, /*ignoreCase:*/Active_Iin_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_iln, /*lineNumber:*/Active_iln_long, /*p:*/Active_inp, /*print:*/Active_inp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 341 false, 342 /*active:*/SedOption.insert, SedOption.quiet 343 ), 344 /** Option set with the following active options: {@link #global g}, {@link #insert i}.*/ 345 Active_gi( 346 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igi, /*ignoreCase:*/Active_Igi_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_gil, /*lineNumber:*/Active_gil_long, /*p:*/Active_gip, /*print:*/Active_gip_long, /*n:*/Active_gin, /*quiet:*/Active_gin_long, 347 true, 348 /*active:*/SedOption.global, SedOption.insert 349 ), 350 /** Option set with the following active options: {@link #global g}, {@link #insert i}.*/ 351 Active_gi_long( 352 /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Igi, /*ignoreCase:*/Active_Igi_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_gil, /*lineNumber:*/Active_gil_long, /*p:*/Active_gip, /*print:*/Active_gip_long, /*n:*/Active_gin, /*quiet:*/Active_gin_long, 353 false, 354 /*active:*/SedOption.global, SedOption.insert 355 ), 356 /** Option set with the following active options: {@link #insert i}, {@link #print p}.*/ 357 Active_ip( 358 /*g:*/Active_gip, /*global:*/Active_gip_long, /*I:*/Active_Iip, /*ignoreCase:*/Active_Iip_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_ilp, /*lineNumber:*/Active_ilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_inp, /*quiet:*/Active_inp_long, 359 true, 360 /*active:*/SedOption.insert, SedOption.print 361 ), 362 /** Option set with the following active options: {@link #insert i}, {@link #print p}.*/ 363 Active_ip_long( 364 /*g:*/Active_gip, /*global:*/Active_gip_long, /*I:*/Active_Iip, /*ignoreCase:*/Active_Iip_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_ilp, /*lineNumber:*/Active_ilp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_inp, /*quiet:*/Active_inp_long, 365 false, 366 /*active:*/SedOption.insert, SedOption.print 367 ), 368 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}.*/ 369 Active_il( 370 /*g:*/Active_gil, /*global:*/Active_gil_long, /*I:*/Active_Iil, /*ignoreCase:*/Active_Iil_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_ilp, /*print:*/Active_ilp_long, /*n:*/Active_iln, /*quiet:*/Active_iln_long, 371 true, 372 /*active:*/SedOption.insert, SedOption.lineNumber 373 ), 374 /** Option set with the following active options: {@link #insert i}, {@link #lineNumber l}.*/ 375 Active_il_long( 376 /*g:*/Active_gil, /*global:*/Active_gil_long, /*I:*/Active_Iil, /*ignoreCase:*/Active_Iil_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_ilp, /*print:*/Active_ilp_long, /*n:*/Active_iln, /*quiet:*/Active_iln_long, 377 false, 378 /*active:*/SedOption.insert, SedOption.lineNumber 379 ), 380 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}.*/ 381 Active_Ii( 382 /*g:*/Active_Igi, /*global:*/Active_Igi_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iil, /*lineNumber:*/Active_Iil_long, /*p:*/Active_Iip, /*print:*/Active_Iip_long, /*n:*/Active_Iin, /*quiet:*/Active_Iin_long, 383 true, 384 /*active:*/SedOption.ignoreCase, SedOption.insert 385 ), 386 /** Option set with the following active options: {@link #ignoreCase I}, {@link #insert i}.*/ 387 Active_Ii_long( 388 /*g:*/Active_Igi, /*global:*/Active_Igi_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_Iil, /*lineNumber:*/Active_Iil_long, /*p:*/Active_Iip, /*print:*/Active_Iip_long, /*n:*/Active_Iin, /*quiet:*/Active_Iin_long, 389 false, 390 /*active:*/SedOption.ignoreCase, SedOption.insert 391 ), 392 /** Option set with the following active options: {@link #insert i}.*/ 393 Active_i( 394 /*g:*/Active_gi, /*global:*/Active_gi_long, /*I:*/Active_Ii, /*ignoreCase:*/Active_Ii_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_il, /*lineNumber:*/Active_il_long, /*p:*/Active_ip, /*print:*/Active_ip_long, /*n:*/Active_in, /*quiet:*/Active_in_long, 395 true, 396 /*active:*/SedOption.insert 397 ), 398 /** Option set with the following active options: {@link #insert i}.*/ 399 Active_i_long( 400 /*g:*/Active_gi, /*global:*/Active_gi_long, /*I:*/Active_Ii, /*ignoreCase:*/Active_Ii_long, /*i:*/null /*already set*/, /*insert:*/null /*already set*/, /*l:*/Active_il, /*lineNumber:*/Active_il_long, /*p:*/Active_ip, /*print:*/Active_ip_long, /*n:*/Active_in, /*quiet:*/Active_in_long, 401 false, 402 /*active:*/SedOption.insert 403 ); 404 private SedOptionSet_Igilnp( 405 SedOptionSet_Igilnp g, SedOptionSet_Igilnp global, SedOptionSet_Igilnp I, SedOptionSet_Igilnp ignoreCase, SedOptionSet_Igilnp i, SedOptionSet_Igilnp insert, SedOptionSet_Igilnp l, SedOptionSet_Igilnp lineNumber, SedOptionSet_Igilnp p, SedOptionSet_Igilnp print, SedOptionSet_Igilnp n, SedOptionSet_Igilnp quiet, 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.i = i == null ? this : i; 414 this.insert = insert == null ? this : insert; 415 this.l = l == null ? this : l; 416 this.lineNumber = lineNumber == null ? this : lineNumber; 417 this.p = p == null ? this : p; 418 this.print = print == null ? this : print; 419 this.n = n == null ? this : n; 420 this.quiet = quiet == null ? this : quiet; 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_Igilnp 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_Igilnp 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_Igilnp 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_Igilnp ignoreCase; 475 /** 476 * Option {@code "-i"}: Insert string2 as a separate line before the matched line. 477 * <p> 478 * The option {@code "-i"} is equivalent to the {@code "--}{@link #insert insert}{@code "} option. 479 * <p> 480 * Technically speaking, this field points to a set with the options of the 481 * current set plus the option {@code "-i"}. If the option {@code "-i"} 482 * is already set, the field {@code i} points to the enum constant itself 483 * as it already represents the current set of options. 484 */ 485 public final SedOptionSet_Igilnp i; 486 /** 487 * Option {@code "--insert"}: Insert string2 as a separate line before the matched line. 488 * <p> 489 * The option {@code "--insert"} is equivalent to the {@code "-}{@link #i i}{@code "} option. 490 * <p> 491 * Technically speaking, this field points to a set with the options of the 492 * current set plus the option {@code "--insert"}. If the option {@code "--insert"} 493 * is already set, the field {@code insert} points to the enum constant itself 494 * as it already represents the current set of options. 495 */ 496 public final SedOptionSet_Igilnp insert; 497 /** 498 * Option {@code "-l"}: Writes the current line number on a separate line to the standard 499 output. 500 * <p> 501 * The option {@code "-l"} is equivalent to the {@code "--}{@link #lineNumber lineNumber}{@code "} option. 502 * <p> 503 * Technically speaking, this field points to a set with the options of the 504 * current set plus the option {@code "-l"}. If the option {@code "-l"} 505 * is already set, the field {@code l} points to the enum constant itself 506 * as it already represents the current set of options. 507 */ 508 public final SedOptionSet_Igilnp l; 509 /** 510 * Option {@code "--lineNumber"}: Writes the current line number on a separate line to the standard 511 output. 512 * <p> 513 * The option {@code "--lineNumber"} is equivalent to the {@code "-}{@link #l l}{@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 "--lineNumber"}. If the option {@code "--lineNumber"} 517 * is already set, the field {@code lineNumber} points to the enum constant itself 518 * as it already represents the current set of options. 519 */ 520 public final SedOptionSet_Igilnp lineNumber; 521 /** 522 * Option {@code "-p"}: Write the matched line to standard output. 523 * <p> 524 * The option {@code "-p"} is equivalent to the {@code "--}{@link #print print}{@code "} option. 525 * <p> 526 * Technically speaking, this field points to a set with the options of the 527 * current set plus the option {@code "-p"}. If the option {@code "-p"} 528 * is already set, the field {@code p} points to the enum constant itself 529 * as it already represents the current set of options. 530 */ 531 public final SedOptionSet_Igilnp p; 532 /** 533 * Option {@code "--print"}: Write the matched line to standard output. 534 * <p> 535 * The option {@code "--print"} is equivalent to the {@code "-}{@link #p p}{@code "} option. 536 * <p> 537 * Technically speaking, this field points to a set with the options of the 538 * current set plus the option {@code "--print"}. If the option {@code "--print"} 539 * is already set, the field {@code print} points to the enum constant itself 540 * as it already represents the current set of options. 541 */ 542 public final SedOptionSet_Igilnp print; 543 /** 544 * Option {@code "-n"}: Suppress the default output (in which each line, after it is 545 examined for editing, is written to standard output). Only lines 546 explicitly selected for output are written. 547 * <p> 548 * The option {@code "-n"} is equivalent to the {@code "--}{@link #quiet quiet}{@code "} option. 549 * <p> 550 * Technically speaking, this field points to a set with the options of the 551 * current set plus the option {@code "-n"}. If the option {@code "-n"} 552 * is already set, the field {@code n} points to the enum constant itself 553 * as it already represents the current set of options. 554 */ 555 public final SedOptionSet_Igilnp n; 556 /** 557 * Option {@code "--quiet"}: Suppress the default output (in which each line, after it is 558 examined for editing, is written to standard output). Only lines 559 explicitly selected for output are written. 560 * <p> 561 * The option {@code "--quiet"} is equivalent to the {@code "-}{@link #n n}{@code "} option. 562 * <p> 563 * Technically speaking, this field points to a set with the options of the 564 * current set plus the option {@code "--quiet"}. If the option {@code "--quiet"} 565 * is already set, the field {@code quiet} points to the enum constant itself 566 * as it already represents the current set of options. 567 */ 568 public final SedOptionSet_Igilnp quiet; 569 private final EnumSet<SedOption> options; 570 571 //inherit javadoc 572 @Override 573 public Class<SedOption> optionType() { 574 return SedOption.class; 575 } 576 //inherit javadoc 577 @Override 578 public boolean isSet(SedOption option) { 579 return options.contains(option); 580 } 581 //inherit javadoc 582 @Override 583 public int size() { 584 return options.size(); 585 } 586 /** 587 * Returns the set with the active options. The returned set a new defensive 588 * copy instance created when this method is called, modifications of this 589 * set will therefore not alter {@code this} option set. 590 * 591 * @return a copy of the set with the active options. 592 */ 593 @Override 594 public EnumSet<SedOption> asSet() { 595 return EnumSet.copyOf(options); 596 } 597 /** 598 * Returns an immutable iterator with the active options of this option set. 599 * 600 * @return an immutable iterator for over the active options 601 */ 602 @Override 603 public Iterator<SedOption> iterator() { 604 return Collections.unmodifiableSet(options).iterator(); 605 } 606 /** 607 * Returns true if the {@link Option#acronym() acronym} should be used in 608 * for the specified {@code option} string representations. 609 * <p> 610 * In particular and independent from the {@code option} argument, this 611 * option set returns true if the last option added to this set was an 612 * acronym, and false if it was a long option name. 613 * <p> 614 * For instance, the set defined as 615 * <pre> 616 * SedOptionSet_Igilnp.global.I; 617 * </pre> 618 * uses acronyms, that is, this method always returns true for the above 619 * set. 620 * <p> 621 * On the other hand, long option names are used and this method always 622 * returns false for the set 623 * <pre> 624 * SedOptionSet_Igilnp.g.ignoreCase; 625 * </pre> 626 * <p> 627 * Note that a repeated option is <i>not</i> treated as the last set option. 628 * For instance, the first and last option of the following set are 629 * equivalent and acronyms are used: 630 * <pre> 631 * SedOptionSet_Igilnp.g.I.global; 632 * </pre> 633 * <p> 634 * This method always returns true for the empty set with no active options. 635 * 636 * @param option 637 * the option of interest, has no impact on the result returned 638 * by this method 639 * @return true if option acronyms should be used for string representations 640 * of any option of this option set 641 */ 642 @Override 643 public boolean useAcronymFor(SedOption option) { 644 return useAcronym; 645 } 646}