for (final EntityDeclaration member : node.getMembers()) { if (member instanceof FieldDeclaration) { final Set<Object> fieldResults = member.acceptVisitor(this, name); for (final EntityDeclaration member : node.getMembers()) { if (member instanceof TypeDeclaration) { final TypeDeclaration td = (TypeDeclaration) member;
for (final EntityDeclaration member : node.getMembers()) { if (member instanceof FieldDeclaration) { final Set<Object> fieldResults = member.acceptVisitor(this, name); for (final EntityDeclaration member : node.getMembers()) { if (member instanceof TypeDeclaration) { final TypeDeclaration td = (TypeDeclaration) member;
for (final EntityDeclaration member : node.getMembers()) { if (member instanceof FieldDeclaration) { final Set<Object> fieldResults = member.acceptVisitor(this, name); for (final EntityDeclaration member : node.getMembers()) { if (member instanceof TypeDeclaration) { final TypeDeclaration td = (TypeDeclaration) member;
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TypeDeclaration) { final TypeDeclaration otherDeclaration = (TypeDeclaration) other; return !otherDeclaration.isNull() && _classType == otherDeclaration._classType && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getTypeParameters().matches(otherDeclaration.getTypeParameters(), match) && getBaseType().matches(otherDeclaration.getBaseType(), match) && getInterfaces().matches(otherDeclaration.getInterfaces(), match) && getMembers().matches(otherDeclaration.getMembers(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TypeDeclaration) { final TypeDeclaration otherDeclaration = (TypeDeclaration) other; return !otherDeclaration.isNull() && _classType == otherDeclaration._classType && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getTypeParameters().matches(otherDeclaration.getTypeParameters(), match) && getBaseType().matches(otherDeclaration.getBaseType(), match) && getInterfaces().matches(otherDeclaration.getInterfaces(), match) && getMembers().matches(otherDeclaration.getMembers(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TypeDeclaration) { final TypeDeclaration otherDeclaration = (TypeDeclaration) other; return !otherDeclaration.isNull() && _classType == otherDeclaration._classType && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getTypeParameters().matches(otherDeclaration.getTypeParameters(), match) && getBaseType().matches(otherDeclaration.getBaseType(), match) && getInterfaces().matches(otherDeclaration.getInterfaces(), match) && getMembers().matches(otherDeclaration.getMembers(), match); } return false; }
final AnonymousObjectCreationExpression creation = (AnonymousObjectCreationExpression) initializer; for (final EntityDeclaration member : creation.getTypeDeclaration().getMembers()) { member.remove(); enumDeclaration.getMembers().add(member);
final AnonymousObjectCreationExpression creation = (AnonymousObjectCreationExpression) initializer; for (final EntityDeclaration member : creation.getTypeDeclaration().getMembers()) { member.remove(); enumDeclaration.getMembers().add(member);
final AnonymousObjectCreationExpression creation = (AnonymousObjectCreationExpression) initializer; for (final EntityDeclaration member : creation.getTypeDeclaration().getMembers()) { member.remove(); enumDeclaration.getMembers().add(member);
final TypeDeclaration type = (TypeDeclaration) node; for (final FieldDeclaration field : ofType(type.getMembers(), FieldDeclaration.class)) { if (!field.getVariables().isEmpty() && usesVariable(first(field.getVariables()), variableName)) { return true; for (final MethodDeclaration method : ofType(type.getMembers(), MethodDeclaration.class)) { if (usesVariable(method.getBody(), variableName)) { return true;
final TypeDeclaration type = (TypeDeclaration) node; for (final FieldDeclaration field : ofType(type.getMembers(), FieldDeclaration.class)) { if (!field.getVariables().isEmpty() && usesVariable(first(field.getVariables()), variableName)) { return true; for (final MethodDeclaration method : ofType(type.getMembers(), MethodDeclaration.class)) { if (usesVariable(method.getBody(), variableName)) { return true;
final TypeDeclaration type = (TypeDeclaration) node; for (final FieldDeclaration field : ofType(type.getMembers(), FieldDeclaration.class)) { if (!field.getVariables().isEmpty() && usesVariable(first(field.getVariables()), variableName)) { return true; for (final MethodDeclaration method : ofType(type.getMembers(), MethodDeclaration.class)) { if (usesVariable(method.getBody(), variableName)) { return true;
final AstNodeCollection<EntityDeclaration> members = node.getMembers();
final AstNodeCollection<EntityDeclaration> members = node.getMembers();
for (final FieldDeclaration field : ofType(type.getMembers(), FieldDeclaration.class)) { final FieldDefinition fieldDefinition = field.getUserData(Keys.FIELD_DEFINITION); for (final MethodDeclaration method : ofType(type.getMembers(), MethodDeclaration.class)) { final MethodDefinition methodDefinition = method.getUserData(Keys.METHOD_DEFINITION);
for (final FieldDeclaration field : ofType(type.getMembers(), FieldDeclaration.class)) { final FieldDefinition fieldDefinition = field.getUserData(Keys.FIELD_DEFINITION); for (final MethodDeclaration method : ofType(type.getMembers(), MethodDeclaration.class)) { final MethodDefinition methodDefinition = method.getUserData(Keys.METHOD_DEFINITION);
for (final FieldDeclaration field : ofType(type.getMembers(), FieldDeclaration.class)) { final FieldDefinition fieldDefinition = field.getUserData(Keys.FIELD_DEFINITION); for (final MethodDeclaration method : ofType(type.getMembers(), MethodDeclaration.class)) { final MethodDefinition methodDefinition = method.getUserData(Keys.METHOD_DEFINITION);
for (final EntityDeclaration d : declaration.getMembers()) { if (d instanceof MethodDeclaration) { final Match match = pattern.match(d);
for (final EntityDeclaration d : declaration.getMembers()) { if (d instanceof MethodDeclaration) { final Match match = pattern.match(d);
for (final EntityDeclaration d : declaration.getMembers()) { if (d instanceof MethodDeclaration) { final Match match = pattern.match(d);