get the short name of the class (no package)
@param className fully qualified (or not) class name
@return short name of the class (no package)
773413
public static String deriveShortProcedureName( String className) {
        if( className == null || className.trim().isEmpty()) {
            return null;
        }
        String[] parts = className.split("\\.");
        String shortName = parts[parts.length - 1];

        return shortName;
    }
298693
public String getFullyQualifiedNameForClassName(String className) {
    if (!classNameToFullyQualifiedName.containsKey(className)) {
      return className;
    }

    return classNameToFullyQualifiedName.get(className);
  }
1023472
public static String simpleClassName(Class<?> clazz) {
        if (!clazz.isAnonymousClass()) {
            return clazz.getSimpleName();
        }
        // Simple name of anonymous class is empty
        String name = clazz.getName();
        int lastDot = name.lastIndexOf('.');
        if (lastDot <= 0) {
            return name;
        }
        return name.substring(lastDot + 1);
    }
1087255
public static String getJustClassName(String classname)
   {
      int index = classname.lastIndexOf('.');
      if (index < 0)
         index = 0;
      else index = index + 1;
      return classname.substring(index);
   }
415340
public static boolean isPrimitiveClassName(String className)
	{
		return className.equalsIgnoreCase("boolean") //$NON-NLS-1$
				|| className.equalsIgnoreCase("byte") //$NON-NLS-1$
				|| className.equalsIgnoreCase("char") //$NON-NLS-1$
				|| className.equalsIgnoreCase("short") //$NON-NLS-1$
				|| className.equalsIgnoreCase("int") //$NON-NLS-1$
				|| className.equalsIgnoreCase("long") //$NON-NLS-1$
				|| className.equalsIgnoreCase("float") //$NON-NLS-1$
				|| className.equalsIgnoreCase("double") //$NON-NLS-1$
				|| className.equalsIgnoreCase("string"); //$NON-NLS-1$
	}
587256
public static String getPackageName(String className, boolean resource)
   {
       String packageName = null;
       if (className != null)
       {
       	if (resource)
       		if (className.endsWith(PROPERTIES))
       			className = className.substring(0, className.length() - PROPERTIES.length());
           if (className.lastIndexOf('.') != -1)
               packageName = className.substring(0, className.lastIndexOf('.'));
       }
       return packageName;
   }
473112
private static String getPackage(final String fullyQualifiedClassName) {
		int dotIndex = fullyQualifiedClassName.lastIndexOf('.');
		if (dotIndex == -1) {
			return null;
		} else {
			return fullyQualifiedClassName.substring(0, dotIndex);
		}
	}
966052
public static function getFullClassname($classname)
    {
        if (is_array($classname)) {
            return  array_map(['BackBee\ClassContent\AbstractContent', 'getFullClassname'], $classname);
        }

        $isExcluded = self::isExcludedClassname($classname);

        try {
            class_exists($classname);
        } catch (ClassNotFoundException $ex) {
            return self::onUnknownClassname($classname.' is not a short classname of an AbstractClassContent instance.', $ex);
        }

        return ($isExcluded ? '!' : '').$classname;
    }
504007
public static ClassName classNameWithSuffix(String packageName, String className, String suffix) {
		return ClassName.get(packageName, className + suffix);
	}
374354
public static String getFullClassName(Class cls) {
        String className = cls.getName();

        return getFullClassName(className);
    }
1308378
protected String getClassBeingDefined( String className ) {
        String baseName = Name.suffix(className,1);
        return definingClassesBaseNames.get( baseName );
    }
1324870
public static ClassName get(String packageName, String simpleName, String... simpleNames) {
    ClassName className = new ClassName(packageName, null, simpleName);
    for (String name : simpleNames) {
      className = className.nestedClass(name);
    }
    return className;
  }
1125117
public static Class<? extends FileSystem> getFileSystemByName(final String className) throws ClassNotFoundException {
		return Class.forName(className, true, getClassLoader()).asSubclass(FileSystem.class);
	}
579847
public static String simpleClassName(Class<?> clazz) {
        String className = checkNotNull(clazz, "clazz").getName();
        final int lastDotIdx = className.lastIndexOf(PACKAGE_SEPARATOR_CHAR);
        if (lastDotIdx > -1) {
            return className.substring(lastDotIdx + 1);
        }
        return className;
    }
491981
private String getShortClassName(Class<?> leguminaClass) {
        if(leguminaClass == null) {
            return null;
        }
        String beanClassName = leguminaClass.getName();
        int lastIndex = beanClassName.lastIndexOf("."); //$NON-NLS-1$
        return (lastIndex == -1) ? beanClassName : beanClassName.substring(lastIndex + 1);
    }
1236617
public static String getFullColumnClassName(String className) {
 		if (className.startsWith("java.")) {
 			return className;
 		}
 		if ("String".equals(className)) {
 			return "java.lang.String";
 		} else if ("Int".equals(className)) {
 			return "java.lang.Integer";
 		} else if ("Double".equals(className)) {
 			return "java.lang.Double";
 		} else if ("Date".equals(className)) {
 			return "java.util.Date";
 		} else if ("Long".equals(className)) {
 			return "java.lang.Long";
 		} else if ("Float".equals(className)) {
 			return "java.lang.Float";
 		} else if ("Boolean".equals(className)) {
 			return "java.lang.Boolean";
 		}  else {
 			return "java.lang.Object";
 		}
 	}
92646
public static final String extractSimpleClassName(String className) {
		if (className == null) {
			throw new NullPointerException();
		}
		
		final int idx = className.lastIndexOf('.');
		if (idx == -1) {
			return className;
		} else {
			return className.substring(idx + 1);
		}
	}