@Override protected AbstractFrame getIfContains(DetailAST nameToFind, boolean lookForMethod) { AbstractFrame frame = null; if (lookForMethod && containsMethod(nameToFind) || containsFieldOrVariable(nameToFind)) { frame = this; } else if (getParent() != null) { frame = getParent().getIfContains(nameToFind, lookForMethod); } return frame; }
@Override protected AbstractFrame getIfContains(DetailAST nameToFind, boolean lookForMethod) { AbstractFrame frame = null; if (lookForMethod && containsMethod(nameToFind) || containsFieldOrVariable(nameToFind)) { frame = this; } else if (getParent() != null) { frame = getParent().getIfContains(nameToFind, lookForMethod); } return frame; }