mirror of
https://github.com/2003scape/deep-c-rsc.git
synced 2024-03-22 05:49:51 -04:00
850 lines
22 KiB
C
850 lines
22 KiB
C
/* DO NOT EDIT THIS FILE - it is machine generated (JCGO_116) */
|
|
|
|
#ifdef JCGO_SEPARATED
|
|
#define JCGO_116
|
|
#include "jcgortl.h"
|
|
#include "Main.h"
|
|
#endif
|
|
|
|
#ifdef JCGO_116
|
|
|
|
#ifdef CHKALL_java_lang_VMClass
|
|
#include "jcgobchk.h"
|
|
#endif
|
|
|
|
JCGO_NOSEP_FRWINL java_lang_Class CFASTCALL
|
|
java_lang_VMClass__getComponentType__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
return (JCGO_FIELD_ACCESS(java_lang_Class, klass, modifiers) & ~(java_lang_VMClass__MODIFIER_PUBLIC |
|
|
java_lang_VMClass__MODIFIER_PRIVATE | java_lang_VMClass__MODIFIER_PROTECTED)) ==
|
|
(java_lang_VMClass__MODIFIER_FINAL | java_lang_VMClass__MODIFIER_ABSTRACT)?
|
|
JCGO_FIELD_NZACCESS(klass, superclass) : jnull;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE java_lang_Class CFASTCALL
|
|
java_lang_VMClass__loadArrayClass__LsL09rb1( java_lang_String name,
|
|
java_lang_ClassLoader loader )
|
|
{
|
|
{
|
|
java_lang_Class aclass;
|
|
jint nameLen;
|
|
jint dims;
|
|
nameLen= (JCGO_CALL_FINALF(name) java_lang_String__length__(
|
|
name));
|
|
dims= 0;
|
|
while (dims < nameLen && (java_lang_String__charAt__I(
|
|
name, dims)) == (jchar)91/*'['*/)
|
|
{
|
|
dims++;
|
|
}
|
|
aclass= (java_lang_Class)jnull;
|
|
if (dims > 0 && dims < nameLen)
|
|
{
|
|
jchar ch;
|
|
ch= (java_lang_String__charAt__I(
|
|
name, dims));
|
|
if (ch == (jchar)76/*'L'*/)
|
|
{
|
|
if (nameLen - (jint)1 > dims && (java_lang_String__charAt__I(
|
|
name, nameLen - (jint)1)) == (jchar)59/*';'*/)
|
|
{
|
|
java_lang_String className;
|
|
className= (java_lang_String__substring__II(
|
|
name, dims + (jint)1, nameLen - (jint)1));
|
|
aclass= loader != jnull? (java_lang_ClassLoader__loadClass__Ls(
|
|
loader, className)) : (java_lang_VMClassLoader__loadClass__LsZ(
|
|
className, (jboolean)jfalse));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (nameLen - (jint)1 == dims && ch != (jchar)86/*'V'*/)
|
|
{
|
|
aclass= (java_lang_VMClassLoader__getPrimitiveClass__C(
|
|
ch));
|
|
}
|
|
}
|
|
}
|
|
if (aclass == jnull)
|
|
{
|
|
JCGO_THROW_EXC((java_lang_ClassNotFoundException__new__Ls(
|
|
name)));
|
|
}
|
|
return (java_lang_VMClass__arrayClassOf0X__LcI(
|
|
aclass, dims));
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL void CFASTCALL
|
|
java_lang_VMClass__initialize__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
(java_lang_VMClass__initialize0__Lc(
|
|
klass));
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE jboolean CFASTCALL
|
|
java_lang_VMClass__isAsciiDigit__C( jchar ch )
|
|
{
|
|
{
|
|
return (jboolean)(ch >= (jchar)48/*'0'*/ && ch <= (jchar)57/*'9'*/);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE java_lang_Class CFASTCALL
|
|
java_lang_VMClass__loadClassResolve__LsL09rb1( java_lang_String name,
|
|
java_lang_ClassLoader loader )
|
|
{
|
|
{
|
|
java_lang_Class JCGO_TRY_VOLATILE aclass;
|
|
aclass= (java_lang_Class)jnull;
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
aclass= loader != jnull? (java_lang_ClassLoader__loadClass__LsZ(
|
|
loader, name, (jboolean)jtrue)) : (java_lang_VMClassLoader__loadClass__LsZ(
|
|
name, (jboolean)jtrue));
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_lang_ClassNotFoundException, MAXT_java_lang_ClassNotFoundException)
|
|
{
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
if (aclass != jnull)
|
|
{
|
|
if ((java_lang_VMClass__getClassLoaderInner__Lc(
|
|
aclass)) != loader)
|
|
{
|
|
aclass= (java_lang_Class)jnull;
|
|
}
|
|
else
|
|
{
|
|
if (loader != jnull)
|
|
{
|
|
(java_lang_ClassLoader__resolveClass__Lc(
|
|
loader, aclass));
|
|
}
|
|
else
|
|
{
|
|
(java_lang_VMClassLoader__resolveClass__Lc(
|
|
aclass));
|
|
}
|
|
}
|
|
}
|
|
return aclass;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE java_lang_Class CFASTCALL
|
|
java_lang_VMClass__getDeclaringClass__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
java_lang_String name;
|
|
jint ofs;
|
|
jObject jcgo_rcvrL1;
|
|
name= (JCGO_CALL_FINALF(klass) java_lang_Class__getName__(
|
|
klass));
|
|
ofs= (java_lang_String__lastIndexOf__I(
|
|
name, (jchar)36/*'$'*/));
|
|
return ofs > 0 && (java_lang_String__charAt__I(
|
|
name, 0)) != (jchar)91/*'['*/ && (java_lang_String__length__(
|
|
name)) - (jint)1 > ofs && !(java_lang_VMClass__isAsciiDigit__C(
|
|
(java_lang_String__charAt__I(
|
|
name, ofs + (jint)1))))? (jcgo_rcvrL1= (jObject)(java_lang_String__substring__II(
|
|
name, 0, ofs)), java_lang_VMClass__loadClassResolve__LsL09rb1(
|
|
(java_lang_String)jcgo_rcvrL1, (java_lang_VMClass__getClassLoaderInner__Lc(
|
|
klass)))) : jnull;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE jboolean CFASTCALL
|
|
java_lang_VMClass__isInterface__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
return (jboolean)((JCGO_FIELD_ACCESS(java_lang_Class, klass, modifiers) &
|
|
java_lang_VMClass__MODIFIER_INTERFACE) != 0);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE jboolean CFASTCALL
|
|
java_lang_VMClass__isPrimitive__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
return (jboolean)(JCGO_FIELD_ACCESS(java_lang_Class, klass, modifiers) ==
|
|
(java_lang_VMClass__MODIFIER_PUBLIC | java_lang_VMClass__MODIFIER_FINAL |
|
|
java_lang_VMClass__MODIFIER_ABSTRACT) && JCGO_FIELD_NZACCESS(klass,
|
|
superclass) == jnull);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL jboolean CFASTCALL
|
|
java_lang_VMClass__isAssignableFrom__LcLc( java_lang_Class klass,
|
|
java_lang_Class aclass )
|
|
{
|
|
{
|
|
java_lang_Class clazz;
|
|
if (aclass == jnull)
|
|
{
|
|
JCGO_THROW_EXC(java_lang_NullPointerException__new__());
|
|
}
|
|
if (klass == aclass)
|
|
{
|
|
return (jboolean)jtrue;
|
|
}
|
|
;
|
|
while ((clazz= (java_lang_VMClass__getComponentType__Lc(
|
|
klass))) != jnull)
|
|
{
|
|
klass= clazz;
|
|
if ((aclass= (java_lang_VMClass__getComponentType__Lc(
|
|
aclass))) == jnull)
|
|
{
|
|
return (jboolean)jfalse;
|
|
}
|
|
}
|
|
if ((java_lang_VMClass__getSuperclass__Lc(
|
|
klass)) != jnull)
|
|
{
|
|
do
|
|
{
|
|
aclass= (java_lang_VMClass__getSuperclass__Lc(
|
|
aclass));
|
|
if (klass == aclass)
|
|
{
|
|
return (jboolean)jtrue;
|
|
}
|
|
}
|
|
while (aclass != jnull);
|
|
}
|
|
else
|
|
{
|
|
if ((java_lang_VMClass__isInterface__Lc(
|
|
klass)))
|
|
{
|
|
do
|
|
{
|
|
if ((java_lang_VMClass__isImplementedBy__LcLc(
|
|
klass, aclass)))
|
|
{
|
|
return (jboolean)jtrue;
|
|
}
|
|
}
|
|
while ((aclass= (java_lang_VMClass__getSuperclass__Lc(
|
|
aclass))) != jnull);
|
|
}
|
|
else
|
|
{
|
|
if (!(java_lang_VMClass__isPrimitive__Lc(
|
|
klass)) && !(java_lang_VMClass__isPrimitive__Lc(
|
|
aclass)))
|
|
{
|
|
return (jboolean)jtrue;
|
|
}
|
|
}
|
|
}
|
|
return (jboolean)jfalse;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_Class CFASTCALL
|
|
java_lang_VMClass__getSuperclass__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
return (JCGO_FIELD_ACCESS(java_lang_Class, klass, modifiers) & ~(java_lang_VMClass__MODIFIER_PUBLIC |
|
|
java_lang_VMClass__MODIFIER_PRIVATE | java_lang_VMClass__MODIFIER_PROTECTED)) ==
|
|
(java_lang_VMClass__MODIFIER_FINAL | java_lang_VMClass__MODIFIER_ABSTRACT)?
|
|
(JCGO_FIELD_NZACCESS(klass, superclass) != jnull? JCGO_CLASSREF_OF(java_lang_Object__class) :
|
|
jnull) : JCGO_FIELD_NZACCESS(klass, superclass);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL jboolean CFASTCALL
|
|
java_lang_VMClass__isArray__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
return (jboolean)((JCGO_FIELD_ACCESS(java_lang_Class, klass, modifiers) &
|
|
~(java_lang_VMClass__MODIFIER_PUBLIC | java_lang_VMClass__MODIFIER_PRIVATE |
|
|
java_lang_VMClass__MODIFIER_PROTECTED)) == (java_lang_VMClass__MODIFIER_FINAL |
|
|
java_lang_VMClass__MODIFIER_ABSTRACT) && JCGO_FIELD_NZACCESS(klass,
|
|
superclass) != jnull);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC jint CFASTCALL
|
|
java_lang_VMClass__getModifiers__LcZ( java_lang_Class klass, jboolean
|
|
ignoreInnerClassesAttrib )
|
|
{
|
|
{
|
|
jint modifiers;
|
|
modifiers= JCGO_FIELD_ACCESS(java_lang_Class, klass, modifiers);
|
|
if (ignoreInnerClassesAttrib && (modifiers & java_lang_VMClass__MODIFIER_PRIVATE) ==
|
|
0)
|
|
{
|
|
while ((klass= (java_lang_VMClass__getDeclaringClass__Lc(
|
|
klass))) != jnull)
|
|
{
|
|
jint outerMods;
|
|
outerMods= JCGO_FIELD_NZACCESS(klass, modifiers);
|
|
if ((outerMods & java_lang_VMClass__MODIFIER_PRIVATE) != 0)
|
|
{
|
|
modifiers= (modifiers & ~(java_lang_VMClass__MODIFIER_PUBLIC |
|
|
java_lang_VMClass__MODIFIER_PROTECTED)) | java_lang_VMClass__MODIFIER_PRIVATE;
|
|
break;
|
|
}
|
|
else
|
|
{
|
|
if ((outerMods & java_lang_VMClass__MODIFIER_PROTECTED) != 0)
|
|
{
|
|
modifiers&= ~java_lang_VMClass__MODIFIER_PUBLIC;
|
|
}
|
|
else
|
|
{
|
|
if ((outerMods & java_lang_VMClass__MODIFIER_PUBLIC) == 0)
|
|
{
|
|
modifiers&= ~(java_lang_VMClass__MODIFIER_PUBLIC | java_lang_VMClass__MODIFIER_PROTECTED);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return modifiers & ~(java_lang_VMClass__MODIFIER_VOLATILE | java_lang_VMClass__MODIFIER_TRANSIENT |
|
|
java_lang_VMClass__MODIFIER_NATIVE);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_ClassLoader CFASTCALL
|
|
java_lang_VMClass__getClassLoader__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
if (klass == jnull && JCGO_CLINIT_VARACC(java_lang_ClassLoader_StaticData__class,
|
|
java_lang_ClassLoader_StaticData__class.systemClassLoader) == jnull)
|
|
{
|
|
return (java_lang_ClassLoader)jnull;
|
|
}
|
|
return (java_lang_VMClass__getClassLoaderInner__Lc(
|
|
klass));
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_Class CFASTCALL
|
|
java_lang_VMClass__forName__LsZL09rb1( java_lang_String name, java_lang_ClassLoader
|
|
loader, jboolean initialize )
|
|
{
|
|
{
|
|
java_lang_Class aclass;
|
|
if (name == jnull)
|
|
{
|
|
JCGO_THROW_EXC(java_lang_NullPointerException__new__());
|
|
}
|
|
;
|
|
if ((java_lang_String__length__(
|
|
name)) > 0 && (java_lang_String__charAt__I(
|
|
name, 0)) == (jchar)91/*'['*/)
|
|
{
|
|
aclass= (java_lang_VMClass__loadArrayClass__LsL09rb1(
|
|
name, loader));
|
|
}
|
|
else
|
|
{
|
|
if (loader != jnull)
|
|
{
|
|
aclass= (java_lang_ClassLoader__loadClass__Ls(
|
|
loader, name));
|
|
if (aclass != jnull)
|
|
{
|
|
(java_lang_ClassLoader__resolveClass__Lc(
|
|
loader, aclass));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
aclass= (java_lang_VMClassLoader__loadClass__LsZ(
|
|
name, (jboolean)jtrue));
|
|
}
|
|
if (aclass == jnull)
|
|
{
|
|
JCGO_THROW_EXC((java_lang_ClassNotFoundException__new__Ls(
|
|
name)));
|
|
}
|
|
if (initialize)
|
|
{
|
|
(java_lang_VMClass__initialize__Lc(
|
|
aclass));
|
|
}
|
|
}
|
|
return aclass;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL void CFASTCALL
|
|
java_lang_VMClass__throwException__Lt( java_lang_Throwable throwable
|
|
)
|
|
{
|
|
{
|
|
if (jcgo_instanceOf0(OBJT_java_lang_Error, MAXT_java_lang_Error,
|
|
(jObject)throwable))
|
|
{
|
|
JCGO_THROW_EXC((java_lang_Error)throwable);
|
|
}
|
|
if (jcgo_instanceOf0(OBJT_java_lang_RuntimeException, MAXT_java_lang_RuntimeException,
|
|
(jObject)throwable))
|
|
{
|
|
JCGO_THROW_EXC((java_lang_RuntimeException)throwable);
|
|
}
|
|
if (throwable == jnull)
|
|
{
|
|
JCGO_THROW_EXC(java_lang_NullPointerException__new__());
|
|
}
|
|
(java_lang_VMClass__throwException0__Lo(
|
|
(java_lang_Object)throwable));
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_Class CFASTCALL
|
|
java_lang_VMClass__arrayClassOf0X__LcI( java_lang_Class klass, jint
|
|
dims )
|
|
{
|
|
{
|
|
if (dims > 0)
|
|
{
|
|
java_lang_Class origClass;
|
|
jint absDims;
|
|
if (klass == JCGO_CORECLASS_FOR(OBJT_void))
|
|
{
|
|
JCGO_THROW_EXC(java_lang_InternalError__new__());
|
|
}
|
|
origClass= klass;
|
|
absDims= dims;
|
|
{
|
|
JCGO_SYNC_BLOCK(JCGO_CLINIT_VARACC(java_lang_VMClass_StaticData__class,
|
|
java_lang_VMClass_StaticData__arrayClasses))
|
|
{
|
|
do
|
|
{
|
|
java_lang_Class aclass;
|
|
aclass= (java_lang_Class)JCGO_CAST_OBJECT0(OBJT_java_lang_Class,
|
|
MAXT_java_lang_Class, (java_lang_VMClass_IdentityHashMap__get__Lo(
|
|
java_lang_VMClass_StaticData__arrayClasses, (java_lang_Object)klass)));
|
|
if (aclass == jnull)
|
|
{
|
|
break;
|
|
}
|
|
klass= aclass;
|
|
}
|
|
while (--dims > 0);
|
|
if (dims > 0)
|
|
{
|
|
java_lang_String className;
|
|
jObjectArr interfaces;
|
|
jint modifiers;
|
|
absDims-= dims;
|
|
while ((origClass= (java_lang_VMClass__getComponentType__Lc(
|
|
origClass))) != jnull)
|
|
{
|
|
absDims++;
|
|
}
|
|
;
|
|
if ((className= JCGO_FIELD_ACCESS(java_lang_Class, klass, name)) ==
|
|
jnull)
|
|
{
|
|
className= JCGO_STRREF_OF(jcgo_string3_Class);
|
|
}
|
|
origClass= JCGO_CORECLASS_FOR(OBJT_jarray+OBJT_jboolean);
|
|
interfaces= JCGO_FIELD_NZACCESS(origClass, interfaces);
|
|
modifiers= (JCGO_FIELD_NZACCESS(klass, modifiers) & (java_lang_VMClass__MODIFIER_PUBLIC |
|
|
java_lang_VMClass__MODIFIER_PRIVATE | java_lang_VMClass__MODIFIER_PROTECTED)) |
|
|
(java_lang_VMClass__MODIFIER_FINAL | java_lang_VMClass__MODIFIER_ABSTRACT);
|
|
do
|
|
{
|
|
java_lang_Object vmdata;
|
|
java_lang_Class aclass;
|
|
vmdata= (java_lang_VMClass__vmdataForObjArray0__I(
|
|
++absDims));
|
|
if (vmdata == jnull)
|
|
{
|
|
JCGO_THROW_EXC((java_lang_OutOfMemoryError__new__Ls(
|
|
JCGO_STRREF_OF(jcgo_string2_VMClass))));
|
|
}
|
|
className= absDims > (jint)1? (java_lang_String__concat__Ls(
|
|
JCGO_STRREF_OF(jcgo_string2_AbstrcCl), className)) : (java_lang_String__concat__Ls(
|
|
(java_lang_String__concat__Ls(
|
|
JCGO_STRREF_OF(jcgo_string3_VMClass), className)), JCGO_STRREF_OF(jcgo_string4_VMClass)));
|
|
aclass= (java_lang_Class__new__LoLsLcLcAI(
|
|
vmdata, className, klass, interfaces, modifiers));
|
|
(java_lang_VMClass_IdentityHashMap__put__LoLo(
|
|
java_lang_VMClass_StaticData__arrayClasses, (java_lang_Object)klass,
|
|
(java_lang_Object)aclass));
|
|
klass= aclass;
|
|
}
|
|
while (--dims > 0);
|
|
}
|
|
}
|
|
JCGO_SYNC_END
|
|
}
|
|
}
|
|
if (klass == jnull)
|
|
{
|
|
JCGO_THROW_EXC(java_lang_InternalError__new__());
|
|
}
|
|
return klass;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_Class CFASTCALL
|
|
java_lang_VMClass__classForSig__LsLc( java_lang_String sig, java_lang_Class
|
|
klass )
|
|
{
|
|
{
|
|
java_lang_Class JCGO_TRY_VOLATILE aclass;
|
|
jint nameLen;
|
|
nameLen= (JCGO_CALL_FINALF(sig) java_lang_String__length__(
|
|
sig));
|
|
aclass= (java_lang_Class)jnull;
|
|
if (nameLen > 0)
|
|
{
|
|
jchar ch;
|
|
ch= (java_lang_String__charAt__I(
|
|
sig, 0));
|
|
if (nameLen == (jint)1)
|
|
{
|
|
return (java_lang_VMClassLoader__getPrimitiveClass__C(
|
|
ch));
|
|
}
|
|
if ((java_lang_String__indexOf__II(
|
|
sig, (jchar)46/*'.'*/, 0)) < 0)
|
|
{
|
|
if (ch == (jchar)76/*'L'*/)
|
|
{
|
|
if ((java_lang_String__charAt__I(
|
|
sig, nameLen - (jint)1)) != (jchar)59/*';'*/)
|
|
{
|
|
return (java_lang_Class)jnull;
|
|
}
|
|
sig= (java_lang_String__substring__II(
|
|
sig, (jint)1, nameLen - (jint)1));
|
|
}
|
|
else
|
|
{
|
|
if (ch != (jchar)91/*'['*/)
|
|
{
|
|
return (java_lang_Class)jnull;
|
|
}
|
|
}
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
aclass= (jcgo_rcvrL1= (jObject)(java_lang_String__replace__CC(
|
|
sig, (jchar)47/*'/'*/, (jchar)46/*'.'*/)), java_lang_VMClass__forName__LsZL09rb1(
|
|
(java_lang_String)jcgo_rcvrL1, klass != jnull? (java_lang_VMClass__getClassLoaderInner__Lc(
|
|
klass)) : jnull, (jboolean)jfalse));
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_lang_ClassNotFoundException, MAXT_java_lang_ClassNotFoundException)
|
|
{
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
}
|
|
}
|
|
return aclass;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL jObjectArr CFASTCALL
|
|
java_lang_VMClass__getInterfacesInner__Lc( java_lang_Class klass )
|
|
{
|
|
{
|
|
return JCGO_FIELD_ACCESS(java_lang_Class, klass, interfaces);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL jboolean CFASTCALL
|
|
java_lang_VMClass__hasClassInitializer__Lc( java_lang_Class klass
|
|
)
|
|
{
|
|
{
|
|
return (jboolean)((JCGO_FIELD_ACCESS(java_lang_Class, klass, modifiers) &
|
|
java_lang_VMClass__MODIFIER_NATIVE) != 0);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL void CFASTCALL
|
|
java_lang_VMClass__setBasicConstructorOf__LcL1693g( java_lang_Class
|
|
klass, java_lang_reflect_Constructor constructor_8w9 )
|
|
{
|
|
{
|
|
{
|
|
JCGO_SYNC_BLOCK(JCGO_CLINIT_VARACC(java_lang_VMClass_StaticData__class,
|
|
java_lang_VMClass_StaticData__classBasicCtors))
|
|
{
|
|
(java_lang_VMClass_IdentityHashMap__put__LoLo(
|
|
java_lang_VMClass_StaticData__classBasicCtors, (java_lang_Object)klass,
|
|
(java_lang_Object)constructor_8w9));
|
|
}
|
|
JCGO_SYNC_END
|
|
}
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL java_lang_reflect_Constructor CFASTCALL
|
|
java_lang_VMClass__getBasicConstructorOf__Lc( java_lang_Class klass
|
|
)
|
|
{
|
|
{
|
|
{
|
|
JCGO_SYNC_BLOCK(JCGO_CLINIT_VARACC(java_lang_VMClass_StaticData__class,
|
|
java_lang_VMClass_StaticData__classBasicCtors))
|
|
{
|
|
{
|
|
java_lang_reflect_Constructor jcgo_retval= (java_lang_reflect_Constructor)JCGO_CAST_OBJECT0(OBJT_java_lang_reflect_Constructor,
|
|
MAXT_java_lang_reflect_Constructor, (java_lang_VMClass_IdentityHashMap__get__Lo(
|
|
java_lang_VMClass_StaticData__classBasicCtors, (java_lang_Object)klass)));
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_ClassLoader CFASTCALL
|
|
java_lang_VMClass__getClassLoaderInner__Lc( java_lang_Class klass
|
|
)
|
|
{
|
|
{
|
|
java_lang_Class aclass;
|
|
java_lang_ClassLoader loader;
|
|
java_lang_String name;
|
|
while ((aclass= (java_lang_VMClass__getComponentType__Lc(
|
|
klass))) != jnull)
|
|
{
|
|
klass= aclass;
|
|
}
|
|
loader= (java_lang_VMClassLoader__getLoaderOfDefinedClass__Lc(
|
|
klass));
|
|
if (loader != jnull)
|
|
{
|
|
return loader;
|
|
}
|
|
name= (java_lang_Class__getName__(
|
|
klass));
|
|
return (java_lang_String__startsWith__Ls(
|
|
name, JCGO_STRREF_OF(jcgo_string5_VMClass))) || (java_lang_String__startsWith__Ls(
|
|
name, JCGO_STRREF_OF(jcgo_string6_VMClass))) || (java_lang_String__startsWith__Ls(
|
|
name, JCGO_STRREF_OF(jcgo_string7_VMClass))) || (java_lang_String__startsWith__Ls(
|
|
name, JCGO_STRREF_OF(jcgo_string8_VMClass))) || (java_lang_String__startsWith__Ls(
|
|
name, JCGO_STRREF_OF(jcgo_string9_VMClass)))? jnull : (java_lang_ClassLoader)JCGO_CAST_OBJECT0(OBJT_java_lang_VMClassLoader_AppClassLoader,
|
|
MAXT_java_lang_VMClassLoader_AppClassLoader, (java_lang_VMClass__getClassLoader0__Lc(
|
|
klass)));
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC jboolean CFASTCALL
|
|
java_lang_VMClass__isImplementedBy__LcLc( java_lang_Class klass, java_lang_Class
|
|
aclass )
|
|
{
|
|
{
|
|
do
|
|
{
|
|
jObjectArr interfaces;
|
|
jint i;
|
|
interfaces= JCGO_FIELD_ACCESS(java_lang_Class, aclass, interfaces);
|
|
if ((i= JCGO_ARRAY_LENGTH(interfaces)) == 0)
|
|
{
|
|
break;
|
|
}
|
|
do
|
|
{
|
|
aclass= ((java_lang_Class)JCGO_ARRAY_NZLACCESS(interfaces, --i));
|
|
if (klass == aclass)
|
|
{
|
|
return (jboolean)jtrue;
|
|
}
|
|
if (i == 0)
|
|
{
|
|
break;
|
|
}
|
|
if ((java_lang_VMClass__isImplementedBy__LcLc(
|
|
klass, aclass)))
|
|
{
|
|
return (jboolean)jtrue;
|
|
}
|
|
}
|
|
while (jtrue);
|
|
}
|
|
while (jtrue);
|
|
return (jboolean)jfalse;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_DATA CONST struct jcgo_methods_s java_lang_VMClass_methods=
|
|
{
|
|
JCGO_CLASSREF_OF(java_lang_VMClass__class),
|
|
JCGO_GCJDESCR_ZEROINIT
|
|
OBJT_java_lang_VMClass,
|
|
0,
|
|
NULL,
|
|
JCGO_CLINIT_INIT(0)
|
|
0
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_VMClass_class_s
|
|
java_lang_VMClass__class JCGO_THRD_ATTRNONGC=
|
|
{
|
|
{
|
|
&java_lang_Class_methods,
|
|
JCGO_MON_INIT
|
|
JCGO_OBJREF_OF(*(java_lang_Object)&java_lang_VMClass_methods),
|
|
JCGO_STRREF_OF(jcgo_string1_VMClass),
|
|
JCGO_CLASSREF_OF(java_lang_Object__class),
|
|
((jObjectArr)JCGO_OBJREF_OF(jcgo_array3_Object)),
|
|
0x10
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype33_Object jcgo_array10_VMClass=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
2,
|
|
{
|
|
(jbyte)(jchar)91/*'['*/, (jbyte)(jchar)76/*'L'*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype32_GameShll jcgo_array11_VMClass=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
10,
|
|
{
|
|
(jbyte)(jchar)103/*'g'*/, (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)117/*'u'*/,
|
|
(jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)106/*'j'*/, (jbyte)(jchar)97/*'a'*/,
|
|
(jbyte)(jchar)118/*'v'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)120/*'x'*/,
|
|
(jbyte)(jchar)46/*'.'*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype625_Mdclnt jcgo_array12_VMClass=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
51,
|
|
{
|
|
(jbyte)(jchar)103/*'g'*/, (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)117/*'u'*/,
|
|
(jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)106/*'j'*/, (jbyte)(jchar)97/*'a'*/,
|
|
(jbyte)(jchar)118/*'v'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)46/*'.'*/,
|
|
(jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)46/*'.'*/,
|
|
(jbyte)(jchar)66/*'B'*/, (jbyte)(jchar)121/*'y'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)65/*'A'*/, (jbyte)(jchar)114/*'r'*/,
|
|
(jbyte)(jchar)114/*'r'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)121/*'y'*/,
|
|
(jbyte)(jchar)79/*'O'*/, (jbyte)(jchar)117/*'u'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)112/*'p'*/, (jbyte)(jchar)117/*'u'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)83/*'S'*/, (jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)114/*'r'*/,
|
|
(jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)109/*'m'*/,
|
|
(jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)110/*'n'*/,
|
|
(jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)105/*'i'*/,
|
|
(jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)66/*'B'*/,
|
|
(jbyte)(jchar)117/*'u'*/, (jbyte)(jchar)102/*'f'*/, (jbyte)(jchar)102/*'f'*/,
|
|
(jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)114/*'r'*/, (jbyte)(jchar)83/*'S'*/,
|
|
(jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)122/*'z'*/, (jbyte)(jchar)101/*'e'*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string1_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array581_Mdclnt),
|
|
0, 17, (jint)0xfa19254dL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string2_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array12_Class),
|
|
0, 37, (jint)0xf1d4d05cL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string3_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array10_VMClass),
|
|
0, 2, (jint)0xb51L
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string4_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array12_FlChnnIm),
|
|
0, 1, (jint)0x3bL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string5_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array8_VMThrwbl),
|
|
0, 5, (jint)0x6039a4cL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string6_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array11_VMClass),
|
|
4, 6, (jint)0xba6fb858L
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string7_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array12_VMClass),
|
|
0, 9, (jint)0xcc058cccL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string8_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array11_VMClass),
|
|
0, 10, (jint)0xb4ac15d8L
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string9_VMClass
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array630_VMSstmPr),
|
|
0, 14, (jint)0x916b3fb1L
|
|
};
|
|
|
|
#ifdef CHKALL_java_lang_VMClass
|
|
#include "jcgochke.h"
|
|
#endif
|
|
|
|
#endif
|