Package com.googlecode.equalsnhashcode.utils

Examples of com.googlecode.equalsnhashcode.utils.NonStaticFieldConstraint


public class PsiFieldElementVisitor extends PsiRecursiveElementVisitor {
    private List<PsiField> psiFields = new ArrayList<PsiField>();

    public void visitField(PsiField psiField) {
        if (!new NonStaticFieldConstraint().isSatisfiedBy(psiField))
            return;
        psiFields.add(psiField);
    }
View Full Code Here


public class PsiFieldElementVisitor extends JavaRecursiveElementVisitor {
    private List<PsiField> psiFields = new ArrayList<PsiField>();

    public void visitField(PsiField psiField) {
        if (!new NonStaticFieldConstraint().isSatisfiedBy(psiField))
            return;
        psiFields.add(psiField);
    }
View Full Code Here

        PsiFieldElementVisitor psiElementVisitor = new PsiFieldElementVisitor();
        psiMethod.acceptChildren(psiElementVisitor);


        List<PsiField> fieldsToConsider = Lists.create(psiClass.getFields());
        fieldsToConsider = Lists.filter(fieldsToConsider, new NonStaticFieldConstraint());
        fieldsToConsider.removeAll(psiElementVisitor.getPsiFields());
        return new EqualsHashcodeProblemDescriptor(inspectionManager, message).problemDescriptorsFor(fieldsToConsider);
    }
View Full Code Here

TOP

Related Classes of com.googlecode.equalsnhashcode.utils.NonStaticFieldConstraint

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.