| java.lang.Object com.google.gwt.user.rebind.rpc.Shared
RPC_PROP_ENFORCE_TYPE_VERSIONING | final static String RPC_PROP_ENFORCE_TYPE_VERSIONING(Code) | | Property used to control whether or not the RPC system will enforce the
versioning scheme or not.
|
capitalize | static String capitalize(String name)(Code) | | Capitalizes a name.
Parameters: name - the string to be capitalized the capitalized string |
getStreamWriteMethodNameFor | static String getStreamWriteMethodNameFor(JType type)(Code) | | |
isDefaultInstantiable | static boolean isDefaultInstantiable(JClassType type)(Code) | | Returns true if the type is a non-abstract class that either
has no constructors or it has a non-private, no argument constructor.
Parameters: type - true if the type is a non-abstract class that eitherhas no constructors or it has a non-private, no argumentconstructor |
shouldEnforceTypeVersioning | static boolean shouldEnforceTypeVersioning(TreeLogger logger, PropertyOracle propertyOracle)(Code) | | Returns true if the generated code should enforce type
versioning.
|
synthesizeTopLevelClassName | static String[] synthesizeTopLevelClassName(JClassType type, String suffix)(Code) | | Computes a good name for a class related to the specified type, such that
the computed name can be a top-level class in the same package as the
specified type.
This method does not currently check for collisions between the synthesized
name and an existing top-level type in the same package. It is actually
tricky to do so, because on subsequent runs, we'll view our own generated
classes as collisions. There's probably some trick we can use in the future
to make it totally bulletproof.
Parameters: type - the name of the base type, whose name will be built upon tosynthesize a new type name Parameters: suffix - a suffix to be used to make the new synthesized type name an array of length 2 such that the first element is the packagename and the second element is the synthesized class name |
typeNeedsCast | static boolean typeNeedsCast(JType type)(Code) | | Determines whether a particular type needs to be cast to become its final
type. Primitives and Strings do not, as they are read directly as the
correct type. All other Objects need a cast, except for Object itself.
Parameters: type - the type in question true if the results of a read method must be cast,otherwise false . |
|
|