Package org.evolizer.famix.importer.nodehandler

Examples of org.evolizer.famix.importer.nodehandler.AbstractASTNodeHandler.visit()


    public boolean visit(ClassInstanceCreation classInstanceCreation) {
        sLogger.debug("Visiting class instance creation node " + classInstanceCreation);

        AbstractASTNodeHandler lInvocationHandler = new ClassInstanceCreationHandler(this);
        fNodeHandler.put(classInstanceCreation, lInvocationHandler);
        return lInvocationHandler.visit(classInstanceCreation);
    }

    /**
     * Handle field read/write accesses, e.g., <code>this.field</code>, <code>foo().bar</code>, or also
     * <code>foo.bar</code>).
 
View Full Code Here


    public boolean visit(FieldAccess fieldAccess) {
        sLogger.debug("Processing field access node " + fieldAccess.getName());

        AbstractASTNodeHandler lFieldAccessHandler = new FieldAccessHandler(this);
        fNodeHandler.put(fieldAccess, lFieldAccessHandler);
        return lFieldAccessHandler.visit(fieldAccess);
    }

    /**
     * Handle super field accesses (e.g., <code>super.field</code>).
     *
 
View Full Code Here

    public boolean visit(SuperFieldAccess superFieldAccess) {
        sLogger.debug("Processing super field access node " + superFieldAccess.getName());

        AbstractASTNodeHandler lSuperFieldAccessHandler = new SuperFieldAccessHandler(this);
        fNodeHandler.put(superFieldAccess, lSuperFieldAccessHandler);
        return lSuperFieldAccessHandler.visit(superFieldAccess);
    }

    /**
     * Handle field accesses via qualified names, e.g., <code>package.class.field</code>.
     *
 
View Full Code Here

    public boolean visit(QualifiedName qualifiedName) {
        sLogger.debug("Processing qualified name node " + qualifiedName.getFullyQualifiedName());

        AbstractASTNodeHandler lNameAccessHandler = new NameAccessHandler(this);
        fNodeHandler.put(qualifiedName, lNameAccessHandler);
        return lNameAccessHandler.visit(qualifiedName);
    }

    /**
     * Handle field accesses via simple names, e.g., <code>field</code>.
     *
 
View Full Code Here

    public boolean visit(SimpleName simpleName) {
        sLogger.debug("Processing simple name node " + simpleName.getFullyQualifiedName());

        AbstractASTNodeHandler lNameAccessHandler = new NameAccessHandler(this);
        fNodeHandler.put(simpleName, lNameAccessHandler);
        return lNameAccessHandler.visit(simpleName);
    }

    /**
     * Handle type cast statements.
     *
 
View Full Code Here

    public boolean visit(CastExpression castExpression) {
        sLogger.debug("Processing cast expression node " + castExpression);

        AbstractASTNodeHandler lCastExpressionHandler = new CastExpressionHandler(this);
        fNodeHandler.put(castExpression, lCastExpressionHandler);
        return lCastExpressionHandler.visit(castExpression);
    }

    /**
     * Handle instance of statements.
     *
 
View Full Code Here

    public boolean visit(InstanceofExpression instanceOfExpression) {
        sLogger.debug("Processing instanceof expression node " + instanceOfExpression);

        AbstractASTNodeHandler lInstanceofExpressionHandler = new InstanceofExpressionHandler(this);
        fNodeHandler.put(instanceOfExpression, lInstanceofExpressionHandler);
        return lInstanceofExpressionHandler.visit(instanceOfExpression);
    }

    /**
     * Keep track of the nesting of Java statement blocks (enclosed by <code>{...}</code>).
     *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.