|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uned.compiler.intermediate.IntermediateCodeBuilder
public class IntermediateCodeBuilder
Clase de ayuda para la construción de cuartetos (Cuadruple)
Constructor Summary | |
---|---|
IntermediateCodeBuilder(ScopeIF scope)
Constructor for IntermediateCodeBuilder. |
Method Summary | |
---|---|
void |
addCuadruple(Cuadruple cuadruple)
Adds a cuadruple to the intermediate code list. |
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. |
ScopeIF |
getScope()
Returns the scope. |
void |
setScope(ScopeIF scope)
Sets The scope. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntermediateCodeBuilder(ScopeIF scope)
Method Detail |
---|
public void addCuadruple(Cuadruple cuadruple)
cuadruple
- The cuadruple to add.public void addCuadruple(java.lang.String operation, java.lang.Object result)
addCuadruple
in interface IntermediateCodeBuilderIF
operation
- The operation.result
- The result.public void addCuadruple(java.lang.String operation, java.lang.Object result, int first)
addCuadruple
in interface IntermediateCodeBuilderIF
operation
- The operation.first
- The first operannd.result
- The result.public void addCuadruple(java.lang.String operation, java.lang.Object result, int first, int second)
addCuadruple
in interface IntermediateCodeBuilderIF
operation
- The operation.first
- The first operannd.second
- The second operand.result
- The result.public void addCuadruple(java.lang.String operation, java.lang.Object result, int first, java.lang.Object second)
addCuadruple
in interface IntermediateCodeBuilderIF
operation
- The operation.first
- The first operannd.second
- The second operand.result
- The result.public void addCuadruple(java.lang.String operation, java.lang.Object result, java.lang.Object first)
addCuadruple
in interface IntermediateCodeBuilderIF
operation
- The operation.first
- The first operannd.result
- The result.public void addCuadruple(java.lang.String operation, java.lang.Object result, java.lang.Object first, int second)
addCuadruple
in interface IntermediateCodeBuilderIF
operation
- The operation.first
- The first operannd.second
- The second operand.result
- The result.public void addCuadruple(java.lang.String operation, java.lang.Object result, java.lang.Object first, java.lang.Object second)
addCuadruple
in interface IntermediateCodeBuilderIF
operation
- The operation.first
- The first operannd.second
- The second operand.result
- The result.public void addCuadruples(java.util.List cuadruples)
addCuadruples
in interface IntermediateCodeBuilderIF
cuadruples
- The list of cuadruples to add.public java.util.List create()
create
in interface IntermediateCodeBuilderIF
public ScopeIF getScope()
public void setScope(ScopeIF scope)
scope
- The scope to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |