org.ourgrid.common.spec.semantic
Class SDFSemanticActions

java.lang.Object
  extended by org.ourgrid.common.spec.semantic.SDFSemanticActions
All Implemented Interfaces:
SemanticActions

public class SDFSemanticActions
extends java.lang.Object
implements SemanticActions

This entity is the set of actions that the GRID grammar uses to build a answer to the compilation of sources wrote in this language. Created on Jul 8, 2004


Constructor Summary
SDFSemanticActions()
          The Constructor
 
Method Summary
 void action1()
          This action: Sets the read line mode
 void action10()
          This action: Finishes the default attibutes reading process.
 void action12()
          This action: Sets the final result LIST object.
 void action14()
          This action: Sets the mode to NORMAL
 void action2()
          This action: Puts the value string for a attribute at the top of the stack.
 void action3()
          This action: Puts the name string for a attribute at the top of the stack.
 void action4()
          This action: Inserts a new attribute at the actual GUM specification or at the default map depending of the type of the attibute (GUM or default).
 void action6()
          This action: Initializes a new GUM as the actual GUM.
 void action8()
          This action: Closes the actual GUM specification and inserts it at MyGUM.
 void action9()
          This action:Prepare the environment to read and indicates that the attributes are the defaults.
 int getOperationalMode()
           
 java.util.List<GumSpec> getResult()
          Used to return the result of the compilation process, after execute all the semantic actions necessary and defined by a grammar definition.
 void performAction(java.lang.String action, Token token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDFSemanticActions

public SDFSemanticActions()
The Constructor

Method Detail

performAction

public void performAction(java.lang.String action,
                          Token token)
                   throws SemanticException
Specified by:
performAction in interface SemanticActions
Throws:
SemanticException
See Also:
SemanticActions.performAction(java.lang.String, org.ourgrid.common.spec.token.Token)

getOperationalMode

public int getOperationalMode()
Specified by:
getOperationalMode in interface SemanticActions
See Also:
SemanticActions.getOperationalMode()

getResult

public java.util.List<GumSpec> getResult()
Description copied from interface: SemanticActions
Used to return the result of the compilation process, after execute all the semantic actions necessary and defined by a grammar definition.

Specified by:
getResult in interface SemanticActions
Returns:
A list with all the objects constructed as answer of the compilation This is a generic way of giving a answer because each language needs a different answer structure.
See Also:
SemanticActions.getResult()

action1

public void action1()
This action: Sets the read line mode


action2

public void action2()
             throws SemanticException
This action: Puts the value string for a attribute at the top of the stack.

Throws:
SemanticException

action3

public void action3()
This action: Puts the name string for a attribute at the top of the stack.


action4

public void action4()
This action: Inserts a new attribute at the actual GUM specification or at the default map depending of the type of the attibute (GUM or default).


action6

public void action6()
This action: Initializes a new GUM as the actual GUM.


action8

public void action8()
             throws SemanticException
This action: Closes the actual GUM specification and inserts it at MyGUM. The close process includes the insertion of the default atributtes at the actual GUMP specification where each default attibute is only inserted if the entry for a value does not exists.

Throws:
SemanticException

action9

public void action9()
This action:Prepare the environment to read and indicates that the attributes are the defaults.


action10

public void action10()
This action: Finishes the default attibutes reading process.


action12

public void action12()
This action: Sets the final result LIST object.


action14

public void action14()
This action: Sets the mode to NORMAL