Class TypeManager

java.lang.Object
jaxx.compiler.types.TypeManager

public class TypeManager
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static java.lang.Object convertFromString​(java.lang.String string, java.lang.Class<?> type)  
    static java.lang.String convertVariableNameToConstantName​(java.lang.String variableName)
    Convertit un nom de variable en nom de constante.
    static java.util.Map<java.lang.Class<?>,​TypeConverter> getConverters()  
    static java.lang.String getJavaCode​(java.lang.Object object)  
    static TypeConverter getTypeConverter​(java.lang.Class<?> type)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getConverters

      public static java.util.Map<java.lang.Class<?>,​TypeConverter> getConverters()
      Returns:
      dictionnary of known converters
    • getTypeConverter

      public static TypeConverter getTypeConverter​(java.lang.Class<?> type)
    • getJavaCode

      public static java.lang.String getJavaCode​(java.lang.Object object)
    • convertFromString

      public static java.lang.Object convertFromString​(java.lang.String string, java.lang.Class<?> type)
    • convertVariableNameToConstantName

      public static java.lang.String convertVariableNameToConstantName​(java.lang.String variableName)
      Convertit un nom de variable en nom de constante.
      Parameters:
      variableName - le nom de variable a convertir
      Returns:
      le nom de la constante à partir du nom de la variable