blob: 7d947d4935108341cc182118ab6254618bf6eca2 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
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.IType;
/**
* A type that existed in the old state. Unless
* subclassed, this type does not exist in the new state.
*/
public class OldBuilderType extends BuilderType {
/**
* The tsEntry for this type in the old state
*/
protected TypeStructureEntry fOldTSEntry;
/**
* Creates a new OldBuilderType
*/
public OldBuilderType(IncrementalImageBuilder builder, TypeStructureEntry oldEntry) {
/* this is a deleted type, which is a hierarchy change */
super(builder, true, true);
fOldTSEntry = oldEntry;
}
/**
* Adds the indictments for the descriptor's type, methods,
* and fields. Usually used when a type has been added or removed.
*/
public void computeIndictments(IndictmentSet set) {
/* dependents should already have been compiled */
}
/**
* Old builder types don't necessarily exist in the new state.
*/
public TypeStructureEntry getNewTypeStructureEntry() {
return null;
}
/**
* Returns the old tsEntry
*/
public TypeStructureEntry getOldTypeStructureEntry() {
return fOldTSEntry;
}
/**
* Sets the tsEntry in the new state
*/
public void setNewTypeStructureEntry(TypeStructureEntry newEntry) {
Assert.isTrue(false);
}
/**
* For debugging only
*/
public String toString() {
return "OldBuilderType("/*nonNLS*/ + fOldTSEntry.getType().getName() + ")"/*nonNLS*/;
}
}
|