Package net.sf.rej.files

Examples of net.sf.rej.files.FieldLocator


            throw new RuntimeException("Editing not implemented.");
        } else {
            Wrapper wrapper = (Wrapper)o;
            Object content = wrapper.getContent();
            if(content instanceof FieldLocator) {
                FieldLocator fl = (FieldLocator)content;
                return fl;
            } else {
                RefInfo ri = (RefInfo) ( (Wrapper) o).getContent();
                value = this.cp.optionalAdd(ri);
            }
View Full Code Here


                FieldChooser chooser = (FieldChooser) choosers.get(i);
                Object obj = chooser.getValue();
                if(obj instanceof Integer) {
                    group.add(new ParamModifyAction(instruction, i, chooser.getValue()));
                } else {
                    FieldLocator fl = (FieldLocator)obj;
                    String className = fl.getClassLocator().getFullName();
                    String fieldName = fl.getField().getName();
                    String typeName = fl.getField().getDescriptor().getRawDesc();
                    int index = this.cf.getPool().indexOfFieldRef(className, fieldName, typeName);
                    // TODO: verify that this makes sense.
                    // The logic could be in the action?
                    if (index != -1) {
                        group.add(new ParamModifyAction(instruction, i, Integer.valueOf(index)));
View Full Code Here

TOP

Related Classes of net.sf.rej.files.FieldLocator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.