public class DelegatingClientOracle extends ClientOracle
| Constructor and Description |
|---|
DelegatingClientOracle(ClientOracle delegate) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.rpc.client.ast.CommandSink |
createCommandSink(java.io.OutputStream out)
Create a CommandSink that can encode a payload for the client.
|
java.lang.String |
createUnusedIdent(java.lang.String ident)
Returns an identifier that does not conflict with any symbols defined in
the client.
|
CastableTypeData |
getCastableTypeData(java.lang.Class<?> clazz)
Returns the Json castableType data for a given type.
|
java.lang.String |
getFieldId(java.lang.Class<?> clazz,
java.lang.String fieldName)
Given a base type and the unobfuscated field name, find the obfuscated name
for the field in the client.
|
java.lang.String |
getFieldId(java.lang.Enum<?> value)
Return the field name for a given enum value.
|
java.lang.String |
getFieldId(java.lang.String className,
java.lang.String fieldName)
This is similar to
ClientOracle.getFieldId(Class, String) but does not search
supertypes. |
Pair<java.lang.Class<?>,java.lang.String> |
getFieldName(java.lang.Class<?> clazz,
java.lang.String fieldId)
Return the name of a field from a client-side id.
|
java.lang.String |
getMethodId(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... args)
Returns the name of the top-level function which implements the named
method that takes the exact arguments specified.
|
java.lang.String |
getMethodId(java.lang.String className,
java.lang.String methodName,
java.lang.String... jsniArgTypes)
This is similar to
ClientOracle.getMethodId(Class, String, Class...) but does
not search supertypes. |
java.lang.reflect.Field[] |
getOperableFields(java.lang.Class<?> clazz)
Returns the fields of a given class that should be serialized.
|
int |
getQueryId(java.lang.Class<?> clazz)
Returns the assigned castability queryId of a given type.
|
java.lang.String |
getSeedName(java.lang.Class<?> clazz)
Returns the name of the top-level function that is used as the seed
function for a given type.
|
java.lang.String |
getTypeName(java.lang.String seedName)
Returns the deobfuscated name of a type based on the name of the type's
seed function.
|
boolean |
isScript()
Indicates whether or not the remote client is running as compiled script.
|
public DelegatingClientOracle(ClientOracle delegate)
public com.google.gwt.rpc.client.ast.CommandSink createCommandSink(java.io.OutputStream out)
throws java.io.IOException
ClientOraclecreateCommandSink in class ClientOracleout - the OutputStream to which the output will be writtenjava.io.IOException - if the CommandSink cannot write to the OutputStreampublic java.lang.String createUnusedIdent(java.lang.String ident)
ClientOraclecreateUnusedIdent in class ClientOraclepublic CastableTypeData getCastableTypeData(java.lang.Class<?> clazz)
ClientOraclegetCastableTypeData in class ClientOraclepublic java.lang.String getFieldId(java.lang.Class<?> clazz,
java.lang.String fieldName)
ClientOraclegetFieldId in class ClientOraclepublic java.lang.String getFieldId(java.lang.Enum<?> value)
ClientOraclegetFieldId in class ClientOraclepublic java.lang.String getFieldId(java.lang.String className,
java.lang.String fieldName)
ClientOracleClientOracle.getFieldId(Class, String) but does not search
supertypes. It is intended to be used to access "magic" GWT types.getFieldId in class ClientOraclepublic Pair<java.lang.Class<?>,java.lang.String> getFieldName(java.lang.Class<?> clazz, java.lang.String fieldId)
ClientOraclegetFieldName in class ClientOraclepublic java.lang.String getMethodId(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... args)
ClientOraclegetMethodId in class ClientOraclepublic java.lang.String getMethodId(java.lang.String className,
java.lang.String methodName,
java.lang.String... jsniArgTypes)
ClientOracleClientOracle.getMethodId(Class, String, Class...) but does
not search supertypes. It is intended to be used to access "magic" GWT
types.getMethodId in class ClientOraclepublic java.lang.reflect.Field[] getOperableFields(java.lang.Class<?> clazz)
ClientOraclegetOperableFields in class ClientOraclepublic int getQueryId(java.lang.Class<?> clazz)
ClientOraclegetQueryId in class ClientOraclepublic java.lang.String getSeedName(java.lang.Class<?> clazz)
ClientOraclegetSeedName in class ClientOraclepublic java.lang.String getTypeName(java.lang.String seedName)
ClientOraclegetTypeName in class ClientOraclepublic boolean isScript()
ClientOracleisScript in class ClientOracle