|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Lib.BitMaskBase
gov.nih.nlm.nls.lvg.Lib.Inflection
public class Inflection
This Inflection class extends BitMaskBase class and performs as LVG Inflection.
History:
| Field Summary | |
|---|---|
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[] |
MapSimpleInfl_
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
|
| Fields inherited from class gov.nih.nlm.nls.lvg.Lib.BitMaskBase |
|---|
mask_, MAX_BIT |
| Constructor Summary | |
|---|---|
Inflection()
Creates a default inflection object |
|
Inflection(long value)
Creates a default inflection object, using a long value |
|
| Method Summary | |
|---|---|
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 |
ToValues(long value)
Get a Vector include all values from the combined value. |
static long[] |
ToValuesArray(long value)
Get an array includes all values from the combined value. |
| Methods inherited from class gov.nih.nlm.nls.lvg.Lib.BitMaskBase |
|---|
Contains, Contains, Enumerate, GetBitFlag, GetBitIndex, GetBitName, GetBitValue, GetName, GetValue, SetBitFlag, SetValue, ToName, ToValue, ToValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 long[] MapSimpleInfl_
| Constructor Detail |
|---|
public Inflection()
public Inflection(long value)
| Method Detail |
|---|
public static long ToValue(java.lang.String valueStr)
valueStr - combined name in String format
public static java.lang.String ToName(long value)
value - number for finding it's combined name
public static java.lang.String GetBitName(int bitValue)
bitValue - bit nubmer for finding it's name
public static java.lang.String GetBitName(int bitValue,
int index)
bitValue - bit nubmer for finding it's nameindex - the order index of the name in bitStr_[]
public static long Enumerate(java.lang.String valueStr)
valueStr - name of a bit for finding it's long value
public static java.util.Vector ToValues(long value)
value - combined value
public static long[] ToValuesArray(long value)
value - combined value
public static void main(java.lang.String[] args)
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||