|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.core.Instruction
public final class Instruction
Value object that represents a single instruction to be carried out. An example of an instruction is: "mycommand -opt1 val1 -opt2 val2" where the instruction name is "mycommand" and the instruction opts is"-opt1 val1 -opt2 val2".
Typically many of these are contained in an InstructionChain instance
and represent the result of parsing a chain of instructions specified at the
command line.
| Constructor Summary | |
|---|---|
Instruction(java.lang.String name,
java.lang.String opts)
See Instruction. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
The name of the instruction. |
java.lang.String |
getOpts()
The unparsed options for the instruction. |
java.lang.String |
getText()
Returns a textual representation of this instruction suitable for the command line. |
boolean |
hasOpts()
Returns true if this instruction has an options set. |
boolean |
isInitInstruction()
Returns whether or not this instruction is the one that provides application initialization parameters , i.e. |
boolean |
isOptsInstruction()
Returns whether or not this instruction is the one that provides system property options, i.e. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Instruction(java.lang.String name,
java.lang.String opts)
Instruction.
name - the name of the instructionopts - if there are no options then specify a null or an empty string
- both result in an empty string being returned from
getOpts().| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText()
public java.lang.String getName()
public java.lang.String getOpts()
public boolean hasOpts()
public boolean isInitInstruction()
public boolean isOptsInstruction()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||