Methods Summary |
---|
public boolean | equals(org.apache.el.ValueExpressionLiteral ve)
return (ve != null && (this.value != null && ve.value != null && (this.value == ve.value || this.value
.equals(ve.value))));
|
public boolean | equals(java.lang.Object obj)
return (obj instanceof ValueExpressionLiteral && this
.equals((ValueExpressionLiteral) obj));
|
public java.lang.Class | getExpectedType()
return this.expectedType;
|
public java.lang.String | getExpressionString()
return (this.value != null) ? this.value.toString() : null;
|
public java.lang.Class | getType(javax.el.ELContext context)
return (this.value != null) ? this.value.getClass() : null;
|
public java.lang.Object | getValue(javax.el.ELContext context)
if (this.expectedType != null) {
return ELSupport.coerceToType(this.value, this.expectedType);
}
return this.value;
|
public int | hashCode()
return (this.value != null) ? this.value.hashCode() : 0;
|
public boolean | isLiteralText()
return true;
|
public boolean | isReadOnly(javax.el.ELContext context)
return true;
|
public void | readExternal(java.io.ObjectInput in)
this.value = in.readObject();
String type = in.readUTF();
if (!"".equals(type)) {
this.expectedType = ReflectionUtil.forName(type);
}
|
public void | setValue(javax.el.ELContext context, java.lang.Object value)
throw new PropertyNotWritableException(MessageFactory.get(
"error.value.literal.write", this.value));
|
public void | writeExternal(java.io.ObjectOutput out)
out.writeObject(this.value);
out.writeUTF((this.expectedType != null) ? this.expectedType.getName()
: "");
|