Package org.python.pydev.refactoring.ast.visitors.context

Examples of org.python.pydev.refactoring.ast.visitors.context.LocalAttributeVisitor


        ClassDefVisitor classVisitor = VisitorFactory.createContextVisitor(ClassDefVisitor.class, module.getASTNode(),
                module, module);
        assertTrue(classVisitor.getAll().size() > 0);

        ClassDefAdapter classDefAdapter = (ClassDefAdapter) classVisitor.getAll().get(0);
        LocalAttributeVisitor localVisitor = VisitorFactory.createContextVisitor(LocalAttributeVisitor.class,
                classDefAdapter.getASTNode(), module, classDefAdapter);
        printAttributes(buffer, globalVisitor);
        printAttributes(buffer, localVisitor);

        assertEquals(getExpected(), getGenerated());
View Full Code Here


    /* (non-Javadoc)
     * @see org.python.pydev.refactoring.ast.adapters.IClassDefAdapter#getAttributes()
     */
    public List<SimpleAdapter> getAttributes() {
        if (attributes == null) {
            LocalAttributeVisitor visitor = VisitorFactory.createContextVisitor(LocalAttributeVisitor.class,
                    getASTNode(), getModule(), this);
            attributes = visitor.getAll();
        }
        return attributes;
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.ast.visitors.context.LocalAttributeVisitor

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.