|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpmp.AbstractMacro
pmp.macro.lex.HTMLSpecialChars
public class HTMLSpecialChars
Converts special characters to XML/HTML entities.
Recognized special characters:
mode != ENT_NOQUOTES
mode = ENT_QUOTES
Title: PMP: Macroprocessor
Description: Java macroprocessor
Copyright: Copyright (c) 2005
Field Summary | |
---|---|
static java.lang.String |
ENT_COMPAT
Translate only double quotes. |
static java.lang.String |
ENT_NOQUOTES
Do not translate single or double quotes. |
static java.lang.String |
ENT_QUOTES
Translate both single and double quotes. |
static int |
PARAMS_REQUIRED
|
Constructor Summary | |
---|---|
HTMLSpecialChars()
|
Method Summary | |
---|---|
java.lang.String |
run(Macroprocessor mp,
java.lang.String[] args)
Main method of macro. |
Methods inherited from class pmp.AbstractMacro |
---|
getRequiredParams, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PARAMS_REQUIRED
public static final java.lang.String ENT_COMPAT
public static final java.lang.String ENT_NOQUOTES
public static final java.lang.String ENT_QUOTES
Constructor Detail |
---|
public HTMLSpecialChars()
Method Detail |
---|
public java.lang.String run(Macroprocessor mp, java.lang.String[] args)
AbstractMacro
run
in class AbstractMacro
mp
- reference to Macroprocessorargs
- parameters of macro. In args[0] is stored name of macro.
Subclasses are free to modify this array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |