return field.getInt(null);
}
}
}
else {
IMetaclass metaclass = XWT.getMetaclass(className, IConstants.XWT_NAMESPACE);
if (metaclass != null) {
Class<?> type = metaclass.getType();
if (type != null) {
String memberName = str.substring(index+1);
Field field = type.getField(memberName);
if (Modifier.isStatic(field.getModifiers())) {
return field.getInt(null);