Enum Segment.SegType
- java.lang.Object
-
- java.lang.Enum<Segment.SegType>
-
- com.vladsch.flexmark.util.sequence.builder.tree.Segment.SegType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Segment.SegType>
- Enclosing class:
- Segment
public static enum Segment.SegType extends java.lang.Enum<Segment.SegType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANCHOR
BASE
REPEATED_ASCII
REPEATED_EOL
REPEATED_SPACE
REPEATED_TEXT
TEXT
TEXT_ASCII
-
Field Summary
Fields Modifier and Type Field Description int
flags
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Segment.SegType
fromTypeMask(int segTypeMask)
boolean
hasAll(int flags)
boolean
hasBoth()
boolean
hasByte()
boolean
hasBytes()
boolean
hasChar()
boolean
hasChars()
boolean
hasLength()
boolean
hasOffset()
static Segment.SegType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Segment.SegType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANCHOR
public static final Segment.SegType ANCHOR
-
BASE
public static final Segment.SegType BASE
-
TEXT
public static final Segment.SegType TEXT
-
REPEATED_TEXT
public static final Segment.SegType REPEATED_TEXT
-
TEXT_ASCII
public static final Segment.SegType TEXT_ASCII
-
REPEATED_ASCII
public static final Segment.SegType REPEATED_ASCII
-
REPEATED_SPACE
public static final Segment.SegType REPEATED_SPACE
-
REPEATED_EOL
public static final Segment.SegType REPEATED_EOL
-
-
Method Detail
-
values
public static Segment.SegType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Segment.SegType c : Segment.SegType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Segment.SegType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
hasAll
public boolean hasAll(int flags)
-
hasLength
public boolean hasLength()
-
hasOffset
public boolean hasOffset()
-
hasBoth
public boolean hasBoth()
-
hasChar
public boolean hasChar()
-
hasChars
public boolean hasChars()
-
hasByte
public boolean hasByte()
-
hasBytes
public boolean hasBytes()
-
fromTypeMask
public static Segment.SegType fromTypeMask(int segTypeMask)
-
-