|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.spec.CodesTable
public class CodesTable
This entity is used to manage the correct use of the common.token package entities. More specifically it will manage the type of each "word" (better saying token) read from source.
Field Summary | |
---|---|
static int |
LANGUAGETYPES
|
static int |
OPERATOR
|
static int |
PARENTHERIC
|
static int |
POINTING
|
static int |
RESERVED_WORD
|
static java.lang.String |
STRING
|
Method Summary | |
---|---|
int |
getCode(java.lang.String key)
Executes a search at the table by the given symbol key. |
static CodesTable |
getInstance()
Gets an instace of the CodesTable entity. |
java.util.Map<java.lang.String,java.lang.Integer> |
getLanguageTypes()
A collection with language types. |
java.util.Map<java.lang.String,java.lang.Integer> |
getOperators()
A collection with all the Operator symbols. |
java.util.Map<java.lang.String,java.lang.Integer> |
getParenthetics()
A collection with all the Parenthetic symbols. |
java.util.Map<java.lang.String,java.lang.Integer> |
getPointing()
A collection with all the Punctuation symbols. |
java.util.Map<java.lang.String,java.lang.Integer> |
getReservedWords()
A collection with all the Reserved words. |
int |
getType(java.lang.String key)
Returns the type of the symbol received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STRING
public static final int RESERVED_WORD
public static final int OPERATOR
public static final int PARENTHERIC
public static final int POINTING
public static final int LANGUAGETYPES
Method Detail |
---|
public static CodesTable getInstance()
public java.util.Map<java.lang.String,java.lang.Integer> getReservedWords()
public java.util.Map<java.lang.String,java.lang.Integer> getOperators()
public java.util.Map<java.lang.String,java.lang.Integer> getParenthetics()
public java.util.Map<java.lang.String,java.lang.Integer> getLanguageTypes()
public java.util.Map<java.lang.String,java.lang.Integer> getPointing()
public int getCode(java.lang.String key)
key
- The symbol where the code is wanted.
public int getType(java.lang.String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |