Package org.python.pydev.refactoring.ast.adapters

Examples of org.python.pydev.refactoring.ast.adapters.SimpleAdapter


        if (selectedVariables.isEmpty()) {
            return;
        }

        SimpleAdapter firstSelectedVariable = selectedVariables.get(0);
        SimpleAdapter lastSelectedVariable = selectedVariables.get(selectedVariables.size() - 1);

        for (SimpleAdapter adapter : scopeVariables) {
            if (isBeforeSelectedLine(firstSelectedVariable, adapter)
                    || isBeforeOnSameLine(firstSelectedVariable, adapter)) {
                before.add(adapter);
View Full Code Here


    private void printAttributes(StringBuffer buffer, GlobalAttributeVisitor globalVisitor) {
        Iterator<SimpleAdapter> iter = globalVisitor.iterator();
        buffer.append("# " + globalVisitor.getAll().size() + "\n");
        while (iter.hasNext()) {
            SimpleAdapter adapter = iter.next();
            buffer.append("# " + adapter.getParentName() + " " + adapter.getName() + "\n");
        }
        this.setTestGenerated(buffer.toString().trim());
    }
View Full Code Here

    private void printAttributes(StringBuffer buffer, ScopeVariablesVisitor scopeVisitor, String scopeName) {
        Iterator<SimpleAdapter> iter = scopeVisitor.iterator();
        buffer.append("\n# " + scopeName + " " + scopeVisitor.getAll().size() + "\n");
        while (iter.hasNext()) {
            SimpleAdapter adapter = iter.next();
            buffer.append("## " + adapter.getName() + "\n");
        }
    }
View Full Code Here

    private void printAttributes(StringBuffer buffer, ScopeAssignedVisitor scopeVisitor) {
        Iterator<SimpleAdapter> iter = scopeVisitor.iterator();
        buffer.append("# " + scopeVisitor.getAll().size() + "\n");
        while (iter.hasNext()) {
            SimpleAdapter adapter = iter.next();
            buffer.append("# " + adapter.getParentName() + " " + adapter.getName() + "\n");
        }
    }
View Full Code Here

        return null;
    }

    @Override
    protected SimpleAdapter createAdapter(AbstractScopeNode<?> parent, SimpleNode node) {
        return new SimpleAdapter(this.moduleAdapter, parent, node, moduleAdapter.getAdapterPrefs());
    }
View Full Code Here

        if (nodeHelper.isClassDef(node)) {
            return new ClassDefAdapter(moduleAdapter, parent, (ClassDef) node, moduleAdapter.getAdapterPrefs());
        } else if (nodeHelper.isFunctionDef(node)) {
            return new FunctionDefAdapter(moduleAdapter, parent, (FunctionDef) node, moduleAdapter.getAdapterPrefs());
        } else {
            return new SimpleAdapter(moduleAdapter, parent, node, moduleAdapter.getAdapterPrefs());
        }
    }
View Full Code Here

        return null;
    }

    @Override
    protected SimpleAdapter createAdapter(AbstractScopeNode<?> parent, SimpleNode node) {
        return new SimpleAdapter(moduleAdapter, parent, node, moduleAdapter.getAdapterPrefs());
    }
View Full Code Here

        return null;
    }

    @Override
    protected SimpleAdapter createAdapter(AbstractScopeNode<?> parent, SimpleNode node) {
        return new SimpleAdapter(moduleAdapter, parent, node, moduleAdapter.getAdapterPrefs());
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.ast.adapters.SimpleAdapter

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.