public class Inflection extends BitMaskBase
History:
Modifier and Type | Field and Description |
---|---|
static long |
ALL_BIT_VALUE |
static int |
BASE_BIT
base bit for inflection: xx (noun, adjv, verb)
|
static int |
COMPARATIVE_BIT
comparative bit for inflection: xx (adjv) + er
|
static int |
INFINITIVE_BIT
infinitive bit for inflection: xx (verb)
|
static long |
LOWER_INFLECTIONS
All bits for inflection
|
static long[] |
MAP_SIMPLE_INFL
Mapping simple inflections
|
static long |
NO_BIT_VALUE |
static int |
PAST_1P_2_3P_BIT
past (1p_2_3p) bit for inflection: xx (were)
|
static int |
PAST_1P_2_3P_NEG_BIT
past negative (1p_2_3p) bit for inflection: xx (weren't)
|
static int |
PAST_1S_3S_BIT
past (1s_3s) bit for inflection: xx (was)
|
static int |
PAST_1S_3S_NEG_BIT
past negative (1s_3s) bit for inflection: xx (wasn't)
|
static int |
PAST_BIT
past bit for inflection: xx (verb) + ed
|
static int |
PAST_NEG_BIT
past negative bit for inflection: xx (couldn't, didn't)
|
static int |
PAST_PART_BIT
past [articiple bit for inflection: xx (verb) + en
|
static int |
PLURAL_BIT
plural bit for inflection: xx (noun) + s
|
static int |
POSITIVE_BIT
positive bit for inflection: xx (adjv)
|
static int |
PRES_1_2_3P_BIT
present (1_2_3p) bit for inflection: xx (verb)
|
static int |
PRES_1_2_3P_NEG_BIT
present negative (1_2_3p) bit for inflection: xx (don't)
|
static int |
PRES_1P_2_3P_BIT
present (1p_2_3p) bit for inflection: xx (are)
|
static int |
PRES_1P_2_3P_NEG_BIT
present negative (1p_2_3p) bit for inflection: xx (aren't)
|
static int |
PRES_1S_BIT
present (1s) bit for inflection: xx (verb, am)
|
static int |
PRES_3S_BIT
present 3ps bit for inflection: xx (verb) + s
|
static int |
PRES_3S_NEG_BIT
present negative (3s) bit for inflection: xx (isn't, hasn't)
|
static int |
PRES_BIT
present bit for inflection: xx (can)
|
static int |
PRES_NEG_BIT
present negative bit for inflection: xx (can't, cannot)
|
static int |
PRES_PART_BIT
present participle bit for inflection: xx (verb) + ing
|
static int |
SIMPLE_BITS |
static int |
SINGULAR_BIT
sigular bit for inflection: xx (noun)
|
static int |
SUPERLATIVE_BIT
superlative bit for inflection: xx (adjv) + est
|
static int |
TOTAL_BITS |
static long |
UPPER_INFLECTIONS |
MASK, MAX_BIT
Constructor and Description |
---|
Inflection()
Creates a default inflection object
|
Inflection(long value)
Creates a default inflection 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 inflection value to a combined string (abbreviation).
|
static long |
ToValue(java.lang.String valueStr)
Convert a combined value string to a long inflection value.
|
static java.util.Vector<java.lang.Long> |
ToValues(long value)
Get a Vector of Long includes all values from the combined value.
|
static long[] |
ToValuesArray(long value)
Get an array includes all values from the combined value.
|
Contains, Contains, Enumerate, GetBitFlag, GetBitIndex, GetBitName, GetBitValue, GetName, GetValue, SetBitFlag, SetValue, ToName, ToValue, ToValues
public static final int BASE_BIT
public static final int COMPARATIVE_BIT
public static final int SUPERLATIVE_BIT
public static final int PLURAL_BIT
public static final int PRES_PART_BIT
public static final int PAST_BIT
public static final int PAST_PART_BIT
public static final int PRES_3S_BIT
public static final int POSITIVE_BIT
public static final int SINGULAR_BIT
public static final int INFINITIVE_BIT
public static final int PRES_1_2_3P_BIT
public static final int PAST_NEG_BIT
public static final int PRES_1_2_3P_NEG_BIT
public static final int PRES_1S_BIT
public static final int PAST_1P_2_3P_NEG_BIT
public static final int PAST_1P_2_3P_BIT
public static final int PAST_1S_3S_NEG_BIT
public static final int PRES_1P_2_3P_BIT
public static final int PRES_1P_2_3P_NEG_BIT
public static final int PAST_1S_3S_BIT
public static final int PRES_BIT
public static final int PRES_3S_NEG_BIT
public static final int PRES_NEG_BIT
public static final long LOWER_INFLECTIONS
public static final long UPPER_INFLECTIONS
public static final int SIMPLE_BITS
public static final int TOTAL_BITS
public static final long ALL_BIT_VALUE
public static final long NO_BIT_VALUE
public static final long[] MAP_SIMPLE_INFL
public Inflection()
public Inflection(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 java.util.Vector<java.lang.Long> ToValues(long value)
value
- combined valuepublic static long[] ToValuesArray(long value)
value
- combined valuepublic static void main(java.lang.String[] args)
args
- arguments