public class Include extends InputBase
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
outputMsgEnd |
private java.lang.String |
outputMsgStart |
BLOCK, LINE
Constructor and Description |
---|
Include() |
Modifier and Type | Method and Description |
---|---|
java.lang.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
|
private void |
outputErrorToStream(java.io.Writer writer,
java.lang.String msg)
Puts a message to the render output stream if ERRORMSG_START / END
are valid property strings.
|
boolean |
render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
private boolean |
renderOutput(Node node,
InternalContextAdapter context,
java.io.Writer writer)
does the actual rendering of the included file
|
getInputEncoding
getColumn, getLine, setLocation
private java.lang.String outputMsgStart
private java.lang.String outputMsgEnd
public java.lang.String getName()
public int getType()
public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws java.lang.Exception
public boolean render(InternalContextAdapter context, java.io.Writer writer, Node node) throws java.io.IOException, MethodInvocationException, ResourceNotFoundException
render
in class Directive
java.io.IOException
MethodInvocationException
ResourceNotFoundException
private boolean renderOutput(Node node, InternalContextAdapter context, java.io.Writer writer) throws java.io.IOException, MethodInvocationException, ResourceNotFoundException
node
- AST argument of type StringLiteral or Referencecontext
- valid context so we can render Referenceswriter
- output Writerjava.io.IOException
MethodInvocationException
ResourceNotFoundException
private void outputErrorToStream(java.io.Writer writer, java.lang.String msg) throws java.io.IOException
java.io.IOException
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.