< prev index next >

src/jdk/nashorn/internal/runtime/FindProperty.java

Print this page




 201 
 202     /**
 203      * Check if the property is in the scope
 204      * @return true if on scope
 205      */
 206     public boolean isScope() {
 207         return prototype.isScope();
 208     }
 209 
 210     /**
 211      * Get the property value from self as object.
 212      * @return the property value
 213      */
 214     public int getIntValue() {
 215         return property.getIntValue(getGetterReceiver(), getOwner());
 216     }
 217     /**
 218      * Get the property value from self as object.
 219      * @return the property value
 220      */
 221     public long getLongValue() {
 222         return property.getLongValue(getGetterReceiver(), getOwner());
 223     }
 224     /**
 225      * Get the property value from self as object.
 226      * @return the property value
 227      */
 228     public double getDoubleValue() {
 229         return property.getDoubleValue(getGetterReceiver(), getOwner());
 230     }
 231     /**
 232      * Get the property value from self as object.
 233      * @return the property value
 234      */
 235     public Object getObjectValue() {
 236         return property.getObjectValue(getGetterReceiver(), getOwner());
 237     }
 238 
 239     /**
 240      * Set the property value in self.
 241      *
 242      * @param value the new value
 243      * @param strict strict flag
 244      */
 245     public void setValue(final int value, final boolean strict) {
 246         property.setValue(getSetterReceiver(), getOwner(), value, strict);
 247     }
 248 
 249     /**
 250      * Set the property value in self.
 251      *
 252      * @param value the new value
 253      * @param strict strict flag
 254      */
 255     public void setValue(final long value, final boolean strict) {
 256         property.setValue(getSetterReceiver(), getOwner(), value, strict);
 257     }
 258 
 259     /**
 260      * Set the property value in self.
 261      *
 262      * @param value the new value
 263      * @param strict strict flag
 264      */
 265     public void setValue(final double value, final boolean strict) {
 266         property.setValue(getSetterReceiver(), getOwner(), value, strict);
 267     }
 268 
 269     /**
 270      * Set the property value in self.
 271      *
 272      * @param value the new value
 273      * @param strict strict flag
 274      */
 275     public void setValue(final Object value, final boolean strict) {




 201 
 202     /**
 203      * Check if the property is in the scope
 204      * @return true if on scope
 205      */
 206     public boolean isScope() {
 207         return prototype.isScope();
 208     }
 209 
 210     /**
 211      * Get the property value from self as object.
 212      * @return the property value
 213      */
 214     public int getIntValue() {
 215         return property.getIntValue(getGetterReceiver(), getOwner());
 216     }
 217     /**
 218      * Get the property value from self as object.
 219      * @return the property value
 220      */







 221     public double getDoubleValue() {
 222         return property.getDoubleValue(getGetterReceiver(), getOwner());
 223     }
 224     /**
 225      * Get the property value from self as object.
 226      * @return the property value
 227      */
 228     public Object getObjectValue() {
 229         return property.getObjectValue(getGetterReceiver(), getOwner());
 230     }
 231 
 232     /**
 233      * Set the property value in self.
 234      *
 235      * @param value the new value
 236      * @param strict strict flag
 237      */
 238     public void setValue(final int value, final boolean strict) {










 239         property.setValue(getSetterReceiver(), getOwner(), value, strict);
 240     }
 241 
 242     /**
 243      * Set the property value in self.
 244      *
 245      * @param value the new value
 246      * @param strict strict flag
 247      */
 248     public void setValue(final double value, final boolean strict) {
 249         property.setValue(getSetterReceiver(), getOwner(), value, strict);
 250     }
 251 
 252     /**
 253      * Set the property value in self.
 254      *
 255      * @param value the new value
 256      * @param strict strict flag
 257      */
 258     public void setValue(final Object value, final boolean strict) {


< prev index next >