|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.webmacro.engine.Block
A Block is essentially a Macro[] that knows how to write itself out as a String.
| Constructor Summary | |
protected |
Block(java.lang.String name,
java.lang.String[] strings,
Macro[] macros,
int[] lineNos,
int[] colNos)
A Block must be constructed from a BlockBuilder. |
| Method Summary | |
void |
accept(TemplateVisitor v)
|
java.lang.Object |
evaluate(Context context)
same as out but returns a String |
BlockBuilder.BlockIterator |
getBlockIterator()
|
int |
getColNo(int i)
|
int |
getLineNo(int i)
|
java.lang.String |
getTemplateName()
|
void |
setTemplateName(java.lang.String name)
|
void |
write(FastWriter out,
Context context)
Interpret the directive and write it out, using the values in the supplied context as appropriate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Block(java.lang.String name,
java.lang.String[] strings,
Macro[] macros,
int[] lineNos,
int[] colNos)
| Method Detail |
public final void write(FastWriter out,
Context context)
throws PropertyException,
java.io.IOException
write in interface MacroPropertyException - if required data was missing from context
java.io.IOException - if we could not successfully write to outpublic java.lang.String getTemplateName()
public void setTemplateName(java.lang.String name)
public int getLineNo(int i)
public int getColNo(int i)
public BlockBuilder.BlockIterator getBlockIterator()
public final void accept(TemplateVisitor v)
accept in interface Visitable
public final java.lang.Object evaluate(Context context)
throws PropertyException
evaluate in interface MacroPropertyException - if required data was missing from context
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||