com.caucho.el
Class AbstractBooleanExpr

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.ValueExpression
          extended by com.caucho.el.Expr
              extended by com.caucho.el.AbstractBooleanExpr
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BooleanExpr, BooleanLiteral, CmpExpr, EqExpr, GeExpr, GtExpr, LeExpr, LtExpr, MatchesExpr, NeExpr

public abstract class AbstractBooleanExpr
extends Expr

Base implementation for a boolean-valued expression.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.el.Expr
L, log
 
Constructor Summary
AbstractBooleanExpr()
           
 
Method Summary
abstract  boolean evalBoolean(ELContext env)
          Evaluate the expression as a boolean
 double evalDouble(ELContext env)
          Evaluate the expression as a double
 long evalLong(ELContext env)
          Evaluate the expression as a long
 java.lang.String evalString(ELContext env)
          Evaluate the expression as a string
 java.lang.Object getValue(ELContext env)
          Evaluate the expression as an object.
 boolean print(WriteStream out, ELContext env, boolean isEscaped)
          Evalutes directly to the output.
 
Methods inherited from class com.caucho.el.Expr
coerceToType, createField, createField, createMethod, equals, error, evalBigDecimal, evalBigInteger, evalCharacter, evalObject, evalPeriod, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, hashCode, invocationError, invoke, isConstant, isDouble, isDoubleString, isLiteralText, isReadOnly, print, printCreate, printEscaped, printEscapedString, setProperty, setValue, toBigDecimal, toBigInteger, toBoolean, toCharacter, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toString, toStringWithNull
 
Methods inherited from class javax.el.ValueExpression
getValueReference
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractBooleanExpr

public AbstractBooleanExpr()
Method Detail

evalBoolean

public abstract boolean evalBoolean(ELContext env)
                             throws ELException
Evaluate the expression as a boolean

Overrides:
evalBoolean in class Expr
Parameters:
env - the variable environment
Returns:
the value as a booleanstring
Throws:
ELException

getValue

public java.lang.Object getValue(ELContext env)
                          throws ELException
Evaluate the expression as an object.

Specified by:
getValue in class Expr
Parameters:
env - the variable environment
Returns:
the value as an object
Throws:
ELException

evalString

public java.lang.String evalString(ELContext env)
                            throws ELException
Evaluate the expression as a string

Overrides:
evalString in class Expr
Parameters:
env - the variable environment
Returns:
the value as a string
Throws:
ELException

evalLong

public long evalLong(ELContext env)
              throws ELException
Evaluate the expression as a long

Overrides:
evalLong in class Expr
Parameters:
env - the variable environment
Returns:
the value as a long
Throws:
ELException

evalDouble

public double evalDouble(ELContext env)
                  throws ELException
Evaluate the expression as a double

Overrides:
evalDouble in class Expr
Parameters:
env - the variable environment
Returns:
the value of the expression as a double
Throws:
ELException

print

public boolean print(WriteStream out,
                     ELContext env,
                     boolean isEscaped)
              throws java.io.IOException,
                     ELException
Evalutes directly to the output.

Overrides:
print in class Expr
Parameters:
out - the output stream
env - the variable environment
isEscaped - if true, escape reserved XML
Returns:
true if the object is null, otherwise false
Throws:
java.io.IOException
ELException