|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.NewFunction2.Builder
public static final class NewFunction2.Builder
The Builder class is used to generate a new NewFunction2 object using a small set of convenience methods.
| Constructor Summary | |
|---|---|
NewFunction2.Builder()
|
|
| Method Summary | |
|---|---|
NewFunction2.Builder |
addAction(Action action)
Add an action to the list of actions that will make up the body of the function. |
NewFunction2.Builder |
addArgument(String argName)
Add the name of an argument to the list of arguments that will be passed to the function. |
NewFunction2.Builder |
addArgument(String argName,
int index)
Add the name of an argument and the number of the register where it will be stored to the list of arguments that will be passed to the function. |
NewFunction2.Builder |
allocate(int count)
Set the number of registers to allocate for the function. |
NewFunction2 |
build()
Generate an NewFunction2 using the parameters defined in the Builder. |
NewFunction2.Builder |
optimize(NewFunction2.Optimization opt)
Add an Optimization to be used by the function. |
NewFunction2.Builder |
setName(String aString)
Set the name of the function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewFunction2.Builder()
| Method Detail |
|---|
public NewFunction2.Builder setName(String aString)
aString - the name of the function.
public NewFunction2.Builder allocate(int count)
count - the number of registers. Must be in the range 0..255.
public NewFunction2.Builder optimize(NewFunction2.Optimization opt)
opt - an Optimization used to speed up the function execution.
public NewFunction2.Builder addArgument(String argName)
argName - the name of the argument.
public NewFunction2.Builder addArgument(String argName,
int index)
argName - the name of the argument.index - the register number.
public NewFunction2.Builder addAction(Action action)
action - the action to add to the function body.
public NewFunction2 build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||