public enum SedOptionSet_Iaglnp extends Enum<SedOptionSet_Iaglnp> implements SedOptions
sed
command with
the following options: a
, g
, I
, l
, p
, n
.
Application code does normally not directly refer to this class;
Sed.Options
should be used instead to specify command
options. See also SedOptions
for more information.
SedOptions.Default
Modifier and Type | Field and Description |
---|---|
SedOptionSet_Iaglnp |
a
Option
"-a" : Append string2 as a separate line after the matched line. |
SedOptionSet_Iaglnp |
append
Option
"--append" : Append string2 as a separate line after the matched line. |
SedOptionSet_Iaglnp |
g
Option
"-g" : Globally substitute for all non-overlapping instances of the regexp
rather than just the first one. |
SedOptionSet_Iaglnp |
global
Option
"--global" : Globally substitute for all non-overlapping instances of the regexp
rather than just the first one. |
SedOptionSet_Iaglnp |
I
Option
"-I" : Use case insensitive pattern matching. |
SedOptionSet_Iaglnp |
ignoreCase
Option
"--ignoreCase" : Use case insensitive pattern matching. |
SedOptionSet_Iaglnp |
l
Option
"-l" : Writes the current line number on a separate line to the standard
output. |
SedOptionSet_Iaglnp |
lineNumber
Option
"--lineNumber" : Writes the current line number on a separate line to the standard
output. |
SedOptionSet_Iaglnp |
n
Option
"-n" : Suppress the default output (in which each line, after it is
examined for editing, is written to standard output). |
SedOptionSet_Iaglnp |
p
Option
"-p" : Write the matched line to standard output. |
SedOptionSet_Iaglnp |
print
Option
"--print" : Write the matched line to standard output. |
SedOptionSet_Iaglnp |
quiet
Option
"--quiet" : Suppress the default output (in which each line, after it is
examined for editing, is written to standard output). |
CONVERTER, EMPTY
Modifier and Type | Method and Description |
---|---|
EnumSet<SedOption> |
asSet()
Returns the set with the active options.
|
boolean |
isSet(SedOption option)
Returns true if the specified
option is set and false otherwise |
Iterator<SedOption> |
iterator()
Returns an immutable iterator with the active options of this option set.
|
Class<SedOption> |
optionType()
Returns the option type class, usually an enum.
|
int |
size()
Returns the number of active options in this option set.
|
boolean |
useAcronymFor(SedOption option)
Returns true if the
acronym should be used in
for the specified option string representations. |
static SedOptionSet_Iaglnp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SedOptionSet_Iaglnp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
forEach, spliterator
public static final SedOptionSet_Iaglnp Active_Iaglnp
public static final SedOptionSet_Iaglnp Active_Iaglnp_long
public static final SedOptionSet_Iaglnp Active_aglnp
public static final SedOptionSet_Iaglnp Active_aglnp_long
public static final SedOptionSet_Iaglnp Active_Iagnp
public static final SedOptionSet_Iaglnp Active_Iagnp_long
public static final SedOptionSet_Iaglnp Active_Iagln
public static final SedOptionSet_Iaglnp Active_Iagln_long
public static final SedOptionSet_Iaglnp Active_Ialnp
public static final SedOptionSet_Iaglnp Active_Ialnp_long
public static final SedOptionSet_Iaglnp Active_Iaglp
public static final SedOptionSet_Iaglnp Active_Iaglp_long
public static final SedOptionSet_Iaglnp Active_agnp
public static final SedOptionSet_Iaglnp Active_agnp_long
public static final SedOptionSet_Iaglnp Active_agln
public static final SedOptionSet_Iaglnp Active_agln_long
public static final SedOptionSet_Iaglnp Active_Iagn
public static final SedOptionSet_Iaglnp Active_Iagn_long
public static final SedOptionSet_Iaglnp Active_alnp
public static final SedOptionSet_Iaglnp Active_alnp_long
public static final SedOptionSet_Iaglnp Active_Ianp
public static final SedOptionSet_Iaglnp Active_Ianp_long
public static final SedOptionSet_Iaglnp Active_Ialn
public static final SedOptionSet_Iaglnp Active_Ialn_long
public static final SedOptionSet_Iaglnp Active_aglp
public static final SedOptionSet_Iaglnp Active_aglp_long
public static final SedOptionSet_Iaglnp Active_Iagp
public static final SedOptionSet_Iaglnp Active_Iagp_long
public static final SedOptionSet_Iaglnp Active_Iagl
public static final SedOptionSet_Iaglnp Active_Iagl_long
public static final SedOptionSet_Iaglnp Active_Ialp
public static final SedOptionSet_Iaglnp Active_Ialp_long
public static final SedOptionSet_Iaglnp Active_agn
public static final SedOptionSet_Iaglnp Active_agn_long
public static final SedOptionSet_Iaglnp Active_anp
public static final SedOptionSet_Iaglnp Active_anp_long
public static final SedOptionSet_Iaglnp Active_aln
public static final SedOptionSet_Iaglnp Active_aln_long
public static final SedOptionSet_Iaglnp Active_Ian
public static final SedOptionSet_Iaglnp Active_Ian_long
public static final SedOptionSet_Iaglnp Active_agp
public static final SedOptionSet_Iaglnp Active_agp_long
public static final SedOptionSet_Iaglnp Active_agl
public static final SedOptionSet_Iaglnp Active_agl_long
public static final SedOptionSet_Iaglnp Active_Iag
public static final SedOptionSet_Iaglnp Active_Iag_long
public static final SedOptionSet_Iaglnp Active_alp
public static final SedOptionSet_Iaglnp Active_alp_long
public static final SedOptionSet_Iaglnp Active_Iap
public static final SedOptionSet_Iaglnp Active_Iap_long
public static final SedOptionSet_Iaglnp Active_Ial
public static final SedOptionSet_Iaglnp Active_Ial_long
public static final SedOptionSet_Iaglnp Active_an
public static final SedOptionSet_Iaglnp Active_an_long
public static final SedOptionSet_Iaglnp Active_ag
public static final SedOptionSet_Iaglnp Active_ag_long
public static final SedOptionSet_Iaglnp Active_ap
public static final SedOptionSet_Iaglnp Active_ap_long
public static final SedOptionSet_Iaglnp Active_al
public static final SedOptionSet_Iaglnp Active_al_long
public static final SedOptionSet_Iaglnp Active_Ia
public static final SedOptionSet_Iaglnp Active_Ia_long
public static final SedOptionSet_Iaglnp Active_a
a
.public static final SedOptionSet_Iaglnp Active_a_long
a
.public final SedOptionSet_Iaglnp a
"-a"
: Append string2 as a separate line after the matched line.
The option "-a"
is equivalent to the "--
append
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-a"
. If the option "-a"
is already set, the field a
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp append
"--append"
: Append string2 as a separate line after the matched line.
The option "--append"
is equivalent to the "-
a
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--append"
. If the option "--append"
is already set, the field append
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp g
"-g"
: Globally substitute for all non-overlapping instances of the regexp
rather than just the first one.
(This option is ignored if the occurrence operand is specified).
The option "-g"
is equivalent to the "--
global
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-g"
. If the option "-g"
is already set, the field g
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp global
"--global"
: Globally substitute for all non-overlapping instances of the regexp
rather than just the first one.
(This option is ignored if the occurrence operand is specified).
The option "--global"
is equivalent to the "-
g
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--global"
. If the option "--global"
is already set, the field global
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp I
"-I"
: Use case insensitive pattern matching.
The option "-I"
is equivalent to the "--
ignoreCase
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-I"
. If the option "-I"
is already set, the field I
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp ignoreCase
"--ignoreCase"
: Use case insensitive pattern matching.
The option "--ignoreCase"
is equivalent to the "-
I
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--ignoreCase"
. If the option "--ignoreCase"
is already set, the field ignoreCase
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp l
"-l"
: Writes the current line number on a separate line to the standard
output.
The option "-l"
is equivalent to the "--
lineNumber
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-l"
. If the option "-l"
is already set, the field l
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp lineNumber
"--lineNumber"
: Writes the current line number on a separate line to the standard
output.
The option "--lineNumber"
is equivalent to the "-
l
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--lineNumber"
. If the option "--lineNumber"
is already set, the field lineNumber
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp p
"-p"
: Write the matched line to standard output.
The option "-p"
is equivalent to the "--
print
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-p"
. If the option "-p"
is already set, the field p
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp print
"--print"
: Write the matched line to standard output.
The option "--print"
is equivalent to the "-
p
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--print"
. If the option "--print"
is already set, the field print
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp n
"-n"
: Suppress the default output (in which each line, after it is
examined for editing, is written to standard output). Only lines
explicitly selected for output are written.
The option "-n"
is equivalent to the "--
quiet
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-n"
. If the option "-n"
is already set, the field n
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iaglnp quiet
"--quiet"
: Suppress the default output (in which each line, after it is
examined for editing, is written to standard output). Only lines
explicitly selected for output are written.
The option "--quiet"
is equivalent to the "-
n
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--quiet"
. If the option "--quiet"
is already set, the field quiet
points to the enum constant itself
as it already represents the current set of options.
public static SedOptionSet_Iaglnp[] values()
for (SedOptionSet_Iaglnp c : SedOptionSet_Iaglnp.values()) System.out.println(c);
public static SedOptionSet_Iaglnp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<SedOption> optionType()
OptionSet
optionType
in interface OptionSet<SedOption>
public boolean isSet(SedOption option)
OptionSet
option
is set and false otherwisepublic int size()
OptionSet
public EnumSet<SedOption> asSet()
this
option set.public Iterator<SedOption> iterator()
public boolean useAcronymFor(SedOption option)
acronym
should be used in
for the specified option
string representations.
In particular and independent from the option
argument, this
option set returns true if the last option added to this set was an
acronym, and false if it was a long option name.
For instance, the set defined as
SedOptionSet_Iaglnp.append.g;uses acronyms, that is, this method always returns true for the above set.
On the other hand, long option names are used and this method always returns false for the set
SedOptionSet_Iaglnp.a.global;
Note that a repeated option is not treated as the last set option. For instance, the first and last option of the following set are equivalent and acronyms are used:
SedOptionSet_Iaglnp.a.g.append;
This method always returns true for the empty set with no active options.
useAcronymFor
in interface OptionSet<SedOption>
option
- the option of interest, has no impact on the result returned
by this methodCopyright © 2024. All rights reserved.