org.apache.velocity.runtime.parser.node
Class ASTMulNode
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTMathNode
org.apache.velocity.runtime.parser.node.ASTMulNode
- All Implemented Interfaces:
- Node, Renderable
public class ASTMulNode
- extends ASTMathNode
Handles multiplication
Please look at the Parser.jjt file which is
what controls the generation of this class.
- Version:
- $Id: ASTMulNode.java 691048 2008-09-01 20:26:11Z nbubna $
- Author:
- Will Glass-Husain, Peter Romianowski, Jason van Zyl, 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, templateName |
Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode |
childrenAccept, dump, evaluate, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toString |
ASTMulNode
public ASTMulNode(int id)
- Parameters:
id
-
ASTMulNode
public ASTMulNode(Parser p,
int id)
- Parameters:
p
- id
-
perform
public Number perform(Number left,
Number right,
InternalContextAdapter context)
- Description copied from class:
ASTMathNode
- Performs the math operation represented by this node.
- Specified by:
perform
in class ASTMathNode
Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.