ca.uottawa.balie
Class TokenConsts
java.lang.Object
ca.uottawa.balie.TokenConsts
public class TokenConsts
- extends java.lang.Object
Static class containing enumeration of token type value.
Also contains the service function "Is".
- Author:
- nadeaud
Method Summary |
static boolean |
Is(int pi_ToCheck,
int pi_Reference)
Checks if an integer contains a reference value (using bitwise AND). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_PUNCTUATION
public static final int TYPE_PUNCTUATION
- See Also:
- Constant Field Values
TYPE_WORD
public static final int TYPE_WORD
- See Also:
- Constant Field Values
PUNCT_PERIOD
public static final int PUNCT_PERIOD
- See Also:
- Constant Field Values
PUNCT_COMMA
public static final int PUNCT_COMMA
- See Also:
- Constant Field Values
PUNCT_EXCLAMATION
public static final int PUNCT_EXCLAMATION
- See Also:
- Constant Field Values
PUNCT_INTERROGATION
public static final int PUNCT_INTERROGATION
- See Also:
- Constant Field Values
PUNCT_SEMI_COLON
public static final int PUNCT_SEMI_COLON
- See Also:
- Constant Field Values
PUNCT_COLON
public static final int PUNCT_COLON
- See Also:
- Constant Field Values
PUNCT_OPEN_PARENTHESIS
public static final int PUNCT_OPEN_PARENTHESIS
- See Also:
- Constant Field Values
PUNCT_CLOSE_PARENTHESIS
public static final int PUNCT_CLOSE_PARENTHESIS
- See Also:
- Constant Field Values
PUNCT_QUOTE
public static final int PUNCT_QUOTE
- See Also:
- Constant Field Values
PUNCT_COMMERCIAL_AT
public static final int PUNCT_COMMERCIAL_AT
- See Also:
- Constant Field Values
PUNCT_APOSTROPHE
public static final int PUNCT_APOSTROPHE
- See Also:
- Constant Field Values
PUNCT_DASH
public static final int PUNCT_DASH
- See Also:
- Constant Field Values
PUNCT_SLASH
public static final int PUNCT_SLASH
- See Also:
- Constant Field Values
PUNCT_BACK_SLASH
public static final int PUNCT_BACK_SLASH
- See Also:
- Constant Field Values
PUNCT_MISC_ARITHMETIC
public static final int PUNCT_MISC_ARITHMETIC
- See Also:
- Constant Field Values
PUNCT_PERCENT
public static final int PUNCT_PERCENT
- See Also:
- Constant Field Values
PUNCT_OPEN_BRACKET
public static final int PUNCT_OPEN_BRACKET
- See Also:
- Constant Field Values
PUNCT_CLOSE_BRACKET
public static final int PUNCT_CLOSE_BRACKET
- See Also:
- Constant Field Values
PUNCT_INV_EXCLAMATION
public static final int PUNCT_INV_EXCLAMATION
- See Also:
- Constant Field Values
PUNCT_INV_INTERROGATION
public static final int PUNCT_INV_INTERROGATION
- See Also:
- Constant Field Values
PUNCT_AMPERSAND
public static final int PUNCT_AMPERSAND
- See Also:
- Constant Field Values
PUNCT_UNDERSCORE
public static final int PUNCT_UNDERSCORE
- See Also:
- Constant Field Values
PUNCT_TILDE
public static final int PUNCT_TILDE
- See Also:
- Constant Field Values
PUNCT_PIPE
public static final int PUNCT_PIPE
- See Also:
- Constant Field Values
PUNCT_CURRENCY
public static final int PUNCT_CURRENCY
- See Also:
- Constant Field Values
PUNCT_COPYRIGHT
public static final int PUNCT_COPYRIGHT
- See Also:
- Constant Field Values
PUNCT_TABULATION
public static final int PUNCT_TABULATION
- See Also:
- Constant Field Values
PUNCT_LINEFEED
public static final int PUNCT_LINEFEED
- See Also:
- Constant Field Values
PUNCT_NEWLINE
public static final int PUNCT_NEWLINE
- See Also:
- Constant Field Values
PUNCT_UNKNOWN
public static final int PUNCT_UNKNOWN
- See Also:
- Constant Field Values
POS_DETERMINER
public static final int POS_DETERMINER
- See Also:
- Constant Field Values
POS_NOUN
public static final int POS_NOUN
- See Also:
- Constant Field Values
POS_ADJECTIVE
public static final int POS_ADJECTIVE
- See Also:
- Constant Field Values
POS_VERB
public static final int POS_VERB
- See Also:
- Constant Field Values
POS_ADVERB
public static final int POS_ADVERB
- See Also:
- Constant Field Values
POS_CONJUNCTION
public static final int POS_CONJUNCTION
- See Also:
- Constant Field Values
POS_PREPOSITION
public static final int POS_PREPOSITION
- See Also:
- Constant Field Values
POS_PARTICLE
public static final int POS_PARTICLE
- See Also:
- Constant Field Values
POS_PRONOUN
public static final int POS_PRONOUN
- See Also:
- Constant Field Values
POS_POSSESSIVE
public static final int POS_POSSESSIVE
- See Also:
- Constant Field Values
POS_PROPER_NAME_LIKE
public static final int POS_PROPER_NAME_LIKE
- See Also:
- Constant Field Values
POS_NUMBER
public static final int POS_NUMBER
- See Also:
- Constant Field Values
POS_NUMBER_LIKE
public static final int POS_NUMBER_LIKE
- See Also:
- Constant Field Values
POS_UNKNOWN
public static final int POS_UNKNOWN
- See Also:
- Constant Field Values
Is
public static boolean Is(int pi_ToCheck,
int pi_Reference)
- Checks if an integer contains a reference value (using bitwise AND).
For instance, if the integer is: 11000000000000010000000000000001
and the reference value is: 01000000000000000000000000000000
then the reference is contained in the integer to check.
Caution, pi_Reference must refer to a unique value (only one bit set to 1)!
- Parameters:
pi_ToCheck
- The integer value to checkpi_Reference
- The reference value
- Returns:
- True if the checked value contains the reference