public enum SedOptionSet_Iacdgilnpsy extends Enum<SedOptionSet_Iacdgilnpsy> implements SedOptions
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_Icglnp |
c
Option
"-c" : Write string2 as a separate line instead of the matched line. |
SedOptionSet_Icglnp |
change
Option
"--change" : Write string2 as a separate line instead of the matched line. |
SedOptionSet_Idglnp |
d
Option
"-d" : Delete the matched line. |
SedOptionSet_Idglnp |
delete
Option
"--delete" : Delete the matched line. |
SedOptionSet_Iacdgilnpsy |
g
Option
"-g" : Globally substitute for all non-overlapping instances of the regexp
rather than just the first one. |
SedOptionSet_Iacdgilnpsy |
global
Option
"--global" : Globally substitute for all non-overlapping instances of the regexp
rather than just the first one. |
SedOptionSet_Igilnp |
i
Option
"-i" : Insert string2 as a separate line before the matched line. |
SedOptionSet_Iacdgilnpsy |
I
Option
"-I" : Use case insensitive pattern matching. |
SedOptionSet_Iacdgilnpsy |
ignoreCase
Option
"--ignoreCase" : Use case insensitive pattern matching. |
SedOptionSet_Igilnp |
insert
Option
"--insert" : Insert string2 as a separate line before the matched line. |
SedOptionSet_Iacdgilnpsy |
l
Option
"-l" : Writes the current line number on a separate line to the standard
output. |
SedOptionSet_Iacdgilnpsy |
lineNumber
Option
"--lineNumber" : Writes the current line number on a separate line to the standard
output. |
SedOptionSet_Iacdgilnpsy |
n
Option
"-n" : Suppress the default output (in which each line, after it is
examined for editing, is written to standard output). |
SedOptionSet_Iacdgilnpsy |
p
Option
"-p" : Write the matched line to standard output. |
SedOptionSet_Iacdgilnpsy |
print
Option
"--print" : Write the matched line to standard output. |
SedOptionSet_Iacdgilnpsy |
quiet
Option
"--quiet" : Suppress the default output (in which each line, after it is
examined for editing, is written to standard output). |
SedOptionSet_Iglnps |
s
Option
"-s" : Substitutes the replacement string for instances of the regexp in
the matched line. |
SedOptionSet_Iglnps |
substitute
Option
"--substitute" : Substitutes the replacement string for instances of the regexp in
the matched line. |
SedOptionSet_Iglnpy |
translate
Option
"--translate" : Replace all occurrences of characters in string1 with the
corresponding characters in string2. |
SedOptionSet_Iglnpy |
y
Option
"-y" : Replace all occurrences of characters in string1 with the
corresponding characters in string2. |
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_Iacdgilnpsy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SedOptionSet_Iacdgilnpsy[] |
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_Iacdgilnpsy Active_Iglnp
public static final SedOptionSet_Iacdgilnpsy Active_Iglnp_long
public static final SedOptionSet_Iacdgilnpsy Active_glnp
public static final SedOptionSet_Iacdgilnpsy Active_glnp_long
public static final SedOptionSet_Iacdgilnpsy Active_Ignp
public static final SedOptionSet_Iacdgilnpsy Active_Ignp_long
public static final SedOptionSet_Iacdgilnpsy Active_Igln
public static final SedOptionSet_Iacdgilnpsy Active_Igln_long
public static final SedOptionSet_Iacdgilnpsy Active_Ilnp
public static final SedOptionSet_Iacdgilnpsy Active_Ilnp_long
public static final SedOptionSet_Iacdgilnpsy Active_Iglp
public static final SedOptionSet_Iacdgilnpsy Active_Iglp_long
public static final SedOptionSet_Iacdgilnpsy Active_gnp
public static final SedOptionSet_Iacdgilnpsy Active_gnp_long
public static final SedOptionSet_Iacdgilnpsy Active_gln
public static final SedOptionSet_Iacdgilnpsy Active_gln_long
public static final SedOptionSet_Iacdgilnpsy Active_Ign
public static final SedOptionSet_Iacdgilnpsy Active_Ign_long
public static final SedOptionSet_Iacdgilnpsy Active_lnp
public static final SedOptionSet_Iacdgilnpsy Active_lnp_long
public static final SedOptionSet_Iacdgilnpsy Active_Inp
public static final SedOptionSet_Iacdgilnpsy Active_Inp_long
public static final SedOptionSet_Iacdgilnpsy Active_Iln
public static final SedOptionSet_Iacdgilnpsy Active_Iln_long
public static final SedOptionSet_Iacdgilnpsy Active_glp
public static final SedOptionSet_Iacdgilnpsy Active_glp_long
public static final SedOptionSet_Iacdgilnpsy Active_Igp
public static final SedOptionSet_Iacdgilnpsy Active_Igp_long
public static final SedOptionSet_Iacdgilnpsy Active_Igl
public static final SedOptionSet_Iacdgilnpsy Active_Igl_long
public static final SedOptionSet_Iacdgilnpsy Active_Ilp
public static final SedOptionSet_Iacdgilnpsy Active_Ilp_long
public static final SedOptionSet_Iacdgilnpsy Active_gn
public static final SedOptionSet_Iacdgilnpsy Active_gn_long
public static final SedOptionSet_Iacdgilnpsy Active_np
public static final SedOptionSet_Iacdgilnpsy Active_np_long
public static final SedOptionSet_Iacdgilnpsy Active_ln
public static final SedOptionSet_Iacdgilnpsy Active_ln_long
public static final SedOptionSet_Iacdgilnpsy Active_In
public static final SedOptionSet_Iacdgilnpsy Active_In_long
public static final SedOptionSet_Iacdgilnpsy Active_gp
public static final SedOptionSet_Iacdgilnpsy Active_gp_long
public static final SedOptionSet_Iacdgilnpsy Active_gl
public static final SedOptionSet_Iacdgilnpsy Active_gl_long
public static final SedOptionSet_Iacdgilnpsy Active_Ig
public static final SedOptionSet_Iacdgilnpsy Active_Ig_long
public static final SedOptionSet_Iacdgilnpsy Active_lp
public static final SedOptionSet_Iacdgilnpsy Active_lp_long
public static final SedOptionSet_Iacdgilnpsy Active_Ip
public static final SedOptionSet_Iacdgilnpsy Active_Ip_long
public static final SedOptionSet_Iacdgilnpsy Active_Il
public static final SedOptionSet_Iacdgilnpsy Active_Il_long
public static final SedOptionSet_Iacdgilnpsy Active_n
n
.public static final SedOptionSet_Iacdgilnpsy Active_n_long
n
.public static final SedOptionSet_Iacdgilnpsy Active_g
g
.public static final SedOptionSet_Iacdgilnpsy Active_g_long
g
.public static final SedOptionSet_Iacdgilnpsy Active_p
p
.public static final SedOptionSet_Iacdgilnpsy Active_p_long
p
.public static final SedOptionSet_Iacdgilnpsy Active_l
l
.public static final SedOptionSet_Iacdgilnpsy Active_l_long
l
.public static final SedOptionSet_Iacdgilnpsy Active_I
I
.public static final SedOptionSet_Iacdgilnpsy Active_I_long
I
.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_Icglnp c
"-c"
: Write string2 as a separate line instead of the matched line.
The option "-c"
is equivalent to the "--
change
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-c"
. If the option "-c"
is already set, the field c
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Icglnp change
"--change"
: Write string2 as a separate line instead of the matched line.
The option "--change"
is equivalent to the "-
c
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--change"
. If the option "--change"
is already set, the field change
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Idglnp d
"-d"
: Delete the matched line.
The option "-d"
is equivalent to the "--
delete
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-d"
. If the option "-d"
is already set, the field d
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Idglnp delete
"--delete"
: Delete the matched line.
The option "--delete"
is equivalent to the "-
d
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--delete"
. If the option "--delete"
is already set, the field delete
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iacdgilnpsy 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_Iacdgilnpsy 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_Iacdgilnpsy 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_Iacdgilnpsy 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_Igilnp i
"-i"
: Insert string2 as a separate line before the matched line.
The option "-i"
is equivalent to the "--
insert
"
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_Igilnp insert
"--insert"
: Insert string2 as a separate line before the matched line.
The option "--insert"
is equivalent to the "-
i
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--insert"
. If the option "--insert"
is already set, the field insert
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iacdgilnpsy 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_Iacdgilnpsy 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_Iacdgilnpsy 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_Iacdgilnpsy 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_Iacdgilnpsy 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_Iacdgilnpsy 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 final SedOptionSet_Iglnps s
"-s"
: Substitutes the replacement string for instances of the regexp in
the matched line.
The characters "$0" appearing in the replacement are replaced by the line matching the regexp. The characters "$n", where n is a digit other than zero, are replaced by the text matched by the corresponding backreference expression (aka group). The special meaning of "$n" in this context can be suppressed by preceding it by a backslash.
A line can be split by substituting a newline ('\n') into it.
A substitution is considered to have been performed even if the replacement string is identical to the string that it replaces.
The option "-s"
is equivalent to the "--
substitute
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-s"
. If the option "-s"
is already set, the field s
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iglnps substitute
"--substitute"
: Substitutes the replacement string for instances of the regexp in
the matched line.
The characters "$0" appearing in the replacement are replaced by the line matching the regexp. The characters "$n", where n is a digit other than zero, are replaced by the text matched by the corresponding backreference expression (aka group). The special meaning of "$n" in this context can be suppressed by preceding it by a backslash.
A line can be split by substituting a newline ('\n') into it.
A substitution is considered to have been performed even if the replacement string is identical to the string that it replaces.
The option "--substitute"
is equivalent to the "-
s
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--substitute"
. If the option "--substitute"
is already set, the field substitute
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iglnpy y
"-y"
: Replace all occurrences of characters in string1 with the
corresponding characters in string2. If the number of characters in
the two strings are not equal, or if any of the characters in
string1 appear more than once, the results are undefined.
The option "-y"
is equivalent to the "--
translate
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-y"
. If the option "-y"
is already set, the field y
points to the enum constant itself
as it already represents the current set of options.
public final SedOptionSet_Iglnpy translate
"--translate"
: Replace all occurrences of characters in string1 with the
corresponding characters in string2. If the number of characters in
the two strings are not equal, or if any of the characters in
string1 appear more than once, the results are undefined.
The option "--translate"
is equivalent to the "-
y
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--translate"
. If the option "--translate"
is already set, the field translate
points to the enum constant itself
as it already represents the current set of options.
public static SedOptionSet_Iacdgilnpsy[] values()
for (SedOptionSet_Iacdgilnpsy c : SedOptionSet_Iacdgilnpsy.values()) System.out.println(c);
public static SedOptionSet_Iacdgilnpsy 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_Iacdgilnpsy.append.c;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_Iacdgilnpsy.a.change;
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_Iacdgilnpsy.a.c.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.