• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.android.dependencymapper;
17 
18 import java.util.Set;
19 
20 /**
21  * Represents the Class Dependency Data collected via ASM analysis.
22  */
23 public class ClassDependencyData {
24     private final String mPackagePrependedClassSource;
25     private final String mQualifiedName;
26     private final Set<String> mClassDependencies;
27     private final boolean mIsDependencyToAll;
28     private final Set<Object> mConstantsDefined;
29     private final Set<Object> mInlinedUsages;
30 
ClassDependencyData(String packagePrependedClassSource, String className, Set<String> classDependencies, boolean isDependencyToAll, Set<Object> constantsDefined, Set<Object> inlinedUsages)31     public ClassDependencyData(String packagePrependedClassSource, String className,
32             Set<String> classDependencies, boolean isDependencyToAll, Set<Object> constantsDefined,
33             Set<Object> inlinedUsages) {
34         this.mPackagePrependedClassSource = packagePrependedClassSource;
35         this.mQualifiedName = className;
36         this.mClassDependencies = classDependencies;
37         this.mIsDependencyToAll = isDependencyToAll;
38         this.mConstantsDefined = constantsDefined;
39         this.mInlinedUsages = inlinedUsages;
40     }
41 
getPackagePrependedClassSource()42     public String getPackagePrependedClassSource() {
43         return mPackagePrependedClassSource;
44     }
45 
getQualifiedName()46     public String getQualifiedName() {
47         return mQualifiedName;
48     }
49 
getClassDependencies()50     public Set<String> getClassDependencies() {
51         return mClassDependencies;
52     }
53 
getConstantsDefined()54     public Set<Object> getConstantsDefined() {
55         return mConstantsDefined;
56     }
57 
inlinedUsages()58     public Set<Object> inlinedUsages() {
59         return mInlinedUsages;
60     }
61 
isDependencyToAll()62     public boolean isDependencyToAll() {
63         return mIsDependencyToAll;
64     }
65 }
66