es.uned.compiler.intermediate
Interface IntermediateCodeBuilderIF

All Known Implementing Classes:
IntermediateCodeBuilder

public interface IntermediateCodeBuilderIF


Method Summary
 void addCuadruple(java.lang.String operation, java.lang.Object result)
          Adds a cuadruple to the intermediate code list.
 void addCuadruple(java.lang.String operation, java.lang.Object result, int first)
          Adds a cuadruple to the intermediate code list.
 void addCuadruple(java.lang.String operation, java.lang.Object result, int first, int second)
          Adds a cuadruple to the intermediate code list.
 void addCuadruple(java.lang.String operation, java.lang.Object result, int first, java.lang.Object second)
          Adds a cuadruple to the intermediate code list.
 void addCuadruple(java.lang.String operation, java.lang.Object result, java.lang.Object first)
          Adds a cuadruple to the intermediate code list.
 void addCuadruple(java.lang.String operation, java.lang.Object result, java.lang.Object first, int second)
          Adds a cuadruple to the intermediate code list.
 void addCuadruple(java.lang.String operation, java.lang.Object result, java.lang.Object first, java.lang.Object second)
          Adds a cuadruple to the intermediate code list.
 void addCuadruples(java.util.List cuadruples)
          Adds a list of cuadruple to the intermediate code list.
 java.util.List create()
          Creates the intermediate code list from added cuadruples.
 

Method Detail

addCuadruple

void addCuadruple(java.lang.String operation,
                  java.lang.Object result)
Adds a cuadruple to the intermediate code list.

Parameters:
operation - The operation.
result - The result.

addCuadruple

void addCuadruple(java.lang.String operation,
                  java.lang.Object result,
                  int first)
Adds a cuadruple to the intermediate code list.

Parameters:
operation - The operation.
first - The first operannd.
result - The result.

addCuadruple

void addCuadruple(java.lang.String operation,
                  java.lang.Object result,
                  int first,
                  int second)
Adds a cuadruple to the intermediate code list.

Parameters:
operation - The operation.
first - The first operannd.
second - The second operand.
result - The result.

addCuadruple

void addCuadruple(java.lang.String operation,
                  java.lang.Object result,
                  int first,
                  java.lang.Object second)
Adds a cuadruple to the intermediate code list.

Parameters:
operation - The operation.
first - The first operannd.
second - The second operand.
result - The result.

addCuadruple

void addCuadruple(java.lang.String operation,
                  java.lang.Object result,
                  java.lang.Object first)
Adds a cuadruple to the intermediate code list.

Parameters:
operation - The operation.
first - The first operannd.
result - The result.

addCuadruple

void addCuadruple(java.lang.String operation,
                  java.lang.Object result,
                  java.lang.Object first,
                  int second)
Adds a cuadruple to the intermediate code list.

Parameters:
operation - The operation.
first - The first operannd.
second - The second operand.
result - The result.

addCuadruple

void addCuadruple(java.lang.String operation,
                  java.lang.Object result,
                  java.lang.Object first,
                  java.lang.Object second)
Adds a cuadruple to the intermediate code list.

Parameters:
operation - The operation.
first - The first operannd.
second - The second operand.
result - The result.

addCuadruples

void addCuadruples(java.util.List cuadruples)
Adds a list of cuadruple to the intermediate code list.

Parameters:
cuadruples - The list of cuadruples to add.

create

java.util.List create()
Creates the intermediate code list from added cuadruples.

Returns:
a list of cuadruples.