JType is a representation of a Java type in a codeModel. If you just need the fully-qualified class name, call JType.fullName . never be null.