|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.spec.semantic.CommonSemanticAnalyzer
public class CommonSemanticAnalyzer
This implementation of the semantic analyzer uses more then one language to compile. Thats why uses SemanticActions as sets to each different language actions.
Constructor Summary | |
---|---|
CommonSemanticAnalyzer(SemanticActions actions)
The constructor. |
Method Summary | |
---|---|
int |
getOperationMode()
Returns a integer code that can be used to signalize some functional modes. |
void |
performAction(java.lang.String action,
Token token)
This is the interface method for the semantic actions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonSemanticAnalyzer(SemanticActions actions)
actions
- The set of the actions that will be used for a determined
language.Method Detail |
---|
public void performAction(java.lang.String action, Token token) throws SemanticException
SemanticAnalyzer
performAction
in interface SemanticAnalyzer
action
- The name of the action. It is generally a integer number.token
- The token that will be used at action
SemanticException
- If the action does not exists or any other
problem happens.SemanticAnalyzer.performAction(java.lang.String,
org.ourgrid.common.spec.token.Token)
public int getOperationMode()
SemanticAnalyzer
getOperationMode
in interface SemanticAnalyzer
SemanticAnalyzer.getOperationMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |