|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.template.TemplateToken
org.ujac.util.template.LogToken
public class LogToken
Name: AssertToken
Description: Represents a _log_ statement.
| Field Summary |
|---|
| Fields inherited from class org.ujac.util.template.TemplateToken |
|---|
interpreter, nextLegalAncestor, parent, position, source |
| Constructor Summary | |
|---|---|
LogToken()
Constructs a AssertToken instance with no specific attributes. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
protected TemplateToken |
cloneToken(BaseTemplateInterpreter interpreter,
TemplateTokenContainer parent)
Clones the token for caching reasons. |
void |
execute(Writer writer,
TemplateContext ctx)
Excecutes the statement token. |
String |
getTokenName()
Gets the token name. |
void |
initialize(BaseTemplateInterpreter interpreter,
char[] source,
int position,
int length)
Initializes the token. |
void |
setArgument(Operand argument,
int idx)
Sets an argument. |
String |
toString()
|
| Methods inherited from class org.ujac.util.template.TemplateToken |
|---|
checkContainer, getAncestorRules, getArgumentsAsString, getEndPosition, getIndention, getLength, getLevel, getParent, getPosition, getSource, isBodyToken, isLegalAncestor, isLegalAncestor, parseArguments, parseArguments, setLength, setLevel, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogToken()
| Method Detail |
|---|
public String getTokenName()
getTokenName in class TemplateToken
public void initialize(BaseTemplateInterpreter interpreter,
char[] source,
int position,
int length)
throws TemplateException
initialize in class TemplateTokeninterpreter - The template interpreter.source - The source code.position - The start position.length - The length of the interresting area.
TemplateException - In case the initialization failed.
public void setArgument(Operand argument,
int idx)
throws StatementException
setArgument in class TemplateTokenargument - The argument to set.idx - The argument index.
StatementException - In case the given argument is not valid.
public void execute(Writer writer,
TemplateContext ctx)
throws TemplateException,
IOException
execute in class TemplateTokenwriter - The writer to write to.ctx - The template context.
TemplateException - If the token could not be successfuly executed.
IOException - In case an output failure occurred.public String toString()
toString in class ObjectObject.toString()
protected TemplateToken cloneToken(BaseTemplateInterpreter interpreter,
TemplateTokenContainer parent)
cloneToken in class TemplateTokeninterpreter - The interpreter to use.parent - The actual parent in the cloned object tree.
public Object clone()
clone in class ObjectObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||