101 static final String ACCESSORPROPERTY_TYPE = TYPE_ACCESSORPROPERTY.getInternalName(); 102 static final String ACCESSORPROPERTY_CREATE = "create"; 103 static final String ACCESSORPROPERTY_CREATE_DESC = 104 Type.getMethodDescriptor(TYPE_ACCESSORPROPERTY, TYPE_STRING, Type.INT_TYPE, TYPE_METHODHANDLE, TYPE_METHODHANDLE); 105 106 // PropertyMap 107 static final String PROPERTYMAP_TYPE = TYPE_PROPERTYMAP.getInternalName(); 108 static final String PROPERTYMAP_DESC = TYPE_PROPERTYMAP.getDescriptor(); 109 static final String PROPERTYMAP_NEWMAP = "newMap"; 110 static final String PROPERTYMAP_NEWMAP_DESC = Type.getMethodDescriptor(TYPE_PROPERTYMAP, TYPE_COLLECTION); 111 112 // PrototypeObject 113 static final String PROTOTYPEOBJECT_TYPE = TYPE_PROTOTYPEOBJECT.getInternalName(); 114 static final String PROTOTYPEOBJECT_SETCONSTRUCTOR = "setConstructor"; 115 static final String PROTOTYPEOBJECT_SETCONSTRUCTOR_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_OBJECT, TYPE_OBJECT); 116 117 // ScriptFunction 118 static final String SCRIPTFUNCTION_TYPE = TYPE_SCRIPTFUNCTION.getInternalName(); 119 static final String SCRIPTFUNCTION_SETARITY = "setArity"; 120 static final String SCRIPTFUNCTION_SETARITY_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, Type.INT_TYPE); 121 static final String SCRIPTFUNCTION_SETPROTOTYPE = "setPrototype"; 122 static final String SCRIPTFUNCTION_SETPROTOTYPE_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_OBJECT); 123 static final String SCRIPTFUNCTION_CREATEBUILTIN = "createBuiltin"; 124 static final String SCRIPTFUNCTION_CREATEBUILTIN_DESC = 125 Type.getMethodDescriptor(TYPE_SCRIPTFUNCTION, TYPE_STRING, TYPE_METHODHANDLE); 126 static final String SCRIPTFUNCTION_CREATEBUILTIN_SPECS_DESC = 127 Type.getMethodDescriptor(TYPE_SCRIPTFUNCTION, TYPE_STRING, TYPE_METHODHANDLE, TYPE_SPECIALIZATION_ARRAY); 128 static final String SCRIPTFUNCTION_INIT_DESC3 = 129 Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING, TYPE_METHODHANDLE, TYPE_SPECIALIZATION_ARRAY); 130 static final String SCRIPTFUNCTION_INIT_DESC4 = 131 Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING, TYPE_METHODHANDLE, TYPE_PROPERTYMAP, TYPE_SPECIALIZATION_ARRAY); 132 133 // ScriptObject 134 static final String SCRIPTOBJECT_TYPE = TYPE_SCRIPTOBJECT.getInternalName(); 135 static final String SCRIPTOBJECT_DESC = TYPE_SCRIPTOBJECT.getDescriptor(); 136 static final String SCRIPTOBJECT_INIT_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_PROPERTYMAP); 137 138 static final String GETTER_PREFIX = "G$"; 139 static final String SETTER_PREFIX = "S$"; 140 | 101 static final String ACCESSORPROPERTY_TYPE = TYPE_ACCESSORPROPERTY.getInternalName(); 102 static final String ACCESSORPROPERTY_CREATE = "create"; 103 static final String ACCESSORPROPERTY_CREATE_DESC = 104 Type.getMethodDescriptor(TYPE_ACCESSORPROPERTY, TYPE_STRING, Type.INT_TYPE, TYPE_METHODHANDLE, TYPE_METHODHANDLE); 105 106 // PropertyMap 107 static final String PROPERTYMAP_TYPE = TYPE_PROPERTYMAP.getInternalName(); 108 static final String PROPERTYMAP_DESC = TYPE_PROPERTYMAP.getDescriptor(); 109 static final String PROPERTYMAP_NEWMAP = "newMap"; 110 static final String PROPERTYMAP_NEWMAP_DESC = Type.getMethodDescriptor(TYPE_PROPERTYMAP, TYPE_COLLECTION); 111 112 // PrototypeObject 113 static final String PROTOTYPEOBJECT_TYPE = TYPE_PROTOTYPEOBJECT.getInternalName(); 114 static final String PROTOTYPEOBJECT_SETCONSTRUCTOR = "setConstructor"; 115 static final String PROTOTYPEOBJECT_SETCONSTRUCTOR_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_OBJECT, TYPE_OBJECT); 116 117 // ScriptFunction 118 static final String SCRIPTFUNCTION_TYPE = TYPE_SCRIPTFUNCTION.getInternalName(); 119 static final String SCRIPTFUNCTION_SETARITY = "setArity"; 120 static final String SCRIPTFUNCTION_SETARITY_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, Type.INT_TYPE); 121 static final String SCRIPTFUNCTION_SETDOCUMENTATION = "setDocumentation"; 122 static final String SCRIPTFUNCTION_SETDOCUMENTATION_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING); 123 static final String SCRIPTFUNCTION_SETPROTOTYPE = "setPrototype"; 124 static final String SCRIPTFUNCTION_SETPROTOTYPE_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_OBJECT); 125 static final String SCRIPTFUNCTION_CREATEBUILTIN = "createBuiltin"; 126 static final String SCRIPTFUNCTION_CREATEBUILTIN_DESC = 127 Type.getMethodDescriptor(TYPE_SCRIPTFUNCTION, TYPE_STRING, TYPE_METHODHANDLE); 128 static final String SCRIPTFUNCTION_CREATEBUILTIN_SPECS_DESC = 129 Type.getMethodDescriptor(TYPE_SCRIPTFUNCTION, TYPE_STRING, TYPE_METHODHANDLE, TYPE_SPECIALIZATION_ARRAY); 130 static final String SCRIPTFUNCTION_INIT_DESC3 = 131 Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING, TYPE_METHODHANDLE, TYPE_SPECIALIZATION_ARRAY); 132 static final String SCRIPTFUNCTION_INIT_DESC4 = 133 Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING, TYPE_METHODHANDLE, TYPE_PROPERTYMAP, TYPE_SPECIALIZATION_ARRAY); 134 135 // ScriptObject 136 static final String SCRIPTOBJECT_TYPE = TYPE_SCRIPTOBJECT.getInternalName(); 137 static final String SCRIPTOBJECT_DESC = TYPE_SCRIPTOBJECT.getDescriptor(); 138 static final String SCRIPTOBJECT_INIT_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_PROPERTYMAP); 139 140 static final String GETTER_PREFIX = "G$"; 141 static final String SETTER_PREFIX = "S$"; 142 |