}
context.setPropertyResolved(true);
- return this.property(context, base, property).getType();
+ return this.property(context, base, property).getPropertyType();
}
public void setValue(ELContext context, Object base, Object property,
Method m = this.property(context, base, property).write(context);
try {
- m.invoke(base, new Object[] { value });
+ m.invoke(base, value);
} catch (IllegalAccessException e) {
throw new ELException(e);
} catch (InvocationTargetException e) {
}
}
- public BeanProperty get(ELContext ctx, String name) {
+ private BeanProperty get(ELContext ctx, String name) {
BeanProperty property = this.properties.get(name);
if (property == null) {
throw new PropertyNotFoundException(message(ctx,
}
return property;
}
+
+ public BeanProperty getBeanProperty(String name) {
+ return get(null, name);
+ }
- public Class<?> getType() {
+ private Class<?> getType() {
return type;
}
}
private Method write;
- public BeanProperty(Class owner, PropertyDescriptor descriptor) {
+ public BeanProperty(Class<?> owner, PropertyDescriptor descriptor) {
this.owner = owner;
this.descriptor = descriptor;
this.type = descriptor.getPropertyType();
}
- public Class<?> getType() {
+ public Class getPropertyType() {
return this.type;
}
&& (null == (this.write = getMethod(this.owner, descriptor.getWriteMethod())));
}
- public Method write(ELContext ctx) {
+ public Method getWriteMethod() {
+ return write(null);
+ }
+
+ public Method getReadMethod() {
+ return this.read(null);
+ }
+
+ private Method write(ELContext ctx) {
if (this.write == null) {
this.write = getMethod(this.owner, descriptor.getWriteMethod());
if (this.write == null) {
return this.write;
}
- public Method read(ELContext ctx) {
+ private Method read(ELContext ctx) {
if (this.read == null) {
this.read = getMethod(this.owner, descriptor.getReadMethod());
if (this.read == null) {
* Static constant for getBodyContent() when it is Tag dependent.
*/
- public static final String BODY_CONTENT_TAG_DEPENDENT = "TAGDEPENDENT";
+ public static final String BODY_CONTENT_TAG_DEPENDENT = "tagdependent";
/**
* Static constant for getBodyContent() when it is empty.
*/
- public static final String BODY_CONTENT_EMPTY = "EMPTY";
+ public static final String BODY_CONTENT_EMPTY = "empty";
/**
* Static constant for getBodyContent() when it is scriptless.
*
* @since 2.0
*/
- public static final String BODY_CONTENT_SCRIPTLESS = "SCRIPTLESS";
+ public static final String BODY_CONTENT_SCRIPTLESS = "scriptless";
/**
* Constructor for TagInfo from data in the JSP 1.1 format for TLD.