org.eclipse.wst.jsdt.web.core.javascript
Class JsNameManglerUtil
java.lang.Object
org.eclipse.wst.jsdt.web.core.javascript.JsNameManglerUtil
public class JsNameManglerUtil
- extends java.lang.Object
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
Method Summary |
static java.lang.String |
mangle(java.lang.String name)
Mangle string to WAS-like specifications |
static java.lang.String |
unmangle(java.lang.String qualifiedTypeName)
WAS mangles Tom&Jerry as: _Tom_26_Jerry; this takes in the mangled name
and returns the original name. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsNameManglerUtil
public JsNameManglerUtil()
mangle
public static final java.lang.String mangle(java.lang.String name)
- Mangle string to WAS-like specifications
unmangle
public static final java.lang.String unmangle(java.lang.String qualifiedTypeName)
- WAS mangles Tom&Jerry as: _Tom_26_Jerry; this takes in the mangled name
and returns the original name.
Unmangles the qualified type name. If an underscore is found it is
assumed to be a mangled representation of a non-alpha, non-digit
character of the form _NN_, where NN are hex digits representing the
encoded character. This routine converts it back to the original
character.