/external/webkit/JavaScriptCore/tests/mozilla/js1_5/GetSet/ |
getset-001.js | 32 TestObject.prototype.y getter = 57 printStatus ("Basic Getter/ Setter test"); 60 reportCompare ("got <initial y>", t.y, "y getter, before set"); 63 reportCompare ("got new y", t.y, "y getter, after set"); 66 reportCompare (2, t.y, "y getter, after numeric set"); 70 reportCompare (d, t.y, "y getter, after date set");
|
getset-002.js | 28 y getter: function get_y () 52 printStatus ("Basic Getter/ Setter test (object literal notation)"); 56 reportCompare ("got <initial y>", t.y, "y getter, before set"); 59 reportCompare ("got new y", t.y, "y getter, after set"); 62 reportCompare (2, t.y, "y getter, after numeric set"); 66 reportCompare (d, t.y, "y getter, after date set");
|
getset-006.js | 26 * o.__lookupGetter__('p') returns the getter function for o.p, 27 * or undefined if o.p has no getter. Users can wrap and layer." 51 // The only setter and getter functions we'll use in the three sections below - 57 // SECTION1: define getter/setter directly on an object (not its prototype) 66 status ='In SECTION1 of test; looking up extant getter/setter'; 71 status = 'In SECTION1 of test; looking up nonexistent getter/setter'; 76 status = 'In SECTION1 of test; looking up getter/setter on nonexistent property'; 83 // SECTION2: define getter/setter in Object.prototype 93 status = 'In SECTION2 of test looking up extant getter/setter'; 98 status = 'In SECTION2 of test; looking up nonexistent getter/setter' [all...] |
getset-003.js | 22 * SUMMARY: Testing obj.prop getter/setter 28 var summary = 'Testing obj.prop getter/setter'; 43 // SECTION1: define getter/setter directly on an object (not its prototype) 48 obj.name getter = function() {this.nameGETS++; return this._name;} 74 // SECTION2: define getter/setter in Object.prototype 78 Object.prototype.name getter = function() {this.nameGETS++; return this._name;} 105 // SECTION 3: define getter/setter in prototype of user-defined constructor 112 TestObject.prototype.name getter = function() {this.nameGETS++; return this._name;}
|
getset-005.js | 26 * store the getter/setter functions in global variables. 47 // The getter/setter functions we'll use in all three sections below - 52 // SECTION1: define getter/setter directly on an object (not its prototype) 83 // SECTION2: define getter/setter in Object.prototype 114 // SECTION 3: define getter/setter in prototype of user-defined constructor
|
/external/v8/test/mjsunit/ |
debug-stepin-accessor.js | 66 return this.name; // getter 1
69 return { // getter 2
79 return this.name; // getter y
83 return this.name; // getter 3
100 expected_source_line_text = ' return this.name; // getter 1';
107 expected_source_line_text = ' return this.name; // getter 1';
114 expected_source_line_text = ' return this.name; // getter 1';
117 var x = c['getter' + i];
123 expected_source_line_text = ' return this.name; // getter 1';
130 expected_source_line_text = ' return this.name; // getter 1'; [all...] |
mirror-object.js | 195 // a has getter but no setter. 199 assertEquals('function', mirror.property('a').getter().type()); 201 assertEquals('function (){return \'a\';}', mirror.property('a').getter().source()); 202 // b has setter but no getter. 206 assertEquals('undefined', mirror.property('b').getter().type()); 210 // c has both getter and setter. The getter throws an exception. 214 assertEquals('function', mirror.property('c').getter().type()); 216 assertEquals('function (){throw \'c\';}', mirror.property('c').getter().source());
|
object-get-own-property-names.js | 72 // Check that getter properties are returned. 74 obj.__defineGetter__("getter", function() {}); 78 assertEquals("getter", propertyNames[0]);
|
indexed-accessors.js | 64 // Testing that a defined getter doesn't get lost due to inline caching. 97 // Using a setter where only a getter is defined throws an exception. 102 // Using a getter where only a setter is defined returns undefined. 111 // Complex case of using an undefined getter.
|
/external/webkit/WebCore/xml/ |
XPathResult.idl | 36 getter raises (DOMException); 39 getter raises (DOMException); 42 getter raises (DOMException); 45 getter raises (DOMException); 49 getter raises (DOMException);
|
XMLHttpRequest.idl | 83 readonly attribute [CustomGetter] DOMString responseText; // The custom getter implements ConvertNullStringTo=Null 86 getter raises(DOMException); 88 getter raises(DOMException);
|
/external/webkit/WebCore/bindings/v8/ |
V8SVGPODTypeWrapper.h | 76 // Getter wrapper 120 // Getter wrapper 170 static PassRefPtr<V8SVGStaticPODTypeWrapperWithParent> create(PassRefPtr<ParentType> parent, GetterMethod getter, SetterMethod setter) 172 return adoptRef(new V8SVGStaticPODTypeWrapperWithParent(parent, getter, setter)); 186 V8SVGStaticPODTypeWrapperWithParent(PassRefPtr<ParentType> parent, GetterMethod getter, SetterMethod setter) 188 , m_getter(getter) 208 static PassRefPtr<V8SVGDynamicPODTypeWrapper> create(PassRefPtr<PODTypeCreator> creator, GetterMethod getter, SetterMethod setter, CacheRemovalCallback cacheRemovalCallback) 210 return adoptRef(new V8SVGDynamicPODTypeWrapper(creator, getter, setter, cacheRemovalCallback)); 219 // Getter wrapper 232 V8SVGDynamicPODTypeWrapper(PassRefPtr<PODTypeCreator> creator, GetterMethod getter, SetterMethod setter, CacheRemovalCallback cacheRemovalCallback 295 GetterMethod getter; member in struct:WebCore::PODTypeWrapperCacheInfo [all...] |
/external/webkit/JavaScriptCore/runtime/ |
GetterSetter.h | 34 // This is an internal value object which stores getter and setter functions 47 JSObject* getter() const { return m_getter; } function in class:JSC::GetterSetter 48 void setGetter(JSObject* getter) { m_getter = getter; }
|
PropertyDescriptor.cpp | 75 JSValue PropertyDescriptor::getter() const function in class:JSC::PropertyDescriptor 91 if (attributes & (Getter | Setter)) { 93 m_getter = accessor->getter(); 104 void PropertyDescriptor::setAccessorDescriptor(JSValue getter, JSValue setter, unsigned attributes) 106 ASSERT(attributes & (Getter | Setter)); 107 ASSERT(getter || setter); 109 m_getter = getter; 149 void PropertyDescriptor::setGetter(JSValue getter) 151 m_getter = getter; 152 m_attributes |= Getter; [all...] |
PropertyDescriptor.h | 47 JSValue getter() const; 51 void setAccessorDescriptor(JSValue getter, JSValue setter, unsigned attributes); 71 // May be a getter/setter
|
ObjectConstructor.cpp | 120 description->putDirect(exec->propertyNames().get, descriptor.getter() ? descriptor.getter() : jsUndefined(), 0); 204 throwError(exec, TypeError, "Getter must be a function."); 233 throwError(exec, TypeError, "Invalid property. 'value' present on property with getter or setter."); 238 throwError(exec, TypeError, "Invalid property. 'writable' present on property with getter or setter."); 255 ASSERT((descriptor.attributes() & (Getter | Setter)) || (!descriptor.isAccessorDescriptor())); 281 if (descriptor.getter()) 282 markBuffer.append(descriptor.getter());
|
JSObject.cpp | 93 throwError(exec, TypeError, "setting a property that has only a getter"); 308 putDirectInternal(exec->globalData(), propertyName, getterSetter, attributes | Getter, true, slot); 312 // if we override an existing non-getter or non-setter. 339 // if we override an existing non-getter or non-setter. 358 JSObject* functionObject = asGetterSetter(value)->getter(); 519 if (JSObject* getterFunction = asGetterSetter(*location)->getter()) 563 target->putWithAttributes(exec, propertyName, descriptor.value() ? descriptor.value() : oldValue, attributes & ~(Getter | Setter)); 567 if (descriptor.getter() && descriptor.getter().isObject()) 568 target->defineGetter(exec, propertyName, asObject(descriptor.getter()), attributes) [all...] |
/external/webkit/WebCore/bindings/js/ |
JSSVGPODTypeWrapper.h | 60 // by taking function pointers to the getter & setter functions of the "creator object", the object 82 static PassRefPtr<JSSVGDynamicPODTypeWrapper> create(PassRefPtr<PODTypeCreator> creator, GetterMethod getter, SetterMethod setter) 84 return adoptRef(new JSSVGDynamicPODTypeWrapper(creator, getter, setter)); 99 JSSVGDynamicPODTypeWrapper(PassRefPtr<PODTypeCreator> creator, GetterMethod getter, SetterMethod setter) 101 , m_getter(getter) 189 static PassRefPtr<JSSVGStaticPODTypeWrapperWithParent> create(PassRefPtr<ParentType> parent, GetterMethod getter, SetterMethod setter) 191 return adoptRef(new JSSVGStaticPODTypeWrapperWithParent(parent, getter, setter)); 205 JSSVGStaticPODTypeWrapperWithParent(PassRefPtr<ParentType> parent, GetterMethod getter, SetterMethod setter) 207 , m_getter(getter) 281 , getter(0 313 GetterMethod getter; member in struct:WebCore::PODTypeWrapperCacheInfo [all...] |
/frameworks/base/awt/resources/org/apache/harmony/beans/internals/nls/ |
messages.properties | 18 beans.00=no getter for {0} property 26 beans.08=Number of parameters in getter method is not equal to 0. 27 beans.09=Parameter type in getter method does not corresponds to predefined. 28 beans.0A=Modifier for getter method should be public. 35 beans.11=no getter for property {0} found 36 beans.12=cannot access property {0} getter 51 beans.21=Modifier for indexed getter method should be public. 52 beans.22=Number of parameters in getter method is not equal to 1. 53 beans.23=Parameter in indexed getter method is not of integer type. 54 beans.24=Parameter type in indexed getter method does not correspond to predefined [all...] |
/frameworks/base/awt/java/beans/ |
PropertyDescriptor.java | 27 private Method getter; field in class:PropertyDescriptor 64 public PropertyDescriptor(String propertyName, Method getter, Method setter) 73 setReadMethod(getter); 101 if (getter == null && setter == null) { 125 public void setReadMethod(Method getter) throws IntrospectionException { 126 if (getter != null) { 127 int modifiers = getter.getModifiers(); 131 Class<?>[] parameterTypes = getter.getParameterTypes(); 135 Class<?> returnType = getter.getReturnType(); 144 this.getter = getter [all...] |
IndexedPropertyDescriptor.java | 43 public IndexedPropertyDescriptor(String propertyName, Method getter, Method setter, 45 super(propertyName, getter, setter); 49 (getter != null || setter != null)) { 64 // array getter 74 // indexed getter
|
/external/webkit/WebCore/dom/ |
Range.idl | 27 getter raises(DOMException); 29 getter raises(DOMException); 31 getter raises(DOMException); 33 getter raises(DOMException); 35 getter raises(DOMException); 37 getter raises(DOMException);
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/util/ |
TimezoneGetter.java | 42 public static void setInstance(TimezoneGetter getter) { 46 instance = getter;
|
/external/v8/src/ |
regexp.js | 344 // Getter and setter for the input. 353 %DefineAccessor($RegExp, 'input', GETTER, RegExpGetInput, DONT_DELETE); 355 %DefineAccessor($RegExp, '$_', GETTER, RegExpGetInput, DONT_ENUM | DONT_DELETE); 357 %DefineAccessor($RegExp, '$input', GETTER, RegExpGetInput, DONT_ENUM | DONT_DELETE); 367 // Getter and setter for multiline. 372 %DefineAccessor($RegExp, 'multiline', GETTER, RegExpGetMultiline, DONT_DELETE); 374 %DefineAccessor($RegExp, '$*', GETTER, RegExpGetMultiline, DONT_ENUM | DONT_DELETE); 382 %DefineAccessor($RegExp, 'lastMatch', GETTER, RegExpGetLastMatch, DONT_DELETE); 384 %DefineAccessor($RegExp, '$&', GETTER, RegExpGetLastMatch, DONT_ENUM | DONT_DELETE); 386 %DefineAccessor($RegExp, 'lastParen', GETTER, RegExpGetLastParen, DONT_DELETE) [all...] |
/external/v8/test/mjsunit/regress/ |
regress-612.js | 34 // Define getter which currently moves object into slow mode. 41 // Now object is turned into fast mode, but it has getter defined above...
|