org.mozilla.javascript.JavaAdapter.class Maven / Gradle / Ivy
The newest version!
???? 1?
?
,??
?? ??
?
?
?
?
?
?
,
7
! "#
$
%
&'
()
*
,+
,
-.
/0A
1234
<?
5
67
8J9:;<=&
F>
?@
JA
BCW
D
JE
FG
FH
IJ
TKLM
W?
WN
FO
WP
WQ
R
S
FTLUVW
aXMN
aY
aZ
7[
\
]
^
J?
_
?`
ab
ac
?
?d
Je
f
g
?h
i
j
ak
lm
|n
|o
|p
|q
|r
|s
atu
??v
??
w
?xy
?zw
{
?|
?}
a~
a
?}
????
?
??
?????? B?
?
?? M?
??
??
??
?
?? M??
???
a?
a?
a?
a??$%
a??
a???
a?#
?
?
a? ???? ??0???
7?? ?????????????
Q
?>
a????
??
?
?Q
a???
??
?
a???
?
a?
a?
a?
a?
a?
???
?
,?
?
??
? ?? ??
?
?
??
??? JavaAdapterSignature InnerClasses FTAG Ljava/lang/Object; Id_JavaAdapter I
ConstantValue ()V Code LineNumberTable LocalVariableTable this $Lorg/mozilla/javascript/JavaAdapter; init G(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Z)V cx Lorg/mozilla/javascript/Context; scope #Lorg/mozilla/javascript/Scriptable; sealed Z obj ctor )Lorg/mozilla/javascript/IdFunctionObject;
execIdCall ?(Lorg/mozilla/javascript/IdFunctionObject;Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Object; f thisObj args [Ljava/lang/Object;
convertResult 7(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object; result c Ljava/lang/Class; LocalVariableTypeTable Ljava/lang/Class<*>; Signature :(Ljava/lang/Object;Ljava/lang/Class<*>;)Ljava/lang/Object; createAdapterWrapper Z(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Object;)Lorg/mozilla/javascript/Scriptable; adapter res )Lorg/mozilla/javascript/NativeJavaObject; getAdapterSelf 7(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object; adapterClass self Ljava/lang/reflect/Field;
Exceptions :(Ljava/lang/Class<*>;Ljava/lang/Object;)Ljava/lang/Object; js_createAdapter j(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Object; arg i ex Ljava/lang/Exception; N
superClass intfs [Ljava/lang/Class; interfaceCount
interfaces ctorParms ctorArgs [Ljava/lang/Class<*>; writeAdapterObject 1(Ljava/lang/Object;Ljava/io/ObjectOutputStream;)V delegee e "Ljava/lang/IllegalAccessException; Ljava/lang/NoSuchFieldException;
javaObject out Ljava/io/ObjectOutputStream; cl interfaceNames [Ljava/lang/String; readAdapterObject R(Lorg/mozilla/javascript/Scriptable;Ljava/io/ObjectInputStream;)Ljava/lang/Object; factory 'Lorg/mozilla/javascript/ContextFactory; "Ljava/lang/InstantiationException; -Ljava/lang/reflect/InvocationTargetException; !Ljava/lang/NoSuchMethodException; in Ljava/io/ObjectInputStream; getObjectFunctionNames I(Lorg/mozilla/javascript/Scriptable;)Lorg/mozilla/javascript/ObjToIntMap; !Lorg/mozilla/javascript/Function; length id Ljava/lang/String; value ids map $Lorg/mozilla/javascript/ObjToIntMap; getAdapterClass |(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class;[Ljava/lang/Class;Lorg/mozilla/javascript/Scriptable;)Ljava/lang/Class; adapterName code [B cache #Lorg/mozilla/javascript/ClassCache; generated Ljava/util/Map; names sig 9Lorg/mozilla/javascript/JavaAdapter$JavaAdapterSignature; ^Ljava/util/Map;>; ?(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class<*>;[Ljava/lang/Class<*>;Lorg/mozilla/javascript/Scriptable;)Ljava/lang/Class<*>; createAdapterCode o(Lorg/mozilla/javascript/ObjToIntMap;Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;Ljava/lang/String;)[B method Ljava/lang/reflect/Method; mods
methodName argTypes methodSignature methodKey j methods [Ljava/lang/reflect/Method; isAbstractMethod k functionName parms
functionNames scriptClassName cfw 'Lorg/mozilla/classfile/ClassFileWriter; interfacesCount superName generatedOverrides generatedMethods iter Iterator -Lorg/mozilla/javascript/ObjToIntMap$Iterator; u(Lorg/mozilla/javascript/ObjToIntMap;Ljava/lang/String;Ljava/lang/Class<*>;[Ljava/lang/Class<*>;Ljava/lang/String;)[B getOverridableMethods .(Ljava/lang/Class;)[Ljava/lang/reflect/Method; intf arr$ len$ i$ list Ljava/util/ArrayList; skip Ljava/util/HashSet; 1Ljava/util/ArrayList; 'Ljava/util/HashSet; 1(Ljava/lang/Class<*>;)[Ljava/lang/reflect/Method; appendOverridableMethods <(Ljava/lang/Class;Ljava/util/ArrayList;Ljava/util/HashSet;)V o(Ljava/lang/Class<*>;Ljava/util/ArrayList;Ljava/util/HashSet;)V loadAdapterClass '(Ljava/lang/String;[B)Ljava/lang/Class; staticDomain protectionDomain Ljava/security/ProtectionDomain; className
classBytes domainClass loader -Lorg/mozilla/javascript/GeneratedClassLoader; *(Ljava/lang/String;[B)Ljava/lang/Class<*>; getFunction X(Lorg/mozilla/javascript/Scriptable;Ljava/lang/String;)Lorg/mozilla/javascript/Function; x
callMethod ?(Lorg/mozilla/javascript/ContextFactory;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Function;[Ljava/lang/Object;J)Ljava/lang/Object;
argsToWrap J doCall ?(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Function;[Ljava/lang/Object;J)Ljava/lang/Object; runScript D(Lorg/mozilla/javascript/Script;)Lorg/mozilla/javascript/Scriptable; script Lorg/mozilla/javascript/Script; generateCtor N(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/String;Ljava/lang/String;)V generateSerialCtor generateEmptyCtor `(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V generatePushWrappedArgs =(Lorg/mozilla/classfile/ClassFileWriter;[Ljava/lang/Class;I)V arrayLength paramOffset @(Lorg/mozilla/classfile/ClassFileWriter;[Ljava/lang/Class<*>;I)V generateWrapArg <(Lorg/mozilla/classfile/ClassFileWriter;ILjava/lang/Class;)I typeName argType size ?(Lorg/mozilla/classfile/ClassFileWriter;ILjava/lang/Class<*>;)I generateReturnResult <(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/Class;Z)V
retTypeStr retType callConvertResult ?(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/Class<*>;Z)V generateMethod q(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/Class;)V genName
returnType sb Ljava/lang/StringBuffer; paramsEnd convertionMask w(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V generatePushParam paramType generatePopResult ;(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/Class;)V >(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/Class<*>;)V
generateSuper ?(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/Class;)V ?(Lorg/mozilla/classfile/ClassFileWriter;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V getMethodSignature @(Ljava/lang/reflect/Method;[Ljava/lang/Class;)Ljava/lang/String; C(Ljava/lang/reflect/Method;[Ljava/lang/Class<*>;)Ljava/lang/String; appendMethodSignature >([Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/StringBuffer;)I type
firstLocal D([Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/StringBuffer;)I appendTypeString C(Ljava/lang/StringBuffer;Ljava/lang/Class;)Ljava/lang/StringBuffer;
typeLetter C F(Ljava/lang/StringBuffer;Ljava/lang/Class<*>;)Ljava/lang/StringBuffer; getArgsToConvert ([Ljava/lang/Class;)[I count array [I ([Ljava/lang/Class<*>;)[I
access$000 x0 x1 x2 x3 x4 x5
SourceFile JavaAdapter.java?? "org/mozilla/javascript/JavaAdapter 'org/mozilla/javascript/IdFunctionObject ? ? JavaAdapter?????????01???? ????????? 'org/mozilla/javascript/NativeJavaObject???????? msg.adapter.zero.args?? java/lang/Class &org/mozilla/javascript/NativeJavaClass msg.not.java.class.arg?????????? msg.only.one.super?? ^_ java/lang/Object
)* java/lang/Exception?? java/lang/String? java/lang/IllegalAccessException java/lang/NoSuchFieldException java/io/IOException?? !org/mozilla/javascript/Scriptable java/lang/InstantiationException +java/lang/reflect/InvocationTargetException java/lang/NoSuchMethodException java/lang/ClassNotFoundException "org/mozilla/javascript/ObjToIntMap !" org/mozilla/javascript/Function#$%&'?()*TU 7org/mozilla/javascript/JavaAdapter$JavaAdapterSignature+, java/lang/StringBuilder-./?-0??lm??1?%2 %org/mozilla/classfile/ClassFileWriter 345678??????9:;?<=>?>@A?BC??D?????E>?? +org/mozilla/javascript/ObjToIntMap$IteratorFGH?IJ?KLM java/util/ArrayList java/util/HashSet???? java/lang/reflect/MethodNOP:Q?R?S>T>UV? java/security/CodeSource java/security/ProtectionDomainWXYZ[\]^?_`a ?bcdefghi $org/mozilla/javascript/JavaAdapter$1 jhklmnophq $org/mozilla/javascript/JavaAdapter$2r M(Lorg/mozilla/javascript/ContextFactory;Lorg/mozilla/javascript/Scriptable;)Vs5R tuRuvw p(Lorg/mozilla/javascript/ContextFactory;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;)VRxy ??z?R{?| java/lang/Boolean (Z)V} valueOf (C)Ljava/lang/String; java/lang/Double?? (D)V~ org/mozilla/javascript/Context toBoolean (Ljava/lang/Object;)Z toString &(Ljava/lang/Object;)Ljava/lang/String; charAt (I)C toNumber (Ljava/lang/Object;)D java/lang/RuntimeException Unexpected return type forName %(Ljava/lang/String;)Ljava/lang/Class; java/lang/StringBuffer??y?? AJavaAdapter can not subclass methods with more then 64 arguments.??y???? ? ? ? ? ??? super$??????-???????????-? %org/mozilla/javascript/IdFunctionCall s(Lorg/mozilla/javascript/IdFunctionCall;Ljava/lang/Object;ILjava/lang/String;ILorg/mozilla/javascript/Scriptable;)V markAsConstructor &(Lorg/mozilla/javascript/Scriptable;)V
sealObject exportAsScopeProperty hasTag methodId ()I unknown ()Ljava/lang/RuntimeException; org/mozilla/javascript/Undefined instance $org/mozilla/javascript/ScriptRuntime ObjectClass StringClass jsToJava 'org/mozilla/javascript/ScriptableObject getTopLevelScope H(Lorg/mozilla/javascript/Scriptable;)Lorg/mozilla/javascript/Scriptable; J(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Object;Ljava/lang/Class;Z)V setPrototype getDeclaredField -(Ljava/lang/String;)Ljava/lang/reflect/Field; java/lang/reflect/Field get &(Ljava/lang/Object;)Ljava/lang/Object;
typeError0 6(Ljava/lang/String;)Lorg/mozilla/javascript/EcmaError; (I)Ljava/lang/String;
typeError2 Z(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/mozilla/javascript/EcmaError; getClassObject ()Ljava/lang/Class; isInterface ()Z getName ()Ljava/lang/String; java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V toObject z(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Ljava/lang/Object;)Lorg/mozilla/javascript/Scriptable; ContextFactoryClass ScriptableClass
getFactory )()Lorg/mozilla/javascript/ContextFactory; getConstructor 3([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; java/lang/reflect/Constructor newInstance '([Ljava/lang/Object;)Ljava/lang/Object; throwAsScriptRuntimeEx 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; getClass
getSuperclass java/io/ObjectOutputStream writeObject (Ljava/lang/Object;)V
getInterfaces ()[Ljava/lang/Class; getField getCurrentContext "()Lorg/mozilla/javascript/Context; java/io/ObjectInputStream
readObject ()Ljava/lang/Object; (Ljava/lang/String;)V getPropertyIds 8(Lorg/mozilla/javascript/Scriptable;)[Ljava/lang/Object; (I)V getProperty I(Lorg/mozilla/javascript/Scriptable;Ljava/lang/String;)Ljava/lang/Object; toInt32 (Ljava/lang/Object;)I put (Ljava/lang/Object;I)V !org/mozilla/javascript/ClassCache H(Lorg/mozilla/javascript/Scriptable;)Lorg/mozilla/javascript/ClassCache; getInterfaceAdapterCacheMap ()Ljava/util/Map; J(Ljava/lang/Class;[Ljava/lang/Class;Lorg/mozilla/javascript/ObjToIntMap;)V
java/util/Map append -(Ljava/lang/String;)Ljava/lang/StringBuilder; newClassSerialNumber (I)Ljava/lang/StringBuilder; isCachingEnabled 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V addField ((Ljava/lang/String;Ljava/lang/String;S)V addInterface replace (CC)Ljava/lang/String;
getMethods ()[Ljava/lang/reflect/Method; getModifiers java/lang/reflect/Modifier isStatic (I)Z isFinal getParameterTypes has getMethod @(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
getReturnType
isAbstract '(Lorg/mozilla/javascript/ObjToIntMap;)V start done getKey getValue next toByteArray ()[B toArray (([Ljava/lang/Object;)[Ljava/lang/Object; getDeclaredMethods contains add isPublic isProtected )org/mozilla/javascript/SecurityController getStaticSecurityDomainClass getProtectionDomain "()Ljava/security/ProtectionDomain;
getCodeSource ()Ljava/security/CodeSource; createLoader X(Ljava/lang/ClassLoader;Ljava/lang/Object;)Lorg/mozilla/javascript/GeneratedClassLoader; +org/mozilla/javascript/GeneratedClassLoader defineClass linkClass (Ljava/lang/Class;)V NOT_FOUND notFunctionError B(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/RuntimeException; %org/mozilla/javascript/ContextFactory getGlobal getParentScope %()Lorg/mozilla/javascript/Scriptable; call ?(Lorg/mozilla/javascript/ContextFactory;Lorg/mozilla/javascript/Callable;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Object; ~(Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Function;[Ljava/lang/Object;J)V :(Lorg/mozilla/javascript/ContextAction;)Ljava/lang/Object; getWrapFactory &()Lorg/mozilla/javascript/WrapFactory; "org/mozilla/javascript/WrapFactory wrap z(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object; ?(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Object; "(Lorg/mozilla/javascript/Script;)V startMethod addInvoke :(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
stopMethod (S)V (ILjava/lang/String;)V addPush isPrimitive (II)V TYPE java/lang/Character java/lang/Void addLoadConstant reportRuntimeError0 ?(Ljava/lang/String;)Lorg/mozilla/javascript/EvaluatorException; (J)V addALoad addILoad addLLoad addFLoad addDLoad org/mozilla/javascript/Kit codeBug equals (C)Ljava/lang/StringBuffer; java/lang/Long isArray getComponentType toUpperCase (C)C ,(Ljava/lang/String;)Ljava/lang/StringBuffer; 1 , ? ? ? ? # 3 *? ?
6 <
? /? Y? N? Y-? +? :? ? ?
? ? o p r s $ t ) v . w 4 /
/ / ' ? +? ? ? +?
? ,-? ?+? ? |
} ~ ? >
k *? ? +? ? +? ? ?*+? ? ? ? ? ? ! " # $% l *? M? Y,+? N-*? -? ? ? ? ? * &