com.googlecode.icegem.serialization.codegen
Class CodeGenUtils

java.lang.Object
  extended by com.googlecode.icegem.serialization.codegen.CodeGenUtils

public class CodeGenUtils
extends Object

Author:
igolovach

Field Summary
static String TAB
           
 
Constructor Summary
CodeGenUtils()
           
 
Method Summary
static String className(Class<?> clazz)
           Integer[][].class -> "Integer[][]"
static String firstLetterToLowerCase(String fieldName)
           
static String firstLetterToUpperCase(String fieldName)
           
static String tab(int tabCount, String str)
           
static String tab(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAB

public static String TAB
Constructor Detail

CodeGenUtils

public CodeGenUtils()
Method Detail

tab

public static String tab(String str)

tab

public static String tab(int tabCount,
                         String str)

firstLetterToUpperCase

public static String firstLetterToUpperCase(String fieldName)

firstLetterToLowerCase

public static String firstLetterToLowerCase(String fieldName)

className

public static String className(Class<?> clazz)

Integer[][].class -> "Integer[][]"

int[][].class -> "int[][]"

Naive: Integer[][].class.getName() -> "[[Ljava.lang.Integer;"

Naive: int[][].class.getName() -> "[[LI;"



Copyright © 2011. All Rights Reserved.