Type and Package Dependencies |
Type Dependencies
A type T uses a type Dep if one of the following holds:
T is the same type as Dep.
T is a parameterized instance of Dep.
Dep is a type argument of the parameterized type T.
Dep is the element type of the array type T.
A type T depends on a type Dep if one of the following holds:
Dep is a supertype of T.
Dep encloses the nested type T.
- There is a field in
T whose type uses Dep.
- There is a method in
T whose return type uses Dep.
- There is a method or constructor in
T which has a parameter whose type uses Dep.
- There is a method or constructor in
T which throws an exception whose type uses Dep.
- A method or constructor declared in
T calls a method declared in Dep.
- A method or constructor declared in
T reads a field declared in Dep.
- A method or constructor declared in
T writes a field declared in Dep.
- A method or constructor declared in
T declares a local variable whose type uses Dep.
- A method or constructor declared in
T contains a type literal that uses Dep.
- They depend through an annotation.
- A method or constructor declared in
T contains an instanceof expression that uses Dep.
Package Dependencies
A package q depends on a package q if there is a class within p that depends on a class within q.
|