KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > el > parser > AstDiv


1 /* Generated By:JJTree: Do not edit this line. AstDiv.java */
2
3 package org.apache.el.parser;
4
5 import javax.el.ELException;
6
7 import org.apache.el.lang.ELArithmetic;
8 import org.apache.el.lang.EvaluationContext;
9
10
11 /**
12  * @author Jacob Hookom [jacob@hookom.net]
13  * @version $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $
14  */

15 public final class AstDiv extends ArithmeticNode {
16     public AstDiv(int id) {
17         super(id);
18     }
19
20     public Object JavaDoc getValue(EvaluationContext ctx)
21             throws ELException {
22         Object JavaDoc obj0 = this.children[0].getValue(ctx);
23         Object JavaDoc obj1 = this.children[1].getValue(ctx);
24         return ELArithmetic.divide(obj0, obj1);
25     }
26 }
27
Popular Tags