public abstract class ASTMathNode extends SimpleNode
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
strictMode |
| 构造器和说明 |
|---|
ASTMathNode(int id) |
ASTMathNode(Parser p,
int id) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.Object |
handleSpecial(java.lang.Object left,
java.lang.Object right,
InternalContextAdapter context)
Extension hook to allow special behavior by subclasses
If this method returns a non-null value, that is returned,
rather than the result of the math operation.
|
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data) |
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data) |
abstract java.lang.Number |
perform(java.lang.Number left,
java.lang.Number right,
InternalContextAdapter context)
Performs the math operation represented by this node.
|
java.lang.Object |
value(InternalContextAdapter context)
gets the two args and performs the operation on them
|
childrenAccept, dump, evaluate, execute, getChildren, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toStringpublic ASTMathNode(int id)
public ASTMathNode(Parser p, int id)
public java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws TemplateInitException
init 在接口中 Nodeinit 在类中 SimpleNodeTemplateInitExceptionNode.init(bboss.org.apache.velocity.context.InternalContextAdapter, java.lang.Object)public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept 在接口中 NodejjtAccept 在类中 SimpleNodeNode.jjtAccept(bboss.org.apache.velocity.runtime.parser.node.ParserVisitor, java.lang.Object)public java.lang.Object value(InternalContextAdapter context) throws MethodInvocationException
value 在接口中 Nodevalue 在类中 SimpleNodecontext - MethodInvocationExceptionNode.value(bboss.org.apache.velocity.context.InternalContextAdapter)protected java.lang.Object handleSpecial(java.lang.Object left,
java.lang.Object right,
InternalContextAdapter context)
public abstract java.lang.Number perform(java.lang.Number left,
java.lang.Number right,
InternalContextAdapter context)