/** * @see net.sourceforge.htmlunit.corejs.javascript.Scriptable#getIds */ public Object[] getIds() { return obj.getIds(); } /**
public Object[] getIds() { return prototype.getIds(); }
/** * {@inheritDoc} */ @Override public Object[] getIds() { final Set<Object> objects = new LinkedHashSet<>(); for (final Object o : super.getIds()) { objects.add(o); } for (Class<?> c = getMethodOrConstructor().getDeclaringClass().getSuperclass(); c != null; c = c.getSuperclass()) { final Object scripatble = getParentScope().get(c.getSimpleName(), this); if (scripatble instanceof Scriptable) { for (Object id : ((Scriptable) scripatble).getIds()) { objects.add(id); } } } return objects.toArray(new Object[objects.size()]); }
/** * {@inheritDoc} */ @Override public Object[] getIds() { final Set<Object> objects = new LinkedHashSet<>(); for (final Object o : super.getIds()) { objects.add(o); } for (Class<?> c = getMethodOrConstructor().getDeclaringClass().getSuperclass(); c != null; c = c.getSuperclass()) { final Object scripatble = getParentScope().get(c.getSimpleName(), this); if (scripatble instanceof Scriptable) { for (Object id : ((Scriptable) scripatble).getIds()) { objects.add(id); } } } return objects.toArray(new Object[0]); }
: obj.getIds(); String lastPart = names[names.length-1]; for (int i=0; i < ids.length; i++) {
private int getRecursiveAttributesLength() { int length = 0; for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { length += object.getIds().length; } return length; }
private int getRecursiveAttributesLength() { int length = 0; for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { length += object.getIds().length; } return length; }
private boolean isRecursiveAttribute(final String name) { for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { for (final Object id : object.getIds()) { if (name.equals(Context.toString(id))) { return true; } } } return false; }
private boolean isRecursiveAttribute(final String name) { for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { for (final Object id : object.getIds()) { if (name.equals(Context.toString(id))) { return true; } } } return false; }
private int getRecursiveAttributesLength() { int length = 0; for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { length += object.getIds().length; } return length; }
private boolean isRecursiveAttribute(final String name) { for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { for (final Object id : object.getIds()) { if (name.equals(Context.toString(id))) { return true; } } } return false; }
private String getRecusiveAttributeNameAt(final int index) { int i = 0; for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { for (final Object id : object.getIds()) { if (i == index) { return Context.toString(id); } i++; } } return null; } }
ids = ((DebuggableObject)scriptable).getAllIds(); } else { ids = scriptable.getIds();
private String getRecusiveAttributeNameAt(final int index) { int i = 0; for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { for (final Object id : object.getIds()) { if (i == index) { return Context.toString(id); } i++; } } return null; } }
private String getRecusiveAttributeNameAt(final int index) { int i = 0; for (Scriptable object = getDomNodeOrDie().getScriptObject(); object != null; object = object.getPrototype()) { for (final Object id : object.getIds()) { if (i == index) { return Context.toString(id); } i++; } } return null; } }
private static void enumChangeObject(IdEnumeration x) { Object[] ids = null; while (x.obj != null) { ids = x.obj.getIds(); if (ids.length != 0) { break; } x.obj = x.obj.getPrototype(); } if (x.obj != null && x.ids != null) { Object[] previous = x.ids; int L = previous.length; if (x.used == null) { x.used = new ObjToIntMap(L); } for (int i = 0; i != L; ++i) { x.used.intern(previous[i]); } } x.ids = ids; x.index = 0; }
for (final Object id : obj.getIds()) { if (id instanceof String) { final String s = (String) id;
for (final Object id : obj.getIds()) { if (id instanceof String) { final String s = (String) id;
for (final Object id : obj.getIds()) { if (id instanceof String) { final String s = (String) id;