|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pz.platypus.commands.CodeWithOptions
public abstract class CodeWithOptions
Abstract class for handling code listing.
| Field Summary | |
|---|---|
protected java.lang.String[] |
params
command parameters: starting line#, which line #s to print |
protected java.lang.String |
root
|
protected java.lang.String |
tokenParam
the parameter data for the token |
| Constructor Summary | |
|---|---|
CodeWithOptions()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getRoot()
|
private void |
invalidParameterErrMessage(GDD gdd,
Source source)
|
private void |
invalidSkipLineNumberErrMessage(GDD gdd,
Source source)
|
private void |
invalidStartingLineNumberErrMessage(GDD gdd,
Source source)
|
protected int |
parseSkipLineNumber(java.lang.String num,
GDD gdd,
Source source)
Extracts the line numbers on which to print line numbers in the listings. |
protected int |
parseStartingLineNumber(java.lang.String num,
GDD gdd,
Source source)
Extracts the starting line number from the passed parameters. |
protected int |
preProcess(OutputContextable context,
Token tok,
int tokNum)
Basic command housekeeing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String root
protected java.lang.String tokenParam
protected java.lang.String[] params
| Constructor Detail |
|---|
public CodeWithOptions()
| Method Detail |
|---|
protected int preProcess(OutputContextable context,
Token tok,
int tokNum)
context - the document data containertok - the token and parameterstokNum - the token number
protected int parseSkipLineNumber(java.lang.String num,
GDD gdd,
Source source)
num - the passed parameter, as a stringgdd - Global document data (used primarily for accessing literals engine)source - where the parameter was specified
protected int parseStartingLineNumber(java.lang.String num,
GDD gdd,
Source source)
num - the passed parameter, as a stringgdd - Global document data (used primarily for accessing literals engine)source - where the parameter was specified
private void invalidSkipLineNumberErrMessage(GDD gdd,
Source source)
private void invalidStartingLineNumberErrMessage(GDD gdd,
Source source)
private void invalidParameterErrMessage(GDD gdd,
Source source)
public java.lang.String getRoot()
|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||