org.apache.velocity.runtime.parser.node

Class ASTComment

Implemented Interfaces:
Node

public class ASTComment
extends SimpleNode

Represents all comments...
Version:
$Id: ASTComment.java,v 1.5.4.1 2004/03/03 23:22:58 geirm Exp $
Author:
Geir Magnusson Jr.

Field Summary

private static char[]
ZILCH
private char[]
carr

Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode

children, first, id, info, invalid, last, parent, parser, rsvc, state

Constructor Summary

ASTComment(int id)
ASTComment(Parser p, int id)

Method Summary

Object
init(InternalContextAdapter context, Object data)
We need to make sure we catch any of the dreaded MORE tokens.
Object
jjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.
boolean
render(InternalContextAdapter context, Writer writer)

Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode

childrenAccept, dump, evaluate, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getType, init, isInvalid, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, value

Field Details

ZILCH

private static final char[] ZILCH

carr

private char[] carr

Constructor Details

ASTComment

public ASTComment(int id)

ASTComment

public ASTComment(Parser p,
                  int id)

Method Details

init

public Object init(InternalContextAdapter context,
                   Object data)
            throws Exception
We need to make sure we catch any of the dreaded MORE tokens.
Specified by:
init in interface Node
Overrides:
init in interface SimpleNode

jjtAccept

public Object jjtAccept(ParserVisitor visitor,
                        Object data)
Accept the visitor. *
Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in interface SimpleNode

render

public boolean render(InternalContextAdapter context,
                      Writer writer)
            throws IOException,
                   MethodInvocationException,
                   ParseErrorException,
                   ResourceNotFoundException
Specified by:
render in interface Node
Overrides:
render in interface SimpleNode

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.