org.apache.velocity.runtime.parser.node
Class NodeUtils
java.lang.Object
org.apache.velocity.runtime.parser.node.NodeUtils
public class NodeUtils
- extends Object
Utilities for dealing with the AST node structure.
- Version:
- $Id: NodeUtils.java 1040976 2010-12-01 12:15:39Z apetrelli $
- Author:
- Jason van Zyl, Geir Magnusson Jr.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeUtils
public NodeUtils()
getSpecialText
public static StringBuilder getSpecialText(Token t)
- Collect all the s that
are carried along with a token. Special
tokens do not participate in parsing but
can still trigger certain lexical actions.
In some cases you may want to retrieve these
special tokens, this is simply a way to
extract them.
- Parameters:
t - the Token
- Returns:
- StrBuilder with the special tokens.
- Since:
- 2.0.0
tokenLiteral
public static String tokenLiteral(Token t)
- complete node literal
- Parameters:
t -
- Returns:
- A node literal.
Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.