private void generateAndWriteToDiscoveredDirs(final GeneratorContext context, final String source) { OutputDirectoryUtil .generateClassFileInDiscoveredDirs( context, SERIALIZER_PACKAGE_NAME, SERIALIZER_CLASS_NAME, SOURCE_OUTPUT_TMP, source); }
public static MetaMethod findGetterMethod(final MetaClass cls, final String key) { MetaMethod metaMethod = _findGetterMethod("get", cls, key); if (metaMethod != null) return metaMethod; metaMethod = _findGetterMethod("is", cls, key); return metaMethod; }
public static void ensureMarshallerFieldCreated(final ClassStructureBuilder<?> classStructureBuilder, final MetaClass marshallerForType, final MetaClass type, final BlockBuilder<?> initMethod) { ensureMarshallerFieldCreated(classStructureBuilder, marshallerForType, type, initMethod, null); }
public static String getVarName(final String clazz) { return normalizeName(clazz); }
static DiscoveryContext create() { return new DiscoveryContextImpl(); } }
/** * Returns the element type of the given metaclass under the following conditions: * <ul> * <li>toType has a single type parameter * <li>toType's type parameter is not a wildcard * <li>toType's type parameter is a non-abstract (concrete) type * <li>toType's type parameter is not java.lang.Object * </ul> * * @param toType * The type to check for a known concrete collection element type. * @return The concrete element type meeting all above-mentioned criteria, or null if one or more * of the criteria fails. */ public static MetaClass getConcreteElementType(final MetaClass toType) { return getConcreteTypeParameter(toType, 0, 1); }
public static Set<File> findAllMatching(final String fileName, final File from) { final HashSet<File> matching = new HashSet<File>(); _findAllMatching(matching, fileName, from); return matching; }
private String createDemarshallerIfNeeded(final MetaClass type) { if (done) { return getVarName(type); } return addArrayMarshaller(type.asBoxed(), target == MarshallerOutputTarget.GWT); }
public static Set<File> findMatchingOutputDirectoryByModel(final Map<String, String> toMatch, final File from) { final HashSet<File> matching = new HashSet<File>(); _findMatchingOutputDirectoryByModel(matching, toMatch, from); return matching; }
private static void writeServerSideMarshallerToDiscoveredOutputDirs(final GeneratorContext context, final String source) { OutputDirectoryUtil.generateClassFileInDiscoveredDirs(context, SERVER_MARSHALLER_PACKAGE_NAME, SERVER_MARSHALLER_CLASS_NAME, sourceOutputTemp, source); }
public static String getArrayVarName(final String clazz) { return ARRAY_VAR_PREFIX + normalizeName(clazz); }
public static MetaMethod findGetterMethod(final MetaClass cls, final String key) { MetaMethod metaMethod = _findGetterMethod("get", cls, key); if (metaMethod != null) return metaMethod; metaMethod = _findGetterMethod("is", cls, key); return metaMethod; }
public static void ensureMarshallerFieldCreated(final ClassStructureBuilder<?> classStructureBuilder, final MetaClass marshallerForType, final MetaClass type, final BlockBuilder<?> initMethod) { ensureMarshallerFieldCreated(classStructureBuilder, marshallerForType, type, initMethod, null); }
static DiscoveryContext create() { return new DiscoveryContextImpl(); } }
/** * Returns the element type of the given metaclass under the following conditions: * <ul> * <li>toType has a single type parameter * <li>toType's type parameter is not a wildcard * <li>toType's type parameter is a non-abstract (concrete) type * <li>toType's type parameter is not java.lang.Object * </ul> * * @param toType * The type to check for a known concrete collection element type. * @return The concrete element type meeting all above-mentioned criteria, or null if one or more * of the criteria fails. */ public static MetaClass getConcreteElementType(final MetaClass toType) { return getConcreteTypeParameter(toType, 0, 1); }
public static Set<File> findAllMatching(final String fileName, final File from) { final HashSet<File> matching = new HashSet<File>(); _findAllMatching(matching, fileName, from); return matching; }
private String createDemarshallerIfNeeded(final MetaClass type) { if (done) { return getVarName(type); } return addArrayMarshaller(type.asBoxed(), target == MarshallerOutputTarget.GWT); }
private static void writeServerSideMarshallerToDiscoveredOutputDirs(final GeneratorContext context, final String source) { OutputDirectoryUtil.generateClassFileInDiscoveredDirs(context, SERVER_MARSHALLER_PACKAGE_NAME, SERVER_MARSHALLER_CLASS_NAME, sourceOutputTemp, source); }
public static String getArrayVarName(final String clazz) { return ARRAY_VAR_PREFIX + normalizeName(clazz); }
public static String getVarName(final String clazz) { return normalizeName(clazz); }