Class ManClassUtil
java.lang.Object
manifold.rt.api.util.ManClassUtil
This class is in part derived from org.apache.commons.lang.ClassUtils and is intended
to break a dependency on that project.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> static StringgetFileExtension(File file) static StringgetFileExtension(String name) static StringgetNameNoPackage(String className) static StringgetPackage(String className) static StringgetShortClassName(Class cls) Gets the class name minus the package name from aClass.static StringgetShortClassName(String className) Gets the class name minus the package name from a String.static booleanisJavaIdentifier(String part) static booleanisValidClassName(String name)
-
Constructor Details
-
ManClassUtil
public ManClassUtil()
-
-
Method Details
-
getNameNoPackage
-
getPackage
-
getFileExtension
-
getFileExtension
-
getShortClassName
-
getShortClassName
Gets the class name minus the package name from a String.
The string passed in is assumed to be a class name - it is not checked.
- Parameters:
className- the className to get the short name for- Returns:
- the class name of the class without the package name or an empty string
-
getAllInterfaces
-
isJavaIdentifier
-
isValidClassName
-
box
-