public class Tag extends BitMaskBase
History:
Modifier and Type | Field and Description |
---|---|
static long |
ALL_BIT_VALUE
all bits for tag
|
static int |
DERV_NOUN_ADJ_BIT
bit for pure noun/adj operation in recursive derivation
|
static long |
NO_BIT_VALUE |
static int |
UNIQUE_ACR_EXP_BIT
bit for unique acronyms and expansions
|
MASK, MAX_BIT
Constructor and Description |
---|
Tag()
Creates a default tag object
|
Tag(long value)
Creates a default tag object, using a long value
|
Modifier and Type | Method and Description |
---|---|
static long |
Enumerate(java.lang.String valueStr)
Get the long value for one single name (no combine names of bits).
|
static java.lang.String |
GetBitName(int bitValue)
Get the name (first in the name list) of a specified bit (single).
|
static java.lang.String |
GetBitName(int bitValue,
int index)
Get the name at index order of a specified bit (single).
|
static void |
main(java.lang.String[] args)
Test driver for this class
|
static java.lang.String |
ToName(long value)
Convert a long tag value to a combined string (abbreviation).
|
static long |
ToValue(java.lang.String valueStr)
Convert a combined value string to a long tag value.
|
Contains, Contains, Enumerate, GetBitFlag, GetBitIndex, GetBitName, GetBitValue, GetName, GetValue, SetBitFlag, SetValue, ToName, ToValue, ToValues
public static final int DERV_NOUN_ADJ_BIT
public static final int UNIQUE_ACR_EXP_BIT
public static final long NO_BIT_VALUE
public static final long ALL_BIT_VALUE
public Tag()
public Tag(long value)
value
- number for finding it's combined namepublic static long ToValue(java.lang.String valueStr)
valueStr
- combined name in String formatpublic static java.lang.String ToName(long value)
value
- number for finding it's combined namepublic static java.lang.String GetBitName(int bitValue)
bitValue
- bit nubmer for finding it's namepublic static java.lang.String GetBitName(int bitValue, int index)
bitValue
- bit nubmer for finding it's nameindex
- the order index of the name in BIT_STR[]public static long Enumerate(java.lang.String valueStr)
valueStr
- name of a bit for finding it's long valuepublic static void main(java.lang.String[] args)
args
- arguments