org.codehaus.enunciate.modules.ruby
Class ClientClassnameForMethod
java.lang.Object
org.codehaus.enunciate.template.freemarker.ClientPackageForMethod
org.codehaus.enunciate.template.freemarker.ClassnameForMethod
org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod
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
| Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
|
Method Summary |
java.lang.String |
convert(Accessor accessor)
Converts the type of an accessor. |
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. |
protected java.lang.String |
getPackageSeparator()
|
protected boolean |
isCollection(com.sun.mirror.declaration.TypeDeclaration declaration)
|
protected boolean |
isMap(com.sun.mirror.declaration.TypeDeclaration declaration)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientClassnameForMethod
public ClientClassnameForMethod(java.util.Map<java.lang.String,java.lang.String> conversions)
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
convert
public java.lang.String convert(Accessor accessor)
throws freemarker.template.TemplateModelException
- Description copied from class:
ClassnameForMethod
- Converts the type of an accessor.
- Overrides:
convert in class ClientClassnameForMethod
- Parameters:
accessor - The accessor.
- Returns:
- The accessor.
- 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 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.
getPackageSeparator
protected java.lang.String getPackageSeparator()
- Overrides:
getPackageSeparator in class ClassnameForMethod