org.apache.velocity.runtime.directive
public abstract class Directive extends java.lang.Object implements DirectiveConstants, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private int |
column |
private int |
line |
protected RuntimeServices |
rsvc |
BLOCK, LINE
Constructor and Description |
---|
Directive() |
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
for log msg purposes
|
int |
getLine()
for log msg purposes
|
abstract java.lang.String |
getName()
Return the name of this directive
|
abstract int |
getType()
Get the directive type BLOCK/LINE
|
void |
init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
How this directive is to be initialized.
|
abstract boolean |
render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
How this directive is to be rendered
|
void |
setLocation(int line,
int column)
Allows the template location to be set
|
private int line
private int column
protected RuntimeServices rsvc
public abstract java.lang.String getName()
public abstract int getType()
public void setLocation(int line, int column)
public int getLine()
public int getColumn()
public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws java.lang.Exception
java.lang.Exception
public abstract boolean render(InternalContextAdapter context, java.io.Writer writer, Node node) throws java.io.IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException
java.io.IOException
ResourceNotFoundException
ParseErrorException
MethodInvocationException
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.