com.caucho.el
Class IdExpr

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.ValueExpression
          extended by com.caucho.el.Expr
              extended by com.caucho.el.IdExpr
All Implemented Interfaces:
java.io.Serializable

public class IdExpr
extends Expr

Identifier expression.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.el.Expr
L, log
 
Constructor Summary
IdExpr(java.lang.String id)
          Creates the identifier
 
Method Summary
 Expr createField(java.lang.String field)
          Creates a field reference using this expression as the base object.
 boolean equals(java.lang.Object o)
           
 java.lang.Class getType(ELContext env)
          Evaluate the expr as an object.
 java.lang.Object getValue(ELContext env)
          Evaluate the expr as an object.
 boolean isReadOnly(ELContext env)
          Returns true if the expression is read-only.
 void printCreate(WriteStream os)
          Prints the code to create an IdExpr.
 void setValue(ELContext env, java.lang.Object value)
          Evaluates the expression, setting an object.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.el.Expr
coerceToType, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, hashCode, invocationError, invoke, isConstant, isDouble, isDoubleString, isLiteralText, print, print, printEscaped, printEscapedString, setProperty, toBigDecimal, toBigInteger, toBoolean, toCharacter, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, 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

IdExpr

public IdExpr(java.lang.String id)
Creates the identifier

Method Detail

isReadOnly

public boolean isReadOnly(ELContext env)
Returns true if the expression is read-only.

Overrides:
isReadOnly in class Expr

createField

public Expr createField(java.lang.String field)
Creates a field reference using this expression as the base object.

Overrides:
createField in class Expr
Parameters:
field - the string reference for the field.

getType

public java.lang.Class getType(ELContext env)
                        throws ELException
Evaluate the expr as an object.

Overrides:
getType in class Expr
Parameters:
env - the variable environment
Returns:
the value as an object
Throws:
ELException

getValue

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

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

setValue

public void setValue(ELContext env,
                     java.lang.Object value)
              throws ELException
Evaluates the expression, setting an object.

Overrides:
setValue in class Expr
Parameters:
env - the variable environment
Throws:
ELException

printCreate

public void printCreate(WriteStream os)
                 throws java.io.IOException
Prints the code to create an IdExpr.

Overrides:
printCreate in class Expr
Parameters:
os - the stream to the *.java page
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Expr

toString

public java.lang.String toString()
Specified by:
toString in class Expr