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 #a a}, {@link #g g}, {@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_Iaglnp implements SedOptions { 020 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 021 Active_Iaglnp( 022 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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*/, 023 true, 024 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 025 ), 026 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 027 Active_Iaglnp_long( 028 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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*/, 029 false, 030 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 031 ), 032 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 033 Active_aglnp( 034 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iaglnp, /*ignoreCase:*/Active_Iaglnp_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*/, 035 true, 036 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.quiet 037 ), 038 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 039 Active_aglnp_long( 040 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iaglnp, /*ignoreCase:*/Active_Iaglnp_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*/, 041 false, 042 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.quiet 043 ), 044 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 045 Active_Iagnp( 046 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iaglnp, /*lineNumber:*/Active_Iaglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 047 true, 048 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.quiet 049 ), 050 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 051 Active_Iagnp_long( 052 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iaglnp, /*lineNumber:*/Active_Iaglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 053 false, 054 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.quiet 055 ), 056 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 057 Active_Iagln( 058 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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_Iaglnp, /*print:*/Active_Iaglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 059 true, 060 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 061 ), 062 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 063 Active_Iagln_long( 064 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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_Iaglnp, /*print:*/Active_Iaglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 065 false, 066 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 067 ), 068 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 069 Active_Ialnp( 070 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iaglnp, /*global:*/Active_Iaglnp_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*/, 071 true, 072 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 073 ), 074 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 075 Active_Ialnp_long( 076 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iaglnp, /*global:*/Active_Iaglnp_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*/, 077 false, 078 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 079 ), 080 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 081 Active_Iaglp( 082 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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_Iaglnp, /*quiet:*/Active_Iaglnp_long, 083 true, 084 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 085 ), 086 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 087 Active_Iaglp_long( 088 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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_Iaglnp, /*quiet:*/Active_Iaglnp_long, 089 false, 090 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 091 ), 092 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #print p}, {@link #quiet n}.*/ 093 Active_agnp( 094 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagnp, /*ignoreCase:*/Active_Iagnp_long, /*l:*/Active_aglnp, /*lineNumber:*/Active_aglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 095 true, 096 /*active:*/SedOption.append, SedOption.global, SedOption.print, SedOption.quiet 097 ), 098 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #print p}, {@link #quiet n}.*/ 099 Active_agnp_long( 100 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagnp, /*ignoreCase:*/Active_Iagnp_long, /*l:*/Active_aglnp, /*lineNumber:*/Active_aglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 101 false, 102 /*active:*/SedOption.append, SedOption.global, SedOption.print, SedOption.quiet 103 ), 104 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}, {@link #quiet n}.*/ 105 Active_agln( 106 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagln, /*ignoreCase:*/Active_Iagln_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_aglnp, /*print:*/Active_aglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 107 true, 108 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber, SedOption.quiet 109 ), 110 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}, {@link #quiet n}.*/ 111 Active_agln_long( 112 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagln, /*ignoreCase:*/Active_Iagln_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_aglnp, /*print:*/Active_aglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 113 false, 114 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber, SedOption.quiet 115 ), 116 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #quiet n}.*/ 117 Active_Iagn( 118 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iagln, /*lineNumber:*/Active_Iagln_long, /*p:*/Active_Iagnp, /*print:*/Active_Iagnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 119 true, 120 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.quiet 121 ), 122 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #quiet n}.*/ 123 Active_Iagn_long( 124 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iagln, /*lineNumber:*/Active_Iagln_long, /*p:*/Active_Iagnp, /*print:*/Active_Iagnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 125 false, 126 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.quiet 127 ), 128 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 129 Active_alnp( 130 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_aglnp, /*global:*/Active_aglnp_long, /*I:*/Active_Ialnp, /*ignoreCase:*/Active_Ialnp_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*/, 131 true, 132 /*active:*/SedOption.append, SedOption.lineNumber, SedOption.print, SedOption.quiet 133 ), 134 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 135 Active_alnp_long( 136 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_aglnp, /*global:*/Active_aglnp_long, /*I:*/Active_Ialnp, /*ignoreCase:*/Active_Ialnp_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*/, 137 false, 138 /*active:*/SedOption.append, SedOption.lineNumber, SedOption.print, SedOption.quiet 139 ), 140 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 141 Active_Ianp( 142 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagnp, /*global:*/Active_Iagnp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ialnp, /*lineNumber:*/Active_Ialnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 143 true, 144 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.print, SedOption.quiet 145 ), 146 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 147 Active_Ianp_long( 148 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagnp, /*global:*/Active_Iagnp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ialnp, /*lineNumber:*/Active_Ialnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 149 false, 150 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.print, SedOption.quiet 151 ), 152 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 153 Active_Ialn( 154 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagln, /*global:*/Active_Iagln_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ialnp, /*print:*/Active_Ialnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 155 true, 156 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 157 ), 158 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 159 Active_Ialn_long( 160 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagln, /*global:*/Active_Iagln_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ialnp, /*print:*/Active_Ialnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 161 false, 162 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 163 ), 164 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}, {@link #print p}.*/ 165 Active_aglp( 166 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iaglp, /*ignoreCase:*/Active_Iaglp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_aglnp, /*quiet:*/Active_aglnp_long, 167 true, 168 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber, SedOption.print 169 ), 170 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}, {@link #print p}.*/ 171 Active_aglp_long( 172 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iaglp, /*ignoreCase:*/Active_Iaglp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_aglnp, /*quiet:*/Active_aglnp_long, 173 false, 174 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber, SedOption.print 175 ), 176 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}.*/ 177 Active_Iagp( 178 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iaglp, /*lineNumber:*/Active_Iaglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iagnp, /*quiet:*/Active_Iagnp_long, 179 true, 180 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.print 181 ), 182 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}.*/ 183 Active_Iagp_long( 184 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iaglp, /*lineNumber:*/Active_Iaglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Iagnp, /*quiet:*/Active_Iagnp_long, 185 false, 186 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.print 187 ), 188 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 189 Active_Iagl( 190 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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_Iaglp, /*print:*/Active_Iaglp_long, /*n:*/Active_Iagln, /*quiet:*/Active_Iagln_long, 191 true, 192 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber 193 ), 194 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 195 Active_Iagl_long( 196 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*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_Iaglp, /*print:*/Active_Iaglp_long, /*n:*/Active_Iagln, /*quiet:*/Active_Iagln_long, 197 false, 198 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber 199 ), 200 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 201 Active_Ialp( 202 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iaglp, /*global:*/Active_Iaglp_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_Ialnp, /*quiet:*/Active_Ialnp_long, 203 true, 204 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 205 ), 206 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 207 Active_Ialp_long( 208 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iaglp, /*global:*/Active_Iaglp_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_Ialnp, /*quiet:*/Active_Ialnp_long, 209 false, 210 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 211 ), 212 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #quiet n}.*/ 213 Active_agn( 214 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagn, /*ignoreCase:*/Active_Iagn_long, /*l:*/Active_agln, /*lineNumber:*/Active_agln_long, /*p:*/Active_agnp, /*print:*/Active_agnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 215 true, 216 /*active:*/SedOption.append, SedOption.global, SedOption.quiet 217 ), 218 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #quiet n}.*/ 219 Active_agn_long( 220 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagn, /*ignoreCase:*/Active_Iagn_long, /*l:*/Active_agln, /*lineNumber:*/Active_agln_long, /*p:*/Active_agnp, /*print:*/Active_agnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 221 false, 222 /*active:*/SedOption.append, SedOption.global, SedOption.quiet 223 ), 224 /** Option set with the following active options: {@link #append a}, {@link #print p}, {@link #quiet n}.*/ 225 Active_anp( 226 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agnp, /*global:*/Active_agnp_long, /*I:*/Active_Ianp, /*ignoreCase:*/Active_Ianp_long, /*l:*/Active_alnp, /*lineNumber:*/Active_alnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 227 true, 228 /*active:*/SedOption.append, SedOption.print, SedOption.quiet 229 ), 230 /** Option set with the following active options: {@link #append a}, {@link #print p}, {@link #quiet n}.*/ 231 Active_anp_long( 232 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agnp, /*global:*/Active_agnp_long, /*I:*/Active_Ianp, /*ignoreCase:*/Active_Ianp_long, /*l:*/Active_alnp, /*lineNumber:*/Active_alnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 233 false, 234 /*active:*/SedOption.append, SedOption.print, SedOption.quiet 235 ), 236 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}, {@link #quiet n}.*/ 237 Active_aln( 238 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agln, /*global:*/Active_agln_long, /*I:*/Active_Ialn, /*ignoreCase:*/Active_Ialn_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_alnp, /*print:*/Active_alnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 239 true, 240 /*active:*/SedOption.append, SedOption.lineNumber, SedOption.quiet 241 ), 242 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}, {@link #quiet n}.*/ 243 Active_aln_long( 244 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agln, /*global:*/Active_agln_long, /*I:*/Active_Ialn, /*ignoreCase:*/Active_Ialn_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_alnp, /*print:*/Active_alnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 245 false, 246 /*active:*/SedOption.append, SedOption.lineNumber, SedOption.quiet 247 ), 248 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #quiet n}.*/ 249 Active_Ian( 250 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagn, /*global:*/Active_Iagn_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ialn, /*lineNumber:*/Active_Ialn_long, /*p:*/Active_Ianp, /*print:*/Active_Ianp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 251 true, 252 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.quiet 253 ), 254 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #quiet n}.*/ 255 Active_Ian_long( 256 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagn, /*global:*/Active_Iagn_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ialn, /*lineNumber:*/Active_Ialn_long, /*p:*/Active_Ianp, /*print:*/Active_Ianp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 257 false, 258 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.quiet 259 ), 260 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #print p}.*/ 261 Active_agp( 262 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagp, /*ignoreCase:*/Active_Iagp_long, /*l:*/Active_aglp, /*lineNumber:*/Active_aglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_agnp, /*quiet:*/Active_agnp_long, 263 true, 264 /*active:*/SedOption.append, SedOption.global, SedOption.print 265 ), 266 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #print p}.*/ 267 Active_agp_long( 268 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagp, /*ignoreCase:*/Active_Iagp_long, /*l:*/Active_aglp, /*lineNumber:*/Active_aglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_agnp, /*quiet:*/Active_agnp_long, 269 false, 270 /*active:*/SedOption.append, SedOption.global, SedOption.print 271 ), 272 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}.*/ 273 Active_agl( 274 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagl, /*ignoreCase:*/Active_Iagl_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_aglp, /*print:*/Active_aglp_long, /*n:*/Active_agln, /*quiet:*/Active_agln_long, 275 true, 276 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber 277 ), 278 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #lineNumber l}.*/ 279 Active_agl_long( 280 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iagl, /*ignoreCase:*/Active_Iagl_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_aglp, /*print:*/Active_aglp_long, /*n:*/Active_agln, /*quiet:*/Active_agln_long, 281 false, 282 /*active:*/SedOption.append, SedOption.global, SedOption.lineNumber 283 ), 284 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}.*/ 285 Active_Iag( 286 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iagl, /*lineNumber:*/Active_Iagl_long, /*p:*/Active_Iagp, /*print:*/Active_Iagp_long, /*n:*/Active_Iagn, /*quiet:*/Active_Iagn_long, 287 true, 288 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase 289 ), 290 /** Option set with the following active options: {@link #append a}, {@link #global g}, {@link #ignoreCase I}.*/ 291 Active_Iag_long( 292 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Iagl, /*lineNumber:*/Active_Iagl_long, /*p:*/Active_Iagp, /*print:*/Active_Iagp_long, /*n:*/Active_Iagn, /*quiet:*/Active_Iagn_long, 293 false, 294 /*active:*/SedOption.append, SedOption.global, SedOption.ignoreCase 295 ), 296 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}, {@link #print p}.*/ 297 Active_alp( 298 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_aglp, /*global:*/Active_aglp_long, /*I:*/Active_Ialp, /*ignoreCase:*/Active_Ialp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_alnp, /*quiet:*/Active_alnp_long, 299 true, 300 /*active:*/SedOption.append, SedOption.lineNumber, SedOption.print 301 ), 302 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}, {@link #print p}.*/ 303 Active_alp_long( 304 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_aglp, /*global:*/Active_aglp_long, /*I:*/Active_Ialp, /*ignoreCase:*/Active_Ialp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_alnp, /*quiet:*/Active_alnp_long, 305 false, 306 /*active:*/SedOption.append, SedOption.lineNumber, SedOption.print 307 ), 308 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #print p}.*/ 309 Active_Iap( 310 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagp, /*global:*/Active_Iagp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ialp, /*lineNumber:*/Active_Ialp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Ianp, /*quiet:*/Active_Ianp_long, 311 true, 312 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.print 313 ), 314 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #print p}.*/ 315 Active_Iap_long( 316 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagp, /*global:*/Active_Iagp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ialp, /*lineNumber:*/Active_Ialp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Ianp, /*quiet:*/Active_Ianp_long, 317 false, 318 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.print 319 ), 320 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 321 Active_Ial( 322 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagl, /*global:*/Active_Iagl_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ialp, /*print:*/Active_Ialp_long, /*n:*/Active_Ialn, /*quiet:*/Active_Ialn_long, 323 true, 324 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber 325 ), 326 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 327 Active_Ial_long( 328 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iagl, /*global:*/Active_Iagl_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Ialp, /*print:*/Active_Ialp_long, /*n:*/Active_Ialn, /*quiet:*/Active_Ialn_long, 329 false, 330 /*active:*/SedOption.append, SedOption.ignoreCase, SedOption.lineNumber 331 ), 332 /** Option set with the following active options: {@link #append a}, {@link #quiet n}.*/ 333 Active_an( 334 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agn, /*global:*/Active_agn_long, /*I:*/Active_Ian, /*ignoreCase:*/Active_Ian_long, /*l:*/Active_aln, /*lineNumber:*/Active_aln_long, /*p:*/Active_anp, /*print:*/Active_anp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 335 true, 336 /*active:*/SedOption.append, SedOption.quiet 337 ), 338 /** Option set with the following active options: {@link #append a}, {@link #quiet n}.*/ 339 Active_an_long( 340 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agn, /*global:*/Active_agn_long, /*I:*/Active_Ian, /*ignoreCase:*/Active_Ian_long, /*l:*/Active_aln, /*lineNumber:*/Active_aln_long, /*p:*/Active_anp, /*print:*/Active_anp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 341 false, 342 /*active:*/SedOption.append, SedOption.quiet 343 ), 344 /** Option set with the following active options: {@link #append a}, {@link #global g}.*/ 345 Active_ag( 346 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iag, /*ignoreCase:*/Active_Iag_long, /*l:*/Active_agl, /*lineNumber:*/Active_agl_long, /*p:*/Active_agp, /*print:*/Active_agp_long, /*n:*/Active_agn, /*quiet:*/Active_agn_long, 347 true, 348 /*active:*/SedOption.append, SedOption.global 349 ), 350 /** Option set with the following active options: {@link #append a}, {@link #global g}.*/ 351 Active_ag_long( 352 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Iag, /*ignoreCase:*/Active_Iag_long, /*l:*/Active_agl, /*lineNumber:*/Active_agl_long, /*p:*/Active_agp, /*print:*/Active_agp_long, /*n:*/Active_agn, /*quiet:*/Active_agn_long, 353 false, 354 /*active:*/SedOption.append, SedOption.global 355 ), 356 /** Option set with the following active options: {@link #append a}, {@link #print p}.*/ 357 Active_ap( 358 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agp, /*global:*/Active_agp_long, /*I:*/Active_Iap, /*ignoreCase:*/Active_Iap_long, /*l:*/Active_alp, /*lineNumber:*/Active_alp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_anp, /*quiet:*/Active_anp_long, 359 true, 360 /*active:*/SedOption.append, SedOption.print 361 ), 362 /** Option set with the following active options: {@link #append a}, {@link #print p}.*/ 363 Active_ap_long( 364 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agp, /*global:*/Active_agp_long, /*I:*/Active_Iap, /*ignoreCase:*/Active_Iap_long, /*l:*/Active_alp, /*lineNumber:*/Active_alp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_anp, /*quiet:*/Active_anp_long, 365 false, 366 /*active:*/SedOption.append, SedOption.print 367 ), 368 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}.*/ 369 Active_al( 370 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agl, /*global:*/Active_agl_long, /*I:*/Active_Ial, /*ignoreCase:*/Active_Ial_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_alp, /*print:*/Active_alp_long, /*n:*/Active_aln, /*quiet:*/Active_aln_long, 371 true, 372 /*active:*/SedOption.append, SedOption.lineNumber 373 ), 374 /** Option set with the following active options: {@link #append a}, {@link #lineNumber l}.*/ 375 Active_al_long( 376 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_agl, /*global:*/Active_agl_long, /*I:*/Active_Ial, /*ignoreCase:*/Active_Ial_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_alp, /*print:*/Active_alp_long, /*n:*/Active_aln, /*quiet:*/Active_aln_long, 377 false, 378 /*active:*/SedOption.append, SedOption.lineNumber 379 ), 380 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}.*/ 381 Active_Ia( 382 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iag, /*global:*/Active_Iag_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ial, /*lineNumber:*/Active_Ial_long, /*p:*/Active_Iap, /*print:*/Active_Iap_long, /*n:*/Active_Ian, /*quiet:*/Active_Ian_long, 383 true, 384 /*active:*/SedOption.append, SedOption.ignoreCase 385 ), 386 /** Option set with the following active options: {@link #append a}, {@link #ignoreCase I}.*/ 387 Active_Ia_long( 388 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_Iag, /*global:*/Active_Iag_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Ial, /*lineNumber:*/Active_Ial_long, /*p:*/Active_Iap, /*print:*/Active_Iap_long, /*n:*/Active_Ian, /*quiet:*/Active_Ian_long, 389 false, 390 /*active:*/SedOption.append, SedOption.ignoreCase 391 ), 392 /** Option set with the following active options: {@link #append a}.*/ 393 Active_a( 394 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_ag, /*global:*/Active_ag_long, /*I:*/Active_Ia, /*ignoreCase:*/Active_Ia_long, /*l:*/Active_al, /*lineNumber:*/Active_al_long, /*p:*/Active_ap, /*print:*/Active_ap_long, /*n:*/Active_an, /*quiet:*/Active_an_long, 395 true, 396 /*active:*/SedOption.append 397 ), 398 /** Option set with the following active options: {@link #append a}.*/ 399 Active_a_long( 400 /*a:*/null /*already set*/, /*append:*/null /*already set*/, /*g:*/Active_ag, /*global:*/Active_ag_long, /*I:*/Active_Ia, /*ignoreCase:*/Active_Ia_long, /*l:*/Active_al, /*lineNumber:*/Active_al_long, /*p:*/Active_ap, /*print:*/Active_ap_long, /*n:*/Active_an, /*quiet:*/Active_an_long, 401 false, 402 /*active:*/SedOption.append 403 ); 404 private SedOptionSet_Iaglnp( 405 SedOptionSet_Iaglnp a, SedOptionSet_Iaglnp append, SedOptionSet_Iaglnp g, SedOptionSet_Iaglnp global, SedOptionSet_Iaglnp I, SedOptionSet_Iaglnp ignoreCase, SedOptionSet_Iaglnp l, SedOptionSet_Iaglnp lineNumber, SedOptionSet_Iaglnp p, SedOptionSet_Iaglnp print, SedOptionSet_Iaglnp n, SedOptionSet_Iaglnp quiet, 406 boolean useAcronym, 407 SedOption... activeOptions 408 ) { 409 this.a = a == null ? this : a; 410 this.append = append == null ? this : append; 411 this.g = g == null ? this : g; 412 this.global = global == null ? this : global; 413 this.I = I == null ? this : I; 414 this.ignoreCase = ignoreCase == null ? this : ignoreCase; 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 "-a"}: Append string2 as a separate line after the matched line. 427 * <p> 428 * The option {@code "-a"} is equivalent to the {@code "--}{@link #append append}{@code "} option. 429 * <p> 430 * Technically speaking, this field points to a set with the options of the 431 * current set plus the option {@code "-a"}. If the option {@code "-a"} 432 * is already set, the field {@code a} points to the enum constant itself 433 * as it already represents the current set of options. 434 */ 435 public final SedOptionSet_Iaglnp a; 436 /** 437 * Option {@code "--append"}: Append string2 as a separate line after the matched line. 438 * <p> 439 * The option {@code "--append"} is equivalent to the {@code "-}{@link #a a}{@code "} option. 440 * <p> 441 * Technically speaking, this field points to a set with the options of the 442 * current set plus the option {@code "--append"}. If the option {@code "--append"} 443 * is already set, the field {@code append} points to the enum constant itself 444 * as it already represents the current set of options. 445 */ 446 public final SedOptionSet_Iaglnp append; 447 /** 448 * Option {@code "-g"}: Globally substitute for all non-overlapping instances of the regexp 449 rather than just the first one. 450 <p> 451 (This option is ignored if the occurrence operand is specified). 452 * <p> 453 * The option {@code "-g"} is equivalent to the {@code "--}{@link #global global}{@code "} option. 454 * <p> 455 * Technically speaking, this field points to a set with the options of the 456 * current set plus the option {@code "-g"}. If the option {@code "-g"} 457 * is already set, the field {@code g} points to the enum constant itself 458 * as it already represents the current set of options. 459 */ 460 public final SedOptionSet_Iaglnp g; 461 /** 462 * Option {@code "--global"}: Globally substitute for all non-overlapping instances of the regexp 463 rather than just the first one. 464 <p> 465 (This option is ignored if the occurrence operand is specified). 466 * <p> 467 * The option {@code "--global"} is equivalent to the {@code "-}{@link #g g}{@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 "--global"}. If the option {@code "--global"} 471 * is already set, the field {@code global} points to the enum constant itself 472 * as it already represents the current set of options. 473 */ 474 public final SedOptionSet_Iaglnp global; 475 /** 476 * Option {@code "-I"}: Use case insensitive pattern matching. 477 * <p> 478 * The option {@code "-I"} is equivalent to the {@code "--}{@link #ignoreCase ignoreCase}{@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_Iaglnp I; 486 /** 487 * Option {@code "--ignoreCase"}: Use case insensitive pattern matching. 488 * <p> 489 * The option {@code "--ignoreCase"} 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 "--ignoreCase"}. If the option {@code "--ignoreCase"} 493 * is already set, the field {@code ignoreCase} points to the enum constant itself 494 * as it already represents the current set of options. 495 */ 496 public final SedOptionSet_Iaglnp ignoreCase; 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_Iaglnp 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_Iaglnp 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_Iaglnp 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_Iaglnp 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_Iaglnp 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_Iaglnp 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_Iaglnp.append.g; 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_Iaglnp.a.global; 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_Iaglnp.a.g.append; 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}