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

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


        ClassDefVisitor classVisitor = VisitorFactory.createContextVisitor(ClassDefVisitor.class, module.getASTNode(),
                module, module);

        assertTrue(classVisitor.getAll().size() > 0);
        ClassDefAdapter classDefAdapter = (ClassDefAdapter) classVisitor.getAll().get(0);
        PropertyVisitor propertyVisitor = VisitorFactory.createContextVisitor(PropertyVisitor.class,
                classDefAdapter.getASTNode(), module, classDefAdapter);

        printProperties(buffer, propertyVisitor);

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


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

TOP

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

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.