public class JUtils extends Object
| Constructor and Description |
|---|
JUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
camelCase(String name)
Format a prefixed name as camelCase.
|
static String |
camelCase(String prefix,
String name)
Format a prefixed name as camelCase.
|
static String |
enumConst(net.morimekta.providence.PEnumValue value) |
static long |
generateSerialVersionUID(net.morimekta.providence.descriptor.PMessageDescriptor<?> type) |
static String |
getClassName(net.morimekta.providence.descriptor.PDeclaredDescriptor<?> type) |
static String |
getHazelcastClassId(net.morimekta.providence.descriptor.PMessageDescriptor<?> type)
Method to get the message constant for the thrift struct.
|
static String |
getHazelcastClassId(String name)
Method to get the message constant for the thrift struct.
|
static String |
getHazelcastFactory(net.morimekta.providence.descriptor.PMessageDescriptor<?> type)
Method to get the thrift file as a class name for a hazelcast factory.
|
static String |
getInterfaceName(net.morimekta.providence.descriptor.PMessageDescriptor<?> message) |
static String |
getJavaPackage(net.morimekta.providence.reflect.contained.CProgram document) |
static String |
getPackageClassPath(String javaPackage) |
static String |
macroCase(String name)
Format a prefixed name as MACRO_CASE.
|
public static long generateSerialVersionUID(@Nonnull net.morimekta.providence.descriptor.PMessageDescriptor<?> type)
public static String getInterfaceName(net.morimekta.providence.descriptor.PMessageDescriptor<?> message)
public static String getClassName(@Nonnull net.morimekta.providence.descriptor.PDeclaredDescriptor<?> type)
public static String getJavaPackage(@Nonnull net.morimekta.providence.reflect.contained.CProgram document) throws net.morimekta.providence.generator.GeneratorException
net.morimekta.providence.generator.GeneratorExceptionpublic static String getPackageClassPath(@Nonnull String javaPackage) throws net.morimekta.providence.generator.GeneratorException
net.morimekta.providence.generator.GeneratorExceptionpublic static String getHazelcastFactory(@Nonnull net.morimekta.providence.descriptor.PMessageDescriptor<?> type)
type - PStructDescriptor with the information to fetch thrift info from.public static String getHazelcastClassId(net.morimekta.providence.descriptor.PMessageDescriptor<?> type)
type - PStructDescriptor with the information to fetch message info from.public static String getHazelcastClassId(String name)
name - String with the class name to create format from.public static String camelCase(String name)
name - The name to camel-case.public static String camelCase(String prefix, String name)
prefix - Name prefix, not modified.name - The name to camel-case.public static String macroCase(String name)
name - The name to macro-case.public static String enumConst(net.morimekta.providence.PEnumValue value)
Copyright © 2015–2020 morimekta.net. All rights reserved.