org.codehaus.enunciate.modules.ruby
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.ruby.ClientClassnameForMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class ClientClassnameForMethod
extends ClientClassnameForMethod

Conversion from java types to Ruby types.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ClientClassnameForMethod(Map<String,String> conversions)
           
 
Method Summary
 String convert(Accessor accessor)
           
 String convert(com.sun.mirror.declaration.TypeDeclaration declaration)
           
 String convert(com.sun.mirror.type.TypeMirror typeMirror)
           
protected  String getPackageSeparator()
           
protected  boolean isCollection(com.sun.mirror.declaration.TypeDeclaration declaration)
           
protected  boolean isMap(com.sun.mirror.declaration.TypeDeclaration declaration)
           
 
Methods inherited from class org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod
convert
 
Methods inherited from class org.codehaus.enunciate.template.freemarker.ClassnameForMethod
convert, convert, convertPackage, convertUnwrappedObject, exec, 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(Map<String,String> conversions)
Method Detail

convert

public String convert(com.sun.mirror.declaration.TypeDeclaration declaration)
               throws freemarker.template.TemplateModelException
Overrides:
convert in class ClientClassnameForMethod
Throws:
freemarker.template.TemplateModelException

convert

public String convert(Accessor accessor)
               throws freemarker.template.TemplateModelException
Overrides:
convert in class ClientClassnameForMethod
Throws:
freemarker.template.TemplateModelException

isCollection

protected boolean isCollection(com.sun.mirror.declaration.TypeDeclaration declaration)

isMap

protected boolean isMap(com.sun.mirror.declaration.TypeDeclaration declaration)

convert

public String convert(com.sun.mirror.type.TypeMirror typeMirror)
               throws freemarker.template.TemplateModelException
Overrides:
convert in class ClassnameForMethod
Throws:
freemarker.template.TemplateModelException

getPackageSeparator

protected String getPackageSeparator()
Overrides:
getPackageSeparator in class ClassnameForMethod


Copyright © 2015. All rights reserved.