001 package railo.runtime.interpreter.ref.op; 002 003 import railo.runtime.exp.PageException; 004 import railo.runtime.interpreter.ref.Ref; 005 import railo.runtime.interpreter.ref.RefSupport; 006 007 /** 008 * imp operation 009 */ 010 public final class EEQ extends RefSupport implements Ref { 011 012 private Ref right; 013 private Ref left; 014 015 /** 016 * constructor of the class 017 * @param left 018 * @param right 019 */ 020 public EEQ(Ref left, Ref right) { 021 this.left=left; 022 this.right=right; 023 } 024 025 /** 026 * @see railo.runtime.interpreter.ref.Ref#getValue() 027 */ 028 public Object getValue() throws PageException { 029 return left.eeq(right)?Boolean.TRUE:Boolean.FALSE; 030 //return (left.getValue()==right.getValue())?Boolean.TRUE:Boolean.FALSE; 031 } 032 033 /** 034 * @see railo.runtime.interpreter.ref.Ref#getTypeName() 035 */ 036 public String getTypeName() { 037 return "operation"; 038 } 039 }