java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.base.JavaUtil |
A collection of primitives relative to the Java language itself.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JavaUtil() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String | extractFullName(String internalClassname, boolean validate) | ||||||||||
static String | extractSimpleName(String internalClassname, boolean validate) | ||||||||||
static boolean | isClassname(String s, boolean validate, List<String> elements) | ||||||||||
static boolean | isInternalClassname(String s, boolean validate, List<String> elements) | ||||||||||
static boolean | isKeyword(String s) | ||||||||||
static boolean | isReservedLiteral(String s) | ||||||||||
static boolean | isReservedMethodName(String name) | ||||||||||
static boolean | isValidClassname(String s) | ||||||||||
static boolean |
isValidClassname(String s, List<String> elements)
Validate a class name in standard binary form.
| ||||||||||
static boolean | isValidIdentifierName(String s) | ||||||||||
static boolean | isValidInternalClassname(String s) | ||||||||||
static boolean | isValidInternalClassname(String s, List<String> elements) | ||||||||||
static String | letterToPrimitive(String letterType) | ||||||||||
static String | primitiveToLetter(String primitiveType) | ||||||||||
static String | primitiveToWrapper(String primitiveType) | ||||||||||
static String |
toJvmName(Class<?> c)
Generate the internal binary name (jvm name) for the provided type name, as provided by
Class.getName() . | ||||||||||
static String |
toJvmName(String javaname)
Generate the internal binary name (jvm name) for the provided type name, as provided by
Class.getName() . | ||||||||||
static String | wrapperToPrimitive(String wrapperType) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Validate a class name in standard binary form.
s | dot-separated class name |
---|
Generate the internal binary name (jvm name) for the provided type name, as provided by
Class.getName()
.
Class.getName()
uses inconsistent format. Example:
int -> int int[] -> [I int[][] -> [[I java.lang.Integer -> java.lang.Integer java.lang.Integer[] -> [Ljava.lang.Integer; java.lang.Integer[][] -> [Ljava.lang.Integer;
c | a java class reference |
---|
Generate the internal binary name (jvm name) for the provided type name, as provided by
Class.getName()
.
Class.getName()
uses inconsistent format. Example:
int -> int int[] -> [I int[][] -> [[I java.lang.Integer -> java.lang.Integer java.lang.Integer[] -> [Ljava.lang.Integer; java.lang.Integer[][] -> [Ljava.lang.Integer;
javaname | name returned by Java's Class.getName(...) |
---|