es.uned.compiler.intermediate
Class TemporalFactory

java.lang.Object
  extended by es.uned.compiler.intermediate.TemporalFactory
All Implemented Interfaces:
TemporalFactoryIF

public class TemporalFactory
extends java.lang.Object
implements TemporalFactoryIF

Factoria para la creación de temporales (Temporal) de código intermedio. Todos los nombres de los temporales llevarán el prefijo .T


Constructor Summary
TemporalFactory(ScopeIF scope)
          Constructor for TemporalFactory.
 
Method Summary
 Temporal create()
          Creates a new temporal.
 Temporal create(java.lang.String name)
          Creates a new temporal with the selected name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporalFactory

public TemporalFactory(ScopeIF scope)
Constructor for TemporalFactory.

Method Detail

create

public Temporal create()
Creates a new temporal.

Specified by:
create in interface TemporalFactoryIF
Returns:
A new temporal.

create

public Temporal create(java.lang.String name)
Creates a new temporal with the selected name.

Specified by:
create in interface TemporalFactoryIF
Parameters:
name - The name of the temporal.
Returns:
A new temporal.