|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.Symbol
public class Symbol
Entry in command table for all symbols and special characters (such as foreign characters)
Field Summary | |
---|---|
protected ParamType |
parameterType
what kind of parameter does this command take, if any? |
protected java.lang.String |
root
the command root |
protected java.lang.String |
rootSubstitute
the substitute root, if this command is shorthand for another |
protected boolean |
validInCode
is this command executed in a listing or code section? |
Constructor Summary | |
---|---|
Symbol(java.lang.String symRoot)
|
Method Summary | |
---|---|
ParamType |
getParamType()
required by Commandable, but not used by symbols |
java.lang.String |
getRoot()
get the root of the command/symbol. |
java.lang.String |
getRootSubstitute()
required by commandable, but not used by symbols |
boolean |
isAllowedInCode()
Is this command processed or ignored in a code listing? |
int |
process(GDD gdd,
ParseContext context,
TokenList tl,
boolean inCode)
method for processing this symbol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ParamType parameterType
protected java.lang.String root
protected java.lang.String rootSubstitute
protected boolean validInCode
Constructor Detail |
---|
public Symbol(java.lang.String symRoot)
Method Detail |
---|
public java.lang.String getRoot()
getRoot
in interface ICommand
public java.lang.String getRootSubstitute()
getRootSubstitute
in interface ICommand
public ParamType getParamType()
getParamType
in interface ICommand
public boolean isAllowedInCode()
isAllowedInCode
in interface ICommand
public int process(GDD gdd, ParseContext context, TokenList tl, boolean inCode)
process
in interface ICommand
gdd
- the GDDtl
- TokenList to which the generated tokens are addedinCode
- Are we currently in a code section?context
- the parsing context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |