org.stjs.generator.name
Class DefaultJavaScriptNameProvider

java.lang.Object
  extended by org.stjs.generator.name.DefaultJavaScriptNameProvider
All Implemented Interfaces:
JavaScriptNameProvider

public class DefaultJavaScriptNameProvider
extends Object
implements JavaScriptNameProvider

This class implements the naming strategy transforming Java element names in JavaScript names.

Author:
acraciun

Constructor Summary
DefaultJavaScriptNameProvider()
           
 
Method Summary
 String getMethodName(GenerationContext<?> context, com.sun.source.tree.MethodInvocationTree tree, com.sun.source.util.TreePath path)
           
 String getMethodName(GenerationContext<?> context, com.sun.source.tree.MethodTree tree, com.sun.source.util.TreePath path)
           
 Collection<String> getResolvedTypes()
           
 String getTypeName(GenerationContext<?> context, Element type)
           
 String getTypeName(GenerationContext<?> context, TypeMirror type)
           
 String getVariableName(GenerationContext<?> context, com.sun.source.tree.IdentifierTree treeNode, com.sun.source.util.TreePath path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJavaScriptNameProvider

public DefaultJavaScriptNameProvider()
Method Detail

getTypeName

public String getTypeName(GenerationContext<?> context,
                          TypeMirror type)
Specified by:
getTypeName in interface JavaScriptNameProvider

getVariableName

public String getVariableName(GenerationContext<?> context,
                              com.sun.source.tree.IdentifierTree treeNode,
                              com.sun.source.util.TreePath path)
Specified by:
getVariableName in interface JavaScriptNameProvider

getMethodName

public String getMethodName(GenerationContext<?> context,
                            com.sun.source.tree.MethodTree tree,
                            com.sun.source.util.TreePath path)
Specified by:
getMethodName in interface JavaScriptNameProvider

getMethodName

public String getMethodName(GenerationContext<?> context,
                            com.sun.source.tree.MethodInvocationTree tree,
                            com.sun.source.util.TreePath path)
Specified by:
getMethodName in interface JavaScriptNameProvider

getTypeName

public String getTypeName(GenerationContext<?> context,
                          Element type)
Specified by:
getTypeName in interface JavaScriptNameProvider

getResolvedTypes

public Collection<String> getResolvedTypes()
Specified by:
getResolvedTypes in interface JavaScriptNameProvider


Copyright © 2014. All Rights Reserved.