compiler
Class CompilerContext

java.lang.Object
  extended by compiler.CompilerContext

public class CompilerContext
extends java.lang.Object

Clase que implementa un "contexto" para la práctica. Permite acceder en todo momento a los gestores (manager) definidos en la arquitectura. No han de alterarse los métodos incluidos.


Constructor Summary
CompilerContext()
           
 
Method Summary
static FinalCodeFactoryIF getFinalCodeFactory()
          Returns the finalCodeFactory.
static ScopeManagerIF getScopeManager()
          Returns the scopeManager.
static SemanticErrorManager getSemanticErrorManager()
          Returns the semanticErrorManager.
static SyntaxErrorManager getSyntaxErrorManager()
          Returns the syntaxErrorManager.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilerContext

public CompilerContext()
Method Detail

getFinalCodeFactory

public static FinalCodeFactoryIF getFinalCodeFactory()
Returns the finalCodeFactory.

Returns:
Returns the finalCodeFactory.

getScopeManager

public static ScopeManagerIF getScopeManager()
Returns the scopeManager.

Returns:
Returns the scopeManager.

getSemanticErrorManager

public static SemanticErrorManager getSemanticErrorManager()
Returns the semanticErrorManager.

Returns:
Returns the semanticErrorManager.

getSyntaxErrorManager

public static SyntaxErrorManager getSyntaxErrorManager()
Returns the syntaxErrorManager.

Returns:
Returns the syntaxErrorManager.