/** @see railo.runtime.type.Collection#duplicate(boolean) */ public Collection duplicate(boolean deepCopy) { StructImpl sct = new StructImpl(); StructImpl.copy(this, sct, deepCopy); return sct; // MUST muss deepCopy checken // return new ComponentScopeShadow(component,shadow);//new // ComponentScopeThis(component.cloneComponentImpl()); }
/** @see railo.runtime.type.Collection#duplicate(boolean) */ public Collection duplicate(boolean deepCopy) { StructImpl sct = new StructImpl(); StructImpl.copy(this, sct, deepCopy); return sct; // return new ComponentScopeThis((ComponentImpl) component.duplicate(deepCopy)); // return new ComponentScopeThis(component.cloneComponentImpl(deepCopy)); }
/** * stores a single method * * @param field * @param fieldsMap */ private void storeField(Field field, StructImpl fieldsMap) { String fieldName = field.getName(); Object o = fieldsMap.get(fieldName, null); Field[] args; if (o == null) { args = new Field[1]; fieldsMap.setEL(fieldName, args); } else { Field[] fs = (Field[]) o; args = new Field[fs.length + 1]; for (int i = 0; i < fs.length; i++) { fs[i].setAccessible(true); args[i] = fs[i]; } fieldsMap.setEL(fieldName, args); } args[args.length - 1] = field; }