public WriteMapping(String key, Class<?> type, String getterMethod) { this(key, JavaReflectionClass.newUncachedInstance(type), getterMethod); }
public static MetaClass getArrayOf(final Class<?> clazz, int... dims) { if (dims.length == 0) { dims = new int[1]; } return JavaReflectionClass.newInstance(Array.newInstance(clazz, dims).getClass()); }
@Override public MetaClass getErased() { if (parameterizedType == null) { return this; } return new JavaReflectionClass(getEnclosedMetaObject(), true); }
@Override public MetaField[] getDeclaredFields() { return _declaredFieldCache != null ? _declaredFieldCache : (_declaredFieldCache = fromFieldArray(getEnclosedMetaObject().getDeclaredFields())); }
@Override public MetaMethod[] getDeclaredMethods() { return _declaredMethodCache != null ? _declaredMethodCache : (_declaredMethodCache = fromMethodArray(getEnclosedMetaObject().getDeclaredMethods())); }
@Override public synchronized Annotation[] getAnnotations() { if (_annotationsCache == null) { _annotationsCache = getEnclosedMetaObject().getAnnotations(); } return _annotationsCache; }
@Override public MetaClass getSuperClass() { if (_superClass != null) return _superClass; if (getGenericSuperClass() != null) { _superClass = parameterizedAs(getEnclosedMetaObject().getSuperclass(), typeParametersOf(getGenericSuperClass() .getTypeParameters())); } else { _superClass = newInstance(getEnclosedMetaObject().getSuperclass()); } return _superClass; }
Class<?> type = getEnclosedMetaObject(); if (type == null) { return null; for (final MetaMethod ifaceMethod : Arrays.asList(JavaReflectionClass.newInstance(interfaceType).getMethods())) { final String readableMethodDecl = GenUtil.getMethodString(ifaceMethod); if (!processedMethods.contains(readableMethodDecl)) {
public static MetaClass newUncachedInstance(final Class clazz, final boolean erased) { return new JavaReflectionClass(clazz, erased); }
@Override public synchronized Annotation[] getAnnotations() { if (_annotationsCache == null) { _annotationsCache = getEnclosedMetaObject().getAnnotations(); } return _annotationsCache; }
@Override public MetaClass getSuperClass() { if (_superClass != null) return _superClass; if (getGenericSuperClass() != null) { _superClass = parameterizedAs(getEnclosedMetaObject().getSuperclass(), typeParametersOf(getGenericSuperClass() .getTypeParameters())); } else { _superClass = newInstance(getEnclosedMetaObject().getSuperclass()); } return _superClass; }
Class<?> type = getEnclosedMetaObject(); if (type == null) { return null; for (final MetaMethod ifaceMethod : Arrays.asList(JavaReflectionClass.newInstance(interfaceType).getMethods())) { final String readableMethodDecl = GenUtil.getMethodString(ifaceMethod); if (!processedMethods.contains(readableMethodDecl)) {
@Override public MetaField[] getDeclaredFields() { return _declaredFieldCache != null ? _declaredFieldCache : (_declaredFieldCache = fromFieldArray(getEnclosedMetaObject().getDeclaredFields())); }
@Override public MetaMethod[] getDeclaredMethods() { return _declaredMethodCache != null ? _declaredMethodCache : (_declaredMethodCache = fromMethodArray(getEnclosedMetaObject().getDeclaredMethods())); }
public static MetaClass newUncachedInstance(final Class type) { return new JavaReflectionClass(type, false); }
public AccessorMapping(String key, Class<?> type, String setterMethod, String getterMethod) { this(key, JavaReflectionClass.newUncachedInstance(type), setterMethod, getterMethod); }
@Override public boolean isInterface() { return getEnclosedMetaObject().isInterface(); }
public static MetaClass getArrayOf(final Class<?> clazz, int... dims) { if (dims.length == 0) { dims = new int[1]; } return JavaReflectionClass.newInstance(Array.newInstance(clazz, dims).getClass()); }
@Override public MetaField[] getFields() { return _fieldCache != null ? _fieldCache : (_fieldCache = fromFieldArray(getEnclosedMetaObject().getFields())); }
@Override public MetaClass getErased() { if (parameterizedType == null) { return this; } return new JavaReflectionClass(getEnclosedMetaObject(), true); }