134 * 135 * @param obj the script object 136 * @return filled in {@code PropertyDescriptor} 137 * 138 */ 139 public PropertyDescriptor fillFrom(ScriptObject obj); 140 141 /** 142 * Get the type of this property descriptor. 143 * @return property descriptor type, one of {@link PropertyDescriptor#GENERIC}, {@link PropertyDescriptor#DATA} and {@link PropertyDescriptor#ACCESSOR} 144 */ 145 public int type(); 146 147 /** 148 * Wrapper for {@link ScriptObject#has(Object)} 149 * 150 * @param key property key 151 * @return true if property exists in implementor 152 */ 153 public boolean has(Object key); 154 } 155 | 134 * 135 * @param obj the script object 136 * @return filled in {@code PropertyDescriptor} 137 * 138 */ 139 public PropertyDescriptor fillFrom(ScriptObject obj); 140 141 /** 142 * Get the type of this property descriptor. 143 * @return property descriptor type, one of {@link PropertyDescriptor#GENERIC}, {@link PropertyDescriptor#DATA} and {@link PropertyDescriptor#ACCESSOR} 144 */ 145 public int type(); 146 147 /** 148 * Wrapper for {@link ScriptObject#has(Object)} 149 * 150 * @param key property key 151 * @return true if property exists in implementor 152 */ 153 public boolean has(Object key); 154 155 /** 156 * Check existence and compare attributes of descriptors. 157 * 158 * @return true if every field of this desc exists in otherDesc and has the same value. 159 */ 160 public boolean hasAndEquals(PropertyDescriptor otherDesc); 161 } 162 |