@Override public Set<Object> visitFieldDeclaration(final FieldDeclaration node, final String name) { if (_mode == NameResolveMode.EXPRESSION) { if (StringUtilities.equals(node.getName(), name)) { final FieldDefinition f = node.getUserData(Keys.FIELD_DEFINITION); if (f != null && (!_isStaticContext || f.isStatic())) { return Collections.<Object>singleton(f); } } } return Collections.emptySet(); }
@Override public Set<Object> visitFieldDeclaration(final FieldDeclaration node, final String name) { if (_mode == NameResolveMode.EXPRESSION) { if (StringUtilities.equals(node.getName(), name)) { final FieldDefinition f = node.getUserData(Keys.FIELD_DEFINITION); if (f != null && (!_isStaticContext || f.isStatic())) { return Collections.<Object>singleton(f); } } } return Collections.emptySet(); }
@Override public Set<Object> visitFieldDeclaration(final FieldDeclaration node, final String name) { if (_mode == NameResolveMode.EXPRESSION) { if (StringUtilities.equals(node.getName(), name)) { final FieldDefinition f = node.getUserData(Keys.FIELD_DEFINITION); if (f != null && (!_isStaticContext || f.isStatic())) { return Collections.<Object>singleton(f); } } } return Collections.emptySet(); }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match) && getMembers().matches(getMembers(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match) && getMembers().matches(getMembers(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match) && getMembers().matches(getMembers(), match); } return false; } }