blob: 5b901f24b76e447b3a71b0cf89ad40ee6bcd50d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
package org.eclipse.jdt.internal.core.builder.impl;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.core.Assert;
import org.eclipse.jdt.internal.core.builder.*;
/**
* @see IDependencyGraph
*/
public class DependencyGraphImpl implements IDependencyGraph {
StateImpl fState;
/**
* DependencyGraphImpl constructor comment.
*/
DependencyGraphImpl(StateImpl state) {
fState = state;
}
/**
* @see IDependencyGraph#getNamespaceDependencies
*/
public IPackage[] getNamespaceDependencies(IType type) {
Assert.isTrue(!type.isStateSpecific());
TypeStructureEntry tsEntry = fState.buildTypeStructureEntry(type);
Object key = tsEntry.getDependencyGraphKey();
return fState.getInternalDependencyGraph().getNamespaceDependencies(key);
}
/**
* @see IDependencyGraph#getState
*/
public IState getState() {
return fState;
}
/**
* @see IDependencyGraph#getTypeDependencies
*/
public IType[] getTypeDependencies(IType type) {
Assert.isTrue(!type.isStateSpecific());
TypeStructureEntry tsEntry = fState.buildTypeStructureEntry(type);
Object key = tsEntry.getDependencyGraphKey();
return fState.getInternalDependencyGraph().getTypeDependencies(key);
}
}
|