es.uned.compiler.intermediate
Class LabelFactory

java.lang.Object
  extended by es.uned.compiler.intermediate.LabelFactory
All Implemented Interfaces:
LabelFactoryIF

public class LabelFactory
extends java.lang.Object
implements LabelFactoryIF

Factoria para la creación de etiquetas (Label) de código intermedio. Todos los nombres de las etiquetas llevarán el prefijo .L


Constructor Summary
LabelFactory()
          Constructor for LabelFactory.
LabelFactory(int index)
          Constructor for LabelFactory.
 
Method Summary
 Label create()
          Creates a new label.
 Label create(java.lang.String name)
          Creates a new label with the selected name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelFactory

public LabelFactory()
Constructor for LabelFactory.


LabelFactory

public LabelFactory(int index)
Constructor for LabelFactory.

Parameters:
The - seed for construct label names.
Method Detail

create

public Label create()
Creates a new label.

Specified by:
create in interface LabelFactoryIF
Returns:
A new label.

create

public Label create(java.lang.String name)
Creates a new label with the selected name.

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