org.mozilla.javascript.JavaMembers.class Maven / Gradle / Ivy
The newest version!
???? 1?
??
-?
??
??
??
?????
??
?? ???
? ?? ?? ??
??
????
??
?? ??
??? ? ??
}?
}?
[??
?
??
??
??
??
??
??? (? ? ? }??
??
L???
??
???
-?
????????
??
???
|?
|??
A?
A?
A??
A?
A?
??
|? ??
|?? L?
??
|?
??
}??
R?
R???
}?
L?
L?
???????0
??
??
??
[?
??
[??
d?
???
???
i??
i???
i?
??
??
??
??
[??
??
u?
u???????
}?
u?
u
L
?
?
( ? ?
?
?
|
|
|
|
i? ??
?
?
?
?
?
}! "
?#
$%&
?'(
??
?)
?*+*?*?R
?,
?-
}. /0
??? (? (1
23
245
?6 7
289
?: MethodSignature InnerClasses cl Ljava/lang/Class; Signature Ljava/lang/Class<*>; members Ljava/util/Map; 5Ljava/util/Map; fieldAndMethods KLjava/util/Map;
staticMembers staticFieldAndMethods ctors #[Lorg/mozilla/javascript/MemberBox; includePrivate Z 7(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class;)V Code LineNumberTable LocalVariableTable this $Lorg/mozilla/javascript/JavaMembers; scope #Lorg/mozilla/javascript/Scriptable; LocalVariableTypeTable :(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class<*>;)V 8(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class;Z)V cx Lorg/mozilla/javascript/Context; shutter %Lorg/mozilla/javascript/ClassShutter; includeProtected ;(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class<*>;Z)V has (Ljava/lang/String;Z)Z name Ljava/lang/String; isStatic ht obj Ljava/lang/Object; get \(Lorg/mozilla/javascript/Scriptable;Ljava/lang/String;Ljava/lang/Object;Z)Ljava/lang/Object; bp %Lorg/mozilla/javascript/BeanProperty; rval type field Ljava/lang/reflect/Field; ex Ljava/lang/Exception;
javaObject member put ](Lorg/mozilla/javascript/Scriptable;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Z)V fam (Lorg/mozilla/javascript/FieldAndMethods; setType args [Ljava/lang/Object; str accessEx "Ljava/lang/IllegalAccessException; argEx $Ljava/lang/IllegalArgumentException; javaValue value getIds (Z)[Ljava/lang/Object; map
javaSignature %(Ljava/lang/Class;)Ljava/lang/String; length I sb Ljava/lang/StringBuffer; arrayDimension suffix ((Ljava/lang/Class<*>;)Ljava/lang/String; liveConnectSignature &([Ljava/lang/Class;)Ljava/lang/String; i argTypes [Ljava/lang/Class; N [Ljava/lang/Class<*>; )([Ljava/lang/Class<*>;)Ljava/lang/String; findExplicitFunction 7(Ljava/lang/String;Z)Lorg/mozilla/javascript/MemberBox; njm )Lorg/mozilla/javascript/NativeJavaMethod; trueName sig sigStart methodsOrCtors isCtor getExplicitFunction fun .Lorg/mozilla/javascript/NativeJavaConstructor; prototype methodOrCtor "Lorg/mozilla/javascript/MemberBox; discoverAccessibleMethods 0(Ljava/lang/Class;ZZ)[Ljava/lang/reflect/Method; clazz _Ljava/util/Map; 3(Ljava/lang/Class<*>;ZZ)[Ljava/lang/reflect/Method; %(Ljava/lang/Class;Ljava/util/Map;ZZ)V method Ljava/lang/reflect/Method; mods methods [Ljava/lang/reflect/Method; 4Lorg/mozilla/javascript/JavaMembers$MethodSignature; e Ljava/lang/SecurityException;
interfaces
superclass x(Ljava/lang/Class<*>;Ljava/util/Map;ZZ)V reflect '(Lorg/mozilla/javascript/Scriptable;Z)V overloadedMethods !Lorg/mozilla/javascript/ObjArray; methodBoxes i$ Ljava/util/Iterator; tableCursor fmht oldField ch1 C njmSet
nameComponent beanPropertyName ch0 v getter setter setters
setterName memberIsGetMethod memberIsSetMethod memberIsIsMethod key toAdd fields [Ljava/lang/reflect/Field; constructors [Ljava/lang/reflect/Constructor; HLjava/util/Map; #[Ljava/lang/reflect/Constructor<*>; getAccessibleConstructors "()[Ljava/lang/reflect/Constructor; cons %()[Ljava/lang/reflect/Constructor<*>; getAccessibleFields ()[Ljava/lang/reflect/Field; declared
fieldsList Ljava/util/List; currentClass +Ljava/util/List;
findGetter X(ZLjava/util/Map;Ljava/lang/String;Ljava/lang/String;)Lorg/mozilla/javascript/MemberBox; njmGet prefix propertyName
getterName ~(ZLjava/util/Map;Ljava/lang/String;Ljava/lang/String;)Lorg/mozilla/javascript/MemberBox; extractGetMethod H([Lorg/mozilla/javascript/MemberBox;Z)Lorg/mozilla/javascript/MemberBox; methodIdx extractSetMethod Y(Ljava/lang/Class;[Lorg/mozilla/javascript/MemberBox;Z)Lorg/mozilla/javascript/MemberBox; params pass \(Ljava/lang/Class<*>;[Lorg/mozilla/javascript/MemberBox;Z)Lorg/mozilla/javascript/MemberBox; getFieldAndMethodsObjects G(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Object;Z)Ljava/util/Map; famNew len result ?(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Object;Z)Ljava/util/Map; lookupClass l(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class;Ljava/lang/Class;Z)Lorg/mozilla/javascript/JavaMembers; parent dynamicType
staticType cache #Lorg/mozilla/javascript/ClassCache; ct ILjava/util/Map;Lorg/mozilla/javascript/JavaMembers;>; r(Lorg/mozilla/javascript/Scriptable;Ljava/lang/Class<*>;Ljava/lang/Class<*>;Z)Lorg/mozilla/javascript/JavaMembers; reportMemberNotFound 0(Ljava/lang/String;)Ljava/lang/RuntimeException;
memberName
SourceFile JavaMembers.java ? ? ?;<=>?@ABCDEFGHI msg.access.prohibitedJKLM ? ? java/util/HashMap ? ? ? ? ? ?78N;O ?P ?Q ? !org/mozilla/javascript/ScriptableR@ #org/mozilla/javascript/BeanPropertyH%S ?TU,VWX java/lang/reflect/FieldYX java/lang/ExceptionZ[\]^_`abc?? &org/mozilla/javascript/FieldAndMethods ? ?I%J java/lang/Objectdefg msg.java.internal.private msg.java.method.assignh java/lang/IllegalAccessExceptionij "java/lang/IllegalArgumentException msg.java.internal.field.typekXlmnopjqrstuvX []wxj java/lang/StringBuffer ?yz{|F ()z}~ ? ??? 'org/mozilla/javascript/NativeJavaMethod/ ????^u ,org/mozilla/javascript/NativeJavaConstructor ???? ?? ??&+?? java/lang/reflect/Method???M???M?? 2org/mozilla/javascript/JavaMembers$MethodSignature ???X java/lang/SecurityException?? java/lang/StringBuilder /Could not discover accessible methods of class z? due to lack of privileges, "attemping superclasses/interfaces.????&' ?M org/mozilla/javascript/ObjArray?????????u?? java/lang/String org/mozilla/javascript/MemberBox ?? ?????[\ ?? ? ? ? ??X?? Could not access field
of class due to lack of privileges.?I set is????????F??z??? java/lang/reflect/Member?Mbclmlj ??WX ??? ??X??? 'Could not access constructor of class ?X java/util/ArrayList?\????\ij ?u?? ? ? ?? ???? "org/mozilla/javascript/JavaMembers?u? ??u msg.java.member.not.found?? ()V %org/mozilla/javascript/ContextFactory getGlobal )()Lorg/mozilla/javascript/ContextFactory; enterContext "()Lorg/mozilla/javascript/Context; org/mozilla/javascript/Context getClassShutter '()Lorg/mozilla/javascript/ClassShutter; java/lang/Class getName ()Ljava/lang/String; #org/mozilla/javascript/ClassShutter visibleToScripts (Ljava/lang/String;)Z reportRuntimeError1 Q(Ljava/lang/String;Ljava/lang/Object;)Lorg/mozilla/javascript/EvaluatorException;
hasFeature (I)Z exit
java/util/Map &(Ljava/lang/Object;)Ljava/lang/Object; NOT_FOUND
getContext emptyArgs invoke 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; ()Ljava/lang/reflect/Method;
getReturnType ()Ljava/lang/Class; getType throwAsScriptRuntimeEx 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; 'org/mozilla/javascript/ScriptableObject getTopLevelScope H(Lorg/mozilla/javascript/Scriptable;)Lorg/mozilla/javascript/Scriptable; 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; jsToJava 7(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object; call ?(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Object; '(Ljava/lang/Object;Ljava/lang/Object;)V getModifiers ()I getClass reportRuntimeError3 u(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lorg/mozilla/javascript/EvaluatorException; keySet ()Ljava/util/Set; size
java/util/Set toArray (([Ljava/lang/Object;)[Ljava/lang/Object; isArray ()Z getComponentType concat &(Ljava/lang/String;)Ljava/lang/String; (I)V append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; toString (C)Ljava/lang/StringBuffer; indexOf (I)I substring (II)Ljava/lang/String;
regionMatches (ILjava/lang/String;II)Z getFunctionPrototype %(Lorg/mozilla/javascript/MemberBox;)V setPrototype &(Lorg/mozilla/javascript/Scriptable;)V 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 7(Lorg/mozilla/javascript/MemberBox;Ljava/lang/String;)V values ()Ljava/util/Collection; java/util/Collection java/lang/reflect/Modifier isPublic getDeclaredMethods ()[Ljava/lang/reflect/Method; isProtected
setAccessible (Z)V (Ljava/lang/reflect/Method;)V
getSuperclass
getMethods -(Ljava/lang/String;)Ljava/lang/StringBuilder;
reportWarning (Ljava/lang/String;)V
getInterfaces ()[Ljava/lang/Class; org/mozilla/javascript/Kit codeBug ()Ljava/lang/RuntimeException; add (Ljava/lang/Object;)V iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; (I)Ljava/lang/Object; &([Lorg/mozilla/javascript/MemberBox;)V $org/mozilla/javascript/ScriptRuntime setFunctionProtoAndParent K(Lorg/mozilla/javascript/BaseFunction;Lorg/mozilla/javascript/Scriptable;)V b(Lorg/mozilla/javascript/Scriptable;[Lorg/mozilla/javascript/MemberBox;Ljava/lang/reflect/Field;)V getDeclaringClass isAssignableFrom (Ljava/lang/Class;)Z
startsWith (I)Ljava/lang/String; charAt (I)C java/lang/Character isUpperCase (C)Z toLowerCase (C)C (C)Ljava/lang/StringBuilder; containsKey (Ljava/lang/Object;)Z isPrivate p(Lorg/mozilla/javascript/MemberBox;Lorg/mozilla/javascript/MemberBox;Lorg/mozilla/javascript/NativeJavaMethod;)V "(Ljava/lang/reflect/Constructor;)V
ClassClass getDeclaredConstructors java/lang/reflect/Constructor )([Ljava/lang/reflect/AccessibleObject;Z)V getConstructors getDeclaredFields java/util/List getFields java/lang/Void TYPE !org/mozilla/javascript/ClassCache H(Lorg/mozilla/javascript/Scriptable;)Lorg/mozilla/javascript/ClassCache; getClassCacheMap ()Ljava/util/Map; isInterface ObjectClass isCachingEnabled reportRuntimeError2 c(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/mozilla/javascript/EvaluatorException; ? - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \ *+,? ? ?
; <