org.apache.velocity.runtime.parser.node
Class ASTComment
java.lang.Object
   org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.SimpleNode
       org.apache.velocity.runtime.parser.node.ASTComment
org.apache.velocity.runtime.parser.node.ASTComment
- All Implemented Interfaces: 
- Node
- public class ASTComment 
- extends SimpleNode
Represents all comments...
- Version:
- $Id: ASTComment.java 471381 2006-11-05 08:56:58Z wglass $
- Author:
- Geir Magnusson Jr.
 
| Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode | 
| children, first, id, info, invalid, last, log, parent, parser, rsvc, state | 
 
 
 
| Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode | 
| childrenAccept, dump, evaluate, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, setFirstToken, setInfo, setInvalid, toString, toString, value | 
 
 
ASTComment
public ASTComment(int id)
- Parameters:
- id-
ASTComment
public ASTComment(Parser p,
                  int id)
- Parameters:
- p-
- id-
jjtAccept
public Object jjtAccept(ParserVisitor visitor,
                        Object data)
- 
- Specified by:
- jjtAcceptin interface- Node
- Overrides:
- jjtAcceptin class- SimpleNode
 
- 
- Returns:
- The Node execution result object.
- See Also:
- SimpleNode.jjtAccept(org.apache.velocity.runtime.parser.ParserVisitor, java.lang.Object)
 
init
public Object init(InternalContextAdapter context,
                   Object data)
- We need to make sure we catch any of the dreaded MORE tokens.
 
- 
- Specified by:
- initin interface- Node
- Overrides:
- initin class- SimpleNode
 
- 
- Parameters:
- context-
- data-
- Returns:
- The data object.
- See Also:
- Node.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)
 
render
public boolean render(InternalContextAdapter context,
                      Writer writer)
               throws IOException,
                      MethodInvocationException,
                      ParseErrorException,
                      ResourceNotFoundException
- 
- Specified by:
- renderin interface- Node
- Overrides:
- renderin class- SimpleNode
 
- 
- Returns:
- True if the node rendered successfully.
- Throws:
- IOException
- MethodInvocationException
- ParseErrorException
- ResourceNotFoundException
- See Also:
- SimpleNode.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer)
 
Copyright © 2000-2007 The Apache Software Foundation. All Rights Reserved.