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 #d d}, {@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_Idglnp implements SedOptions { 020 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 021 Active_Idglnp( 022 /*d:*/null /*already set*/, /*delete:*/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.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 025 ), 026 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 027 Active_Idglnp_long( 028 /*d:*/null /*already set*/, /*delete:*/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.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 031 ), 032 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 033 Active_dglnp( 034 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idglnp, /*ignoreCase:*/Active_Idglnp_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.delete, SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.quiet 037 ), 038 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 039 Active_dglnp_long( 040 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idglnp, /*ignoreCase:*/Active_Idglnp_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.delete, SedOption.global, SedOption.lineNumber, SedOption.print, SedOption.quiet 043 ), 044 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 045 Active_Idgnp( 046 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idglnp, /*lineNumber:*/Active_Idglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 047 true, 048 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.quiet 049 ), 050 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 051 Active_Idgnp_long( 052 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idglnp, /*lineNumber:*/Active_Idglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 053 false, 054 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.print, SedOption.quiet 055 ), 056 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 057 Active_Idgln( 058 /*d:*/null /*already set*/, /*delete:*/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_Idglnp, /*print:*/Active_Idglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 059 true, 060 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 061 ), 062 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 063 Active_Idgln_long( 064 /*d:*/null /*already set*/, /*delete:*/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_Idglnp, /*print:*/Active_Idglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 065 false, 066 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 067 ), 068 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 069 Active_Idlnp( 070 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idglnp, /*global:*/Active_Idglnp_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.delete, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 073 ), 074 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 075 Active_Idlnp_long( 076 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idglnp, /*global:*/Active_Idglnp_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.delete, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print, SedOption.quiet 079 ), 080 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 081 Active_Idglp( 082 /*d:*/null /*already set*/, /*delete:*/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_Idglnp, /*quiet:*/Active_Idglnp_long, 083 true, 084 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 085 ), 086 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 087 Active_Idglp_long( 088 /*d:*/null /*already set*/, /*delete:*/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_Idglnp, /*quiet:*/Active_Idglnp_long, 089 false, 090 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 091 ), 092 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #print p}, {@link #quiet n}.*/ 093 Active_dgnp( 094 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgnp, /*ignoreCase:*/Active_Idgnp_long, /*l:*/Active_dglnp, /*lineNumber:*/Active_dglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 095 true, 096 /*active:*/SedOption.delete, SedOption.global, SedOption.print, SedOption.quiet 097 ), 098 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #print p}, {@link #quiet n}.*/ 099 Active_dgnp_long( 100 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgnp, /*ignoreCase:*/Active_Idgnp_long, /*l:*/Active_dglnp, /*lineNumber:*/Active_dglnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 101 false, 102 /*active:*/SedOption.delete, SedOption.global, SedOption.print, SedOption.quiet 103 ), 104 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}, {@link #quiet n}.*/ 105 Active_dgln( 106 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgln, /*ignoreCase:*/Active_Idgln_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dglnp, /*print:*/Active_dglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 107 true, 108 /*active:*/SedOption.delete, SedOption.global, SedOption.lineNumber, SedOption.quiet 109 ), 110 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}, {@link #quiet n}.*/ 111 Active_dgln_long( 112 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgln, /*ignoreCase:*/Active_Idgln_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dglnp, /*print:*/Active_dglnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 113 false, 114 /*active:*/SedOption.delete, SedOption.global, SedOption.lineNumber, SedOption.quiet 115 ), 116 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #quiet n}.*/ 117 Active_Idgn( 118 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idgln, /*lineNumber:*/Active_Idgln_long, /*p:*/Active_Idgnp, /*print:*/Active_Idgnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 119 true, 120 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.quiet 121 ), 122 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #quiet n}.*/ 123 Active_Idgn_long( 124 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idgln, /*lineNumber:*/Active_Idgln_long, /*p:*/Active_Idgnp, /*print:*/Active_Idgnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 125 false, 126 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.quiet 127 ), 128 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 129 Active_dlnp( 130 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dglnp, /*global:*/Active_dglnp_long, /*I:*/Active_Idlnp, /*ignoreCase:*/Active_Idlnp_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.delete, SedOption.lineNumber, SedOption.print, SedOption.quiet 133 ), 134 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}, {@link #print p}, {@link #quiet n}.*/ 135 Active_dlnp_long( 136 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dglnp, /*global:*/Active_dglnp_long, /*I:*/Active_Idlnp, /*ignoreCase:*/Active_Idlnp_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.delete, SedOption.lineNumber, SedOption.print, SedOption.quiet 139 ), 140 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 141 Active_Idnp( 142 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgnp, /*global:*/Active_Idgnp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idlnp, /*lineNumber:*/Active_Idlnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 143 true, 144 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.print, SedOption.quiet 145 ), 146 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #print p}, {@link #quiet n}.*/ 147 Active_Idnp_long( 148 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgnp, /*global:*/Active_Idgnp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idlnp, /*lineNumber:*/Active_Idlnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 149 false, 150 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.print, SedOption.quiet 151 ), 152 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 153 Active_Idln( 154 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgln, /*global:*/Active_Idgln_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Idlnp, /*print:*/Active_Idlnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 155 true, 156 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 157 ), 158 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #quiet n}.*/ 159 Active_Idln_long( 160 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgln, /*global:*/Active_Idgln_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Idlnp, /*print:*/Active_Idlnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 161 false, 162 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.lineNumber, SedOption.quiet 163 ), 164 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}, {@link #print p}.*/ 165 Active_dglp( 166 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idglp, /*ignoreCase:*/Active_Idglp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dglnp, /*quiet:*/Active_dglnp_long, 167 true, 168 /*active:*/SedOption.delete, SedOption.global, SedOption.lineNumber, SedOption.print 169 ), 170 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}, {@link #print p}.*/ 171 Active_dglp_long( 172 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idglp, /*ignoreCase:*/Active_Idglp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dglnp, /*quiet:*/Active_dglnp_long, 173 false, 174 /*active:*/SedOption.delete, SedOption.global, SedOption.lineNumber, SedOption.print 175 ), 176 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}.*/ 177 Active_Idgp( 178 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idglp, /*lineNumber:*/Active_Idglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Idgnp, /*quiet:*/Active_Idgnp_long, 179 true, 180 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.print 181 ), 182 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #print p}.*/ 183 Active_Idgp_long( 184 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idglp, /*lineNumber:*/Active_Idglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Idgnp, /*quiet:*/Active_Idgnp_long, 185 false, 186 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.print 187 ), 188 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 189 Active_Idgl( 190 /*d:*/null /*already set*/, /*delete:*/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_Idglp, /*print:*/Active_Idglp_long, /*n:*/Active_Idgln, /*quiet:*/Active_Idgln_long, 191 true, 192 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber 193 ), 194 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 195 Active_Idgl_long( 196 /*d:*/null /*already set*/, /*delete:*/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_Idglp, /*print:*/Active_Idglp_long, /*n:*/Active_Idgln, /*quiet:*/Active_Idgln_long, 197 false, 198 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase, SedOption.lineNumber 199 ), 200 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 201 Active_Idlp( 202 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idglp, /*global:*/Active_Idglp_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_Idlnp, /*quiet:*/Active_Idlnp_long, 203 true, 204 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 205 ), 206 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}, {@link #print p}.*/ 207 Active_Idlp_long( 208 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idglp, /*global:*/Active_Idglp_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_Idlnp, /*quiet:*/Active_Idlnp_long, 209 false, 210 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.lineNumber, SedOption.print 211 ), 212 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #quiet n}.*/ 213 Active_dgn( 214 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgn, /*ignoreCase:*/Active_Idgn_long, /*l:*/Active_dgln, /*lineNumber:*/Active_dgln_long, /*p:*/Active_dgnp, /*print:*/Active_dgnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 215 true, 216 /*active:*/SedOption.delete, SedOption.global, SedOption.quiet 217 ), 218 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #quiet n}.*/ 219 Active_dgn_long( 220 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgn, /*ignoreCase:*/Active_Idgn_long, /*l:*/Active_dgln, /*lineNumber:*/Active_dgln_long, /*p:*/Active_dgnp, /*print:*/Active_dgnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 221 false, 222 /*active:*/SedOption.delete, SedOption.global, SedOption.quiet 223 ), 224 /** Option set with the following active options: {@link #delete d}, {@link #print p}, {@link #quiet n}.*/ 225 Active_dnp( 226 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgnp, /*global:*/Active_dgnp_long, /*I:*/Active_Idnp, /*ignoreCase:*/Active_Idnp_long, /*l:*/Active_dlnp, /*lineNumber:*/Active_dlnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 227 true, 228 /*active:*/SedOption.delete, SedOption.print, SedOption.quiet 229 ), 230 /** Option set with the following active options: {@link #delete d}, {@link #print p}, {@link #quiet n}.*/ 231 Active_dnp_long( 232 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgnp, /*global:*/Active_dgnp_long, /*I:*/Active_Idnp, /*ignoreCase:*/Active_Idnp_long, /*l:*/Active_dlnp, /*lineNumber:*/Active_dlnp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 233 false, 234 /*active:*/SedOption.delete, SedOption.print, SedOption.quiet 235 ), 236 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}, {@link #quiet n}.*/ 237 Active_dln( 238 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgln, /*global:*/Active_dgln_long, /*I:*/Active_Idln, /*ignoreCase:*/Active_Idln_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dlnp, /*print:*/Active_dlnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 239 true, 240 /*active:*/SedOption.delete, SedOption.lineNumber, SedOption.quiet 241 ), 242 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}, {@link #quiet n}.*/ 243 Active_dln_long( 244 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgln, /*global:*/Active_dgln_long, /*I:*/Active_Idln, /*ignoreCase:*/Active_Idln_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dlnp, /*print:*/Active_dlnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 245 false, 246 /*active:*/SedOption.delete, SedOption.lineNumber, SedOption.quiet 247 ), 248 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #quiet n}.*/ 249 Active_Idn( 250 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgn, /*global:*/Active_Idgn_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idln, /*lineNumber:*/Active_Idln_long, /*p:*/Active_Idnp, /*print:*/Active_Idnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 251 true, 252 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.quiet 253 ), 254 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #quiet n}.*/ 255 Active_Idn_long( 256 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgn, /*global:*/Active_Idgn_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idln, /*lineNumber:*/Active_Idln_long, /*p:*/Active_Idnp, /*print:*/Active_Idnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 257 false, 258 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.quiet 259 ), 260 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #print p}.*/ 261 Active_dgp( 262 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgp, /*ignoreCase:*/Active_Idgp_long, /*l:*/Active_dglp, /*lineNumber:*/Active_dglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dgnp, /*quiet:*/Active_dgnp_long, 263 true, 264 /*active:*/SedOption.delete, SedOption.global, SedOption.print 265 ), 266 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #print p}.*/ 267 Active_dgp_long( 268 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgp, /*ignoreCase:*/Active_Idgp_long, /*l:*/Active_dglp, /*lineNumber:*/Active_dglp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dgnp, /*quiet:*/Active_dgnp_long, 269 false, 270 /*active:*/SedOption.delete, SedOption.global, SedOption.print 271 ), 272 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}.*/ 273 Active_dgl( 274 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgl, /*ignoreCase:*/Active_Idgl_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dglp, /*print:*/Active_dglp_long, /*n:*/Active_dgln, /*quiet:*/Active_dgln_long, 275 true, 276 /*active:*/SedOption.delete, SedOption.global, SedOption.lineNumber 277 ), 278 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #lineNumber l}.*/ 279 Active_dgl_long( 280 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idgl, /*ignoreCase:*/Active_Idgl_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dglp, /*print:*/Active_dglp_long, /*n:*/Active_dgln, /*quiet:*/Active_dgln_long, 281 false, 282 /*active:*/SedOption.delete, SedOption.global, SedOption.lineNumber 283 ), 284 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}.*/ 285 Active_Idg( 286 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idgl, /*lineNumber:*/Active_Idgl_long, /*p:*/Active_Idgp, /*print:*/Active_Idgp_long, /*n:*/Active_Idgn, /*quiet:*/Active_Idgn_long, 287 true, 288 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase 289 ), 290 /** Option set with the following active options: {@link #delete d}, {@link #global g}, {@link #ignoreCase I}.*/ 291 Active_Idg_long( 292 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idgl, /*lineNumber:*/Active_Idgl_long, /*p:*/Active_Idgp, /*print:*/Active_Idgp_long, /*n:*/Active_Idgn, /*quiet:*/Active_Idgn_long, 293 false, 294 /*active:*/SedOption.delete, SedOption.global, SedOption.ignoreCase 295 ), 296 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}, {@link #print p}.*/ 297 Active_dlp( 298 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dglp, /*global:*/Active_dglp_long, /*I:*/Active_Idlp, /*ignoreCase:*/Active_Idlp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dlnp, /*quiet:*/Active_dlnp_long, 299 true, 300 /*active:*/SedOption.delete, SedOption.lineNumber, SedOption.print 301 ), 302 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}, {@link #print p}.*/ 303 Active_dlp_long( 304 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dglp, /*global:*/Active_dglp_long, /*I:*/Active_Idlp, /*ignoreCase:*/Active_Idlp_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dlnp, /*quiet:*/Active_dlnp_long, 305 false, 306 /*active:*/SedOption.delete, SedOption.lineNumber, SedOption.print 307 ), 308 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #print p}.*/ 309 Active_Idp( 310 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgp, /*global:*/Active_Idgp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idlp, /*lineNumber:*/Active_Idlp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Idnp, /*quiet:*/Active_Idnp_long, 311 true, 312 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.print 313 ), 314 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #print p}.*/ 315 Active_Idp_long( 316 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgp, /*global:*/Active_Idgp_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idlp, /*lineNumber:*/Active_Idlp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_Idnp, /*quiet:*/Active_Idnp_long, 317 false, 318 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.print 319 ), 320 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 321 Active_Idl( 322 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgl, /*global:*/Active_Idgl_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Idlp, /*print:*/Active_Idlp_long, /*n:*/Active_Idln, /*quiet:*/Active_Idln_long, 323 true, 324 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.lineNumber 325 ), 326 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}, {@link #lineNumber l}.*/ 327 Active_Idl_long( 328 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idgl, /*global:*/Active_Idgl_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_Idlp, /*print:*/Active_Idlp_long, /*n:*/Active_Idln, /*quiet:*/Active_Idln_long, 329 false, 330 /*active:*/SedOption.delete, SedOption.ignoreCase, SedOption.lineNumber 331 ), 332 /** Option set with the following active options: {@link #delete d}, {@link #quiet n}.*/ 333 Active_dn( 334 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgn, /*global:*/Active_dgn_long, /*I:*/Active_Idn, /*ignoreCase:*/Active_Idn_long, /*l:*/Active_dln, /*lineNumber:*/Active_dln_long, /*p:*/Active_dnp, /*print:*/Active_dnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 335 true, 336 /*active:*/SedOption.delete, SedOption.quiet 337 ), 338 /** Option set with the following active options: {@link #delete d}, {@link #quiet n}.*/ 339 Active_dn_long( 340 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgn, /*global:*/Active_dgn_long, /*I:*/Active_Idn, /*ignoreCase:*/Active_Idn_long, /*l:*/Active_dln, /*lineNumber:*/Active_dln_long, /*p:*/Active_dnp, /*print:*/Active_dnp_long, /*n:*/null /*already set*/, /*quiet:*/null /*already set*/, 341 false, 342 /*active:*/SedOption.delete, SedOption.quiet 343 ), 344 /** Option set with the following active options: {@link #delete d}, {@link #global g}.*/ 345 Active_dg( 346 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idg, /*ignoreCase:*/Active_Idg_long, /*l:*/Active_dgl, /*lineNumber:*/Active_dgl_long, /*p:*/Active_dgp, /*print:*/Active_dgp_long, /*n:*/Active_dgn, /*quiet:*/Active_dgn_long, 347 true, 348 /*active:*/SedOption.delete, SedOption.global 349 ), 350 /** Option set with the following active options: {@link #delete d}, {@link #global g}.*/ 351 Active_dg_long( 352 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/null /*already set*/, /*global:*/null /*already set*/, /*I:*/Active_Idg, /*ignoreCase:*/Active_Idg_long, /*l:*/Active_dgl, /*lineNumber:*/Active_dgl_long, /*p:*/Active_dgp, /*print:*/Active_dgp_long, /*n:*/Active_dgn, /*quiet:*/Active_dgn_long, 353 false, 354 /*active:*/SedOption.delete, SedOption.global 355 ), 356 /** Option set with the following active options: {@link #delete d}, {@link #print p}.*/ 357 Active_dp( 358 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgp, /*global:*/Active_dgp_long, /*I:*/Active_Idp, /*ignoreCase:*/Active_Idp_long, /*l:*/Active_dlp, /*lineNumber:*/Active_dlp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dnp, /*quiet:*/Active_dnp_long, 359 true, 360 /*active:*/SedOption.delete, SedOption.print 361 ), 362 /** Option set with the following active options: {@link #delete d}, {@link #print p}.*/ 363 Active_dp_long( 364 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgp, /*global:*/Active_dgp_long, /*I:*/Active_Idp, /*ignoreCase:*/Active_Idp_long, /*l:*/Active_dlp, /*lineNumber:*/Active_dlp_long, /*p:*/null /*already set*/, /*print:*/null /*already set*/, /*n:*/Active_dnp, /*quiet:*/Active_dnp_long, 365 false, 366 /*active:*/SedOption.delete, SedOption.print 367 ), 368 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}.*/ 369 Active_dl( 370 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgl, /*global:*/Active_dgl_long, /*I:*/Active_Idl, /*ignoreCase:*/Active_Idl_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dlp, /*print:*/Active_dlp_long, /*n:*/Active_dln, /*quiet:*/Active_dln_long, 371 true, 372 /*active:*/SedOption.delete, SedOption.lineNumber 373 ), 374 /** Option set with the following active options: {@link #delete d}, {@link #lineNumber l}.*/ 375 Active_dl_long( 376 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dgl, /*global:*/Active_dgl_long, /*I:*/Active_Idl, /*ignoreCase:*/Active_Idl_long, /*l:*/null /*already set*/, /*lineNumber:*/null /*already set*/, /*p:*/Active_dlp, /*print:*/Active_dlp_long, /*n:*/Active_dln, /*quiet:*/Active_dln_long, 377 false, 378 /*active:*/SedOption.delete, SedOption.lineNumber 379 ), 380 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}.*/ 381 Active_Id( 382 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idg, /*global:*/Active_Idg_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idl, /*lineNumber:*/Active_Idl_long, /*p:*/Active_Idp, /*print:*/Active_Idp_long, /*n:*/Active_Idn, /*quiet:*/Active_Idn_long, 383 true, 384 /*active:*/SedOption.delete, SedOption.ignoreCase 385 ), 386 /** Option set with the following active options: {@link #delete d}, {@link #ignoreCase I}.*/ 387 Active_Id_long( 388 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_Idg, /*global:*/Active_Idg_long, /*I:*/null /*already set*/, /*ignoreCase:*/null /*already set*/, /*l:*/Active_Idl, /*lineNumber:*/Active_Idl_long, /*p:*/Active_Idp, /*print:*/Active_Idp_long, /*n:*/Active_Idn, /*quiet:*/Active_Idn_long, 389 false, 390 /*active:*/SedOption.delete, SedOption.ignoreCase 391 ), 392 /** Option set with the following active options: {@link #delete d}.*/ 393 Active_d( 394 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dg, /*global:*/Active_dg_long, /*I:*/Active_Id, /*ignoreCase:*/Active_Id_long, /*l:*/Active_dl, /*lineNumber:*/Active_dl_long, /*p:*/Active_dp, /*print:*/Active_dp_long, /*n:*/Active_dn, /*quiet:*/Active_dn_long, 395 true, 396 /*active:*/SedOption.delete 397 ), 398 /** Option set with the following active options: {@link #delete d}.*/ 399 Active_d_long( 400 /*d:*/null /*already set*/, /*delete:*/null /*already set*/, /*g:*/Active_dg, /*global:*/Active_dg_long, /*I:*/Active_Id, /*ignoreCase:*/Active_Id_long, /*l:*/Active_dl, /*lineNumber:*/Active_dl_long, /*p:*/Active_dp, /*print:*/Active_dp_long, /*n:*/Active_dn, /*quiet:*/Active_dn_long, 401 false, 402 /*active:*/SedOption.delete 403 ); 404 private SedOptionSet_Idglnp( 405 SedOptionSet_Idglnp d, SedOptionSet_Idglnp delete, SedOptionSet_Idglnp g, SedOptionSet_Idglnp global, SedOptionSet_Idglnp I, SedOptionSet_Idglnp ignoreCase, SedOptionSet_Idglnp l, SedOptionSet_Idglnp lineNumber, SedOptionSet_Idglnp p, SedOptionSet_Idglnp print, SedOptionSet_Idglnp n, SedOptionSet_Idglnp quiet, 406 boolean useAcronym, 407 SedOption... activeOptions 408 ) { 409 this.d = d == null ? this : d; 410 this.delete = delete == null ? this : delete; 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 "-d"}: Delete the matched line. 427 * <p> 428 * The option {@code "-d"} is equivalent to the {@code "--}{@link #delete delete}{@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 "-d"}. If the option {@code "-d"} 432 * is already set, the field {@code d} points to the enum constant itself 433 * as it already represents the current set of options. 434 */ 435 public final SedOptionSet_Idglnp d; 436 /** 437 * Option {@code "--delete"}: Delete the matched line. 438 * <p> 439 * The option {@code "--delete"} is equivalent to the {@code "-}{@link #d d}{@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 "--delete"}. If the option {@code "--delete"} 443 * is already set, the field {@code delete} points to the enum constant itself 444 * as it already represents the current set of options. 445 */ 446 public final SedOptionSet_Idglnp delete; 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp.delete.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_Idglnp.d.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_Idglnp.d.g.delete; 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}