|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dfamaj.textproc.xwm.DefaultXwmContext
public class DefaultXwmContext
contexte de macros pour un moteur XWM, avec les primitives de base.
| Constructor Summary | |
|---|---|
DefaultXwmContext()
constructeur à vide. |
|
| Method Summary | |
|---|---|
void |
addDefinedTokens(Token[] tokens,
XwmMacroDefinition macroDefinition)
rajoute des tokens définis au contexte. |
void |
addMacro(java.lang.String macroname,
XwmMacroDefinition macroDefinition)
rajoute une macro au contexte. |
java.lang.Object |
clone()
renvoie une copie de ce XwmContext. |
int |
countDefinedTokensStartingWithToken(Token token)
renvoie le nombre de tokens définis qui commencent par le
token demandé. |
int |
countDefinedTokensStartingWithTokens(Token[] tokens)
renvoie le nombre de tokens définis qui commencent par
les
tokens demandés. |
XwmDefinedTokens |
getDefinedTokens(Token token)
renvoie le XwmDefinedTokens qui correspond au
seul token demandé, ou null s'il n'y en a pas. |
XwmDefinedTokens |
getDefinedTokens(Token[] tokens)
renvoie le XwmDefinedTokens qui correspond aux
tokens demandés, ou null s'il n'y en a pas. |
XwmMacro |
getMacro(java.lang.String macroname)
renvoie la macro avec un nom donné, ou null. |
boolean |
hasDefinedTokensStartingWithToken(Token token)
renvoie true si des tokens définis commencent
par le token demandé. |
boolean |
isTokensPrimitive(Token token)
renvoie true si le Token correspond
à la primitive "\tokens". |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultXwmContext()
| Method Detail |
|---|
public final void addDefinedTokens(Token[] tokens,
XwmMacroDefinition macroDefinition)
addDefinedTokens in interface XwmContext
public final void addMacro(java.lang.String macroname,
XwmMacroDefinition macroDefinition)
addMacro in interface XwmContextpublic final java.lang.Object clone()
clone in interface XwmContextclone in class java.lang.Objectpublic final int countDefinedTokensStartingWithToken(Token token)
countDefinedTokensStartingWithToken in interface XwmContextpublic final int countDefinedTokensStartingWithTokens(Token[] tokens)
countDefinedTokensStartingWithTokens in interface XwmContextpublic final XwmDefinedTokens getDefinedTokens(Token token)
XwmDefinedTokens qui correspond au
seul token demandé, ou null s'il n'y en a pas.
getDefinedTokens in interface XwmContextpublic final XwmDefinedTokens getDefinedTokens(Token[] tokens)
XwmDefinedTokens qui correspond aux
tokens demandés, ou null s'il n'y en a pas.
getDefinedTokens in interface XwmContextpublic final XwmMacro getMacro(java.lang.String macroname)
getMacro in interface XwmContextpublic final boolean hasDefinedTokensStartingWithToken(Token token)
hasDefinedTokensStartingWithToken in interface XwmContextpublic final boolean isTokensPrimitive(Token token)
Token correspond
à la primitive "\tokens".
isTokensPrimitive in interface XwmContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||