Cosmetics: removal of NativeJavaObject. prefix when calling NativeJavaObject methods.

This commit is contained in:
igor%mir2.org 2003-05-05 16:15:50 +00:00
parent 0e633d85f1
commit 615d3d50af

View File

@ -229,7 +229,7 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
* function, but for now I'll hide behind precedent.
*/
public static boolean canConvert(Object fromObj, Class to) {
int weight = NativeJavaObject.getConversionWeight(fromObj, to);
int weight = getConversionWeight(fromObj, to);
return (weight < CONVERSION_NONE);
}
@ -258,7 +258,7 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
* "preferred method conversions" from Live Connect 3</a>
*/
public static int getConversionWeight(Object fromObj, Class to) {
int fromCode = NativeJavaObject.getJSTypeCode(fromObj);
int fromCode = getJSTypeCode(fromObj);
int result = CONVERSION_NONE;
@ -299,7 +299,7 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
result = 1;
}
else if (to != Boolean.TYPE) {
result = 1 + NativeJavaObject.getSizeRank(to);
result = 1 + getSizeRank(to);
}
}
else {
@ -358,7 +358,7 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
result =
(fromCode == JSTYPE_JAVA_ARRAY) ?
CONVERSION_NONTRIVIAL :
2 + NativeJavaObject.getSizeRank(to);
2 + getSizeRank(to);
}
else {
Object javaObj = fromObj;
@ -394,7 +394,7 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
}
}
else if (to.isPrimitive() || to != Boolean.TYPE) {
result = 3 + NativeJavaObject.getSizeRank(to);
result = 3 + getSizeRank(to);
}
break;
}
@ -498,7 +498,7 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
return value;
}
switch (NativeJavaObject.getJSTypeCode(value)) {
switch (getJSTypeCode(value)) {
case JSTYPE_NULL:
// raise error if type.isPrimitive()