Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
return (obj instanceof MethodExpressionLiteral && this.hashCode() == obj.hashCode());
|
public java.lang.String | getExpressionString()
return this.expr;
|
public javax.el.MethodInfo | getMethodInfo(javax.el.ELContext context)
return new MethodInfo(this.expr, this.expectedType, this.paramTypes);
|
public int | hashCode()
return this.expr.hashCode();
|
public java.lang.Object | invoke(javax.el.ELContext context, java.lang.Object[] params)
if (this.expectedType == null) {
return this.expr;
}
try {
return ELSupport.coerceToType(this.expr, this.expectedType);
} catch (Exception ex) {
throw new ELException (ex);
}
|
public boolean | isLiteralText()
return true;
|
public void | readExternal(java.io.ObjectInput in)
this.expr = in.readUTF();
String type = in.readUTF();
if (!"".equals(type)) {
this.expectedType = ReflectionUtil.forName(type);
}
this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in
.readObject()));
|
public void | writeExternal(java.io.ObjectOutput out)
out.writeUTF(this.expr);
out.writeUTF((this.expectedType != null) ? this.expectedType.getName()
: "");
out.writeObject(ReflectionUtil.toTypeNameArray(this.paramTypes));
|