org.codehaus.enunciate.modules.gwt
Class ClientClassnameForMethod

java.lang.Object
  extended by org.codehaus.enunciate.template.freemarker.ClientPackageForMethod
      extended by org.codehaus.enunciate.template.freemarker.ClassnameForMethod
          extended by org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod
              extended by org.codehaus.enunciate.modules.gwt.ClientClassnameForMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class ClientClassnameForMethod
extends ClientClassnameForMethod

Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ClientClassnameForMethod(java.util.Map<java.lang.String,java.lang.String> conversions)
           
 
Method Summary
 java.lang.String convert(com.sun.mirror.declaration.TypeDeclaration declaration)
          Returns the client-side package value for the given type declaration.
 java.lang.String convert(com.sun.mirror.type.TypeMirror typeMirror)
          Returns the client-side package value for the given type.
 
Methods inherited from class org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod
convert, convert
 
Methods inherited from class org.codehaus.enunciate.template.freemarker.ClassnameForMethod
convert, convert, convertPackage, convertUnwrappedObject, exec, getPackageSeparator, isJdk15, setJdk15
 
Methods inherited from class org.codehaus.enunciate.template.freemarker.ClientPackageForMethod
convert, isUseClientNameConversions, setUseClientNameConversions, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientClassnameForMethod

public ClientClassnameForMethod(java.util.Map<java.lang.String,java.lang.String> conversions)
Method Detail

convert

public java.lang.String convert(com.sun.mirror.type.TypeMirror typeMirror)
                         throws freemarker.template.TemplateModelException
Description copied from class: ClientPackageForMethod
Returns the client-side package value for the given type.

Overrides:
convert in class ClassnameForMethod
Parameters:
typeMirror - The type.
Returns:
The client-side package value for the type.
Throws:
freemarker.template.TemplateModelException - If the type mirror cannot be converted for some reason.

convert

public java.lang.String convert(com.sun.mirror.declaration.TypeDeclaration declaration)
                         throws freemarker.template.TemplateModelException
Description copied from class: ClientPackageForMethod
Returns the client-side package value for the given type declaration.

Overrides:
convert in class ClientClassnameForMethod
Parameters:
declaration - The declaration.
Returns:
The client-side package value for the declaration.
Throws:
freemarker.template.TemplateModelException