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 import railo.runtime.op.Operator; 007 008 /** 009 * imp operation 010 */ 011 public final class LTE extends RefSupport implements Ref { 012 013 private Ref right; 014 private Ref left; 015 016 /** 017 * constructor of the class 018 * @param left 019 * @param right 020 */ 021 public LTE(Ref left, Ref right) { 022 this.left=left; 023 this.right=right; 024 } 025 026 /** 027 * @see railo.runtime.interpreter.ref.Ref#getValue() 028 */ 029 public Object getValue() throws PageException { 030 return Operator.compare(left.getValue(),right.getValue())<=0?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 }