org.apache.velocity.runtime.directive
public class Include extends InputBase
Version: $Id: Include.java,v 1.26.4.1 2004/03/03 23:22:56 geirm Exp $
Field Summary | |
---|---|
String | outputMsgEnd |
String | outputMsgStart |
Method Summary | |
---|---|
String | getName()
Return name of this directive. |
int | getType()
Return type of this directive. |
void | init(RuntimeServices rs, InternalContextAdapter context, Node node)
simple init - init the tree and get the elementKey from
the AST |
void | outputErrorToStream(Writer writer, String msg)
Puts a message to the render output stream if ERRORMSG_START / END
are valid property strings. |
boolean | render(InternalContextAdapter context, Writer writer, Node node)
iterates through the argument list and renders every
argument that is appropriate. |
boolean | renderOutput(Node node, InternalContextAdapter context, Writer writer)
does the actual rendering of the included file
|
Parameters: node AST argument of type StringLiteral or Reference context valid context so we can render References writer output Writer
Returns: boolean success or failure. failures are logged