|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.commandTypes.FontFamily
public class FontFamily
handles processing of the font family of commands
Field Summary | |
---|---|
private static CommandFamilyParser |
commandParser
|
private ParamType |
parameterType
|
private java.lang.String |
root
|
private TokenType |
tokType
|
private boolean |
validInCode
|
Constructor Summary | |
---|---|
FontFamily()
|
Method Summary | |
---|---|
(package private) int |
findCommandClose(ParseContext context)
Finds the rough end of a command. |
ParamType |
getParamType()
what kind of argument, if any, does the command take? |
java.lang.String |
getRoot()
get the root of the command. |
java.lang.String |
getRootSubstitute()
get a substitute string for the root. |
TokenType |
getTokenType()
|
(package private) void |
insertOriginalLexeme(TokenList tl,
java.lang.String origLexeme)
In cases where the current token is an expanded form of a shorthand command, this routine replaces the lexeme in the processed token with the original shorthand that the user wrote. |
boolean |
isAllowedInCode()
Is this command processed or ignored in a code listing? |
int |
process(GDD gdd,
ParseContext context,
TokenList tl,
boolean inCode)
Processes the command and returns the number of chars in the lexeme. |
int |
processSubstitute(ParseContext context,
TokenList tl,
boolean inCode,
GDD gdd,
java.lang.String subst)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String root
private ParamType parameterType
private boolean validInCode
private TokenType tokType
private static CommandFamilyParser commandParser
Constructor Detail |
---|
public FontFamily()
Method Detail |
---|
public int process(GDD gdd, ParseContext context, TokenList tl, boolean inCode)
process
in interface ICommand
tl
- TokenList to which the generated tokens are addedinCode
- Are we currently in a code section?gdd
- the GDDcontext
- the parsing context
public int processSubstitute(ParseContext context, TokenList tl, boolean inCode, GDD gdd, java.lang.String subst)
void insertOriginalLexeme(TokenList tl, java.lang.String origLexeme)
tl
- token listorigLexeme
- the original shorthand lexemeint findCommandClose(ParseContext context)
context
- the parsing context
public boolean isAllowedInCode()
ICommand
isAllowedInCode
in interface ICommand
public ParamType getParamType()
ICommand
getParamType
in interface ICommand
public java.lang.String getRoot()
ICommand
getRoot
in interface ICommand
public java.lang.String getRootSubstitute()
ICommand
getRootSubstitute
in interface ICommand
public TokenType getTokenType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |