|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.core.internal.InstructionChainArgs
public final class InstructionChainArgs
Helper for InstructionChain.InstructionChain(String[]).
As an alternative to using the factory pattern to create an instance of InstructionChain based on a String array, we just add a constructor to InstructionChain that takes a string array. This class is then used as a helper to that constructor so we still get the benefit of encapsulating all the complexity into this class, but we still get to call the constructor as normal.
| Constructor Summary | |
|---|---|
InstructionChainArgs(InstructionChain chain,
java.lang.String[] args)
Create with specified information used to initialize a project chain. |
|
| Method Summary | |
|---|---|
void |
initChain()
Initializes the given InstructionChain instance based on the
specified command line args argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstructionChainArgs(InstructionChain chain,
java.lang.String[] args)
chain - the chain being initializedargs - the arguments being parsed to initialize the chain| Method Detail |
|---|
public void initChain()
InstructionChain instance based on the
specified command line args argument.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||