@Override protected void onAddImplementType(final JavaType type) { Validate .isTrue( !governor.getImplementsTypes().contains(type), "Type '%s' already declared in implements types list in target type '%s' (ITD target '%s')", type, governor.getName().getFullyQualifiedTypeName(), aspect.getFullyQualifiedTypeName()); Validate.isTrue(!getImplementsTypes().contains(type), "Type '%s' already declared in implements types list in ITD (ITD target '%s')", type, aspect.getFullyQualifiedTypeName()); }
/** * Determines if the presented class (or any of its superclasses) implements * the target interface. * * @param clazz the cid to search * @param interfaceTarget the interface to locate * @return true if the class or any of its superclasses contains the * specified interface */ protected boolean isImplementing(final ClassOrInterfaceTypeDetails clazz, final JavaType interfaceTarget) { if (clazz.getImplementsTypes().contains(interfaceTarget)) { return true; } if (clazz.getSuperclass() != null) { return isImplementing(clazz.getSuperclass(), interfaceTarget); } return false; }
List<JavaType> implementsTypes = classDetails.getImplementsTypes(); for (JavaType type : implementsTypes) { if (type.equals(JdkJavaType.SERIALIZABLE)) {
typeLocationService.getTypeDetails(declaredByMetadataId); if (typeDetails != null) { implementsTypes.addAll(typeDetails.getImplementsTypes());
List<JavaType> interfaces = currentClassDetails.getImplementsTypes(); List<? extends MethodMetadata> interfaceMethods = null; if (!interfaces.isEmpty()) {
getTypeLocationService().getTypeDetails(declaredByMetadataId); if (typeDetails != null) { implementsTypes.addAll(typeDetails.getImplementsTypes());
for (final JavaType current : cid.getImplementsTypes()) { implementsList.add(JavaParserUtils.getResolvedName(cid.getName(), current, compilationUnit));
@Override protected void onAddImplementType(final JavaType type) { Validate .isTrue( !governor.getImplementsTypes().contains(type), "Type '%s' already declared in implements types list in target type '%s' (ITD target '%s')", type, governor.getName().getFullyQualifiedTypeName(), aspect.getFullyQualifiedTypeName()); Validate.isTrue(!getImplementsTypes().contains(type), "Type '%s' already declared in implements types list in ITD (ITD target '%s')", type, aspect.getFullyQualifiedTypeName()); }
append(innerType.getName().getSimpleTypeName()); writeExtends(innerType); final List<JavaType> implementsTypes = innerType.getImplementsTypes(); writeImplements(implementsTypes); append("{");
/** * Determines if the presented class (or any of its superclasses) implements * the target interface. * * @param clazz the cid to search * @param interfaceTarget the interface to locate * @return true if the class or any of its superclasses contains the * specified interface */ protected boolean isImplementing(final ClassOrInterfaceTypeDetails clazz, final JavaType interfaceTarget) { if (clazz.getImplementsTypes().contains(interfaceTarget)) { return true; } if (clazz.getSuperclass() != null) { return isImplementing(clazz.getSuperclass(), interfaceTarget); } return false; }
typeLocationService.getTypeDetails(declaredByMetadataId); if (typeDetails != null) { implementsTypes.addAll(typeDetails.getImplementsTypes());
for (JavaType declaredClass : mutableTypeDetails.getImplementsTypes()) {
List<JavaType> interfaces = currentClassDetails.getImplementsTypes(); List<? extends MethodMetadata> interfaceMethods = null; if (!interfaces.isEmpty()) {
getTypeLocationService().getTypeDetails(declaredByMetadataId); if (typeDetails != null) { implementsTypes.addAll(typeDetails.getImplementsTypes());
for (JavaType implementType : userTypeDetails.getImplementsTypes()) { if (SEC_USER_DETAILS.equals(implementType)) { userTypeIsUserDetails = true;
append(innerType.getName().getSimpleTypeName()); writeExtends(innerType); final List<JavaType> implementsTypes = innerType.getImplementsTypes(); writeImplements(implementsTypes); append("{");