| // Copyright (c) 2025, the R8 project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| package com.android.tools.r8.partial; | |
| import com.android.tools.r8.features.ClassToFeatureSplitMap; | |
| import com.android.tools.r8.graph.DexApplicationReadFlags; | |
| import com.android.tools.r8.graph.DexClasspathClass; | |
| import com.android.tools.r8.graph.DexLibraryClass; | |
| import com.android.tools.r8.graph.DexProgramClass; | |
| import com.android.tools.r8.keepanno.ast.KeepDeclaration; | |
| import com.android.tools.r8.profile.art.ArtProfileCollection; | |
| import com.android.tools.r8.profile.startup.profile.StartupProfile; | |
| import com.android.tools.r8.synthesis.CommittedSyntheticsCollection; | |
| import java.util.Collection; | |
| import java.util.List; | |
| public class R8PartialD8Result { | |
| private final ArtProfileCollection artProfiles; | |
| private final ClassToFeatureSplitMap classToFeatureSplitMap; | |
| private final Collection<DexProgramClass> dexedClasses; | |
| private final Collection<DexProgramClass> desugaredClasses; | |
| private final DexApplicationReadFlags flags; | |
| private final List<KeepDeclaration> keepDeclarations; | |
| private final Collection<DexClasspathClass> outputClasspathClasses; | |
| private final Collection<DexLibraryClass> outputLibraryClasses; | |
| private final StartupProfile startupProfile; | |
| private final CommittedSyntheticsCollection synthetics; | |
| public R8PartialD8Result( | |
| ArtProfileCollection artProfiles, | |
| ClassToFeatureSplitMap classToFeatureSplitMap, | |
| Collection<DexProgramClass> dexedClasses, | |
| Collection<DexProgramClass> desugaredClasses, | |
| DexApplicationReadFlags flags, | |
| List<KeepDeclaration> keepDeclarations, | |
| Collection<DexClasspathClass> outputClasspathClasses, | |
| Collection<DexLibraryClass> outputLibraryClasses, | |
| StartupProfile startupProfile, | |
| CommittedSyntheticsCollection synthetics) { | |
| this.artProfiles = artProfiles; | |
| this.classToFeatureSplitMap = classToFeatureSplitMap; | |
| this.dexedClasses = dexedClasses; | |
| this.desugaredClasses = desugaredClasses; | |
| this.flags = flags; | |
| this.keepDeclarations = keepDeclarations; | |
| this.outputClasspathClasses = outputClasspathClasses; | |
| this.outputLibraryClasses = outputLibraryClasses; | |
| this.startupProfile = startupProfile; | |
| this.synthetics = synthetics; | |
| } | |
| public ArtProfileCollection getArtProfiles() { | |
| return artProfiles; | |
| } | |
| public ClassToFeatureSplitMap getClassToFeatureSplitMap() { | |
| return classToFeatureSplitMap; | |
| } | |
| public Collection<DexProgramClass> getDexedClasses() { | |
| return dexedClasses; | |
| } | |
| public Collection<DexProgramClass> getDesugaredClasses() { | |
| return desugaredClasses; | |
| } | |
| public DexApplicationReadFlags getFlags() { | |
| return flags; | |
| } | |
| public List<KeepDeclaration> getKeepDeclarations() { | |
| return keepDeclarations; | |
| } | |
| public Collection<DexClasspathClass> getOutputClasspathClasses() { | |
| return outputClasspathClasses; | |
| } | |
| public Collection<DexLibraryClass> getOutputLibraryClasses() { | |
| return outputLibraryClasses; | |
| } | |
| public StartupProfile getStartupProfile() { | |
| return startupProfile; | |
| } | |
| public CommittedSyntheticsCollection getSynthetics() { | |
| return synthetics; | |
| } | |
| } |