public enum SedOptionSet_Idglnp extends Enum<SedOptionSet_Idglnp> implements SedOptions
sed
command with
the following options: d
, 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_Idglnp |
d
Option
"-d" : Delete the matched line. |
SedOptionSet_Idglnp |
delete
Option
"--delete" : Delete the matched line. |
SedOptionSet_Idglnp |
g
Option
"-g" : Globally substitute for all non-overlapping instances of the regexp
rather than just the first one. |
SedOptionSet_Idglnp |
global
Option
"--global" : Globally substitute for all non-overlapping instances of the regexp
rather than just the first one. |
SedOptionSet_Idglnp |
I
Option
"-I" : Use case insensitive pattern matching. |
SedOptionSet_Idglnp |
ignoreCase
Option
"--ignoreCase" : Use case insensitive pattern matching. |
SedOptionSet_Idglnp |
l
Option
"-l" : Writes the current line number on a separate line to the standard
output. |
SedOptionSet_Idglnp |
lineNumber
Option
"--lineNumber" : Writes the current line number on a separate line to the standard
output. |
SedOptionSet_Idglnp |
n
Option
"-n" : Suppress the default output (in which each line, after it is
examined for editing, is written to standard output). |
SedOptionSet_Idglnp |
p
Option
"-p" : Write the matched line to standard output. |
SedOptionSet_Idglnp |
print
Option
"--print" : Write the matched line to standard output. |
SedOptionSet_Idglnp |
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_Idglnp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SedOptionSet_Idglnp[] |
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_Idglnp Active_Idglnp
public static final SedOptionSet_Idglnp Active_Idglnp_long
public static final SedOptionSet_Idglnp Active_dglnp
public static final SedOptionSet_Idglnp Active_dglnp_long
public static final SedOptionSet_Idglnp Active_Idgnp
public static final SedOptionSet_Idglnp Active_Idgnp_long
public static final SedOptionSet_Idglnp Active_Idgln
public static final SedOptionSet_Idglnp Active_Idgln_long
public static final SedOptionSet_Idglnp Active_Idlnp
public static final SedOptionSet_Idglnp Active_Idlnp_long
public static final SedOptionSet_Idglnp Active_Idglp
public static final SedOptionSet_Idglnp Active_Idglp_long
public static final SedOptionSet_Idglnp Active_dgnp
public static final SedOptionSet_Idglnp Active_dgnp_long
public static final SedOptionSet_Idglnp Active_dgln
public static final SedOptionSet_Idglnp Active_dgln_long
public static final SedOptionSet_Idglnp Active_Idgn
public static final SedOptionSet_Idglnp Active_Idgn_long
public static final SedOptionSet_Idglnp Active_dlnp
public static final SedOptionSet_Idglnp Active_dlnp_long
public static final SedOptionSet_Idglnp Active_Idnp
public static final SedOptionSet_Idglnp Active_Idnp_long
public static final SedOptionSet_Idglnp Active_Idln
public static final SedOptionSet_Idglnp Active_Idln_long
public static final SedOptionSet_Idglnp Active_dglp
public static final SedOptionSet_Idglnp Active_dglp_long
public static final SedOptionSet_Idglnp Active_Idgp
public static final SedOptionSet_Idglnp Active_Idgp_long
public static final SedOptionSet_Idglnp Active_Idgl
public static final SedOptionSet_Idglnp Active_Idgl_long
public static final SedOptionSet_Idglnp Active_Idlp
public static final SedOptionSet_Idglnp Active_Idlp_long
public static final SedOptionSet_Idglnp Active_dgn
public static final SedOptionSet_Idglnp Active_dgn_long
public static final SedOptionSet_Idglnp Active_dnp
public static final SedOptionSet_Idglnp Active_dnp_long
public static final SedOptionSet_Idglnp Active_dln
public static final SedOptionSet_Idglnp Active_dln_long
public static final SedOptionSet_Idglnp Active_Idn
public static final SedOptionSet_Idglnp Active_Idn_long
public static final SedOptionSet_Idglnp Active_dgp
public static final SedOptionSet_Idglnp Active_dgp_long
public static final SedOptionSet_Idglnp Active_dgl
public static final SedOptionSet_Idglnp Active_dgl_long
public static final SedOptionSet_Idglnp Active_Idg
public static final SedOptionSet_Idglnp Active_Idg_long
public static final SedOptionSet_Idglnp Active_dlp
public static final SedOptionSet_Idglnp Active_dlp_long
public static final SedOptionSet_Idglnp Active_Idp
public static final SedOptionSet_Idglnp Active_Idp_long
public static final SedOptionSet_Idglnp Active_Idl
public static final SedOptionSet_Idglnp Active_Idl_long
public static final SedOptionSet_Idglnp Active_dn
public static final SedOptionSet_Idglnp Active_dn_long
public static final SedOptionSet_Idglnp Active_dg
public static final SedOptionSet_Idglnp Active_dg_long
public static final SedOptionSet_Idglnp Active_dp
public static final SedOptionSet_Idglnp Active_dp_long
public static final SedOptionSet_Idglnp Active_dl
public static final SedOptionSet_Idglnp Active_dl_long
public static final SedOptionSet_Idglnp Active_Id
public static final SedOptionSet_Idglnp Active_Id_long
public static final SedOptionSet_Idglnp Active_d
d
.public static final SedOptionSet_Idglnp Active_d_long
d
.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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp 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_Idglnp[] values()
for (SedOptionSet_Idglnp c : SedOptionSet_Idglnp.values()) System.out.println(c);
public static SedOptionSet_Idglnp 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_Idglnp.delete.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_Idglnp.d.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_Idglnp.d.g.delete;
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.