var set = new StringSet(); set.add("foo"); set.add("bar"); alert(set.contains("foo")); // true alert(set.contains("baz")); // false set.values(); // ["foo", "bar"], though not necessarily in that order set.remove("foo"); set.values(); // ["bar"]
void tagAsStructurallyChanged() { this.previousStructuralBuildTime = this.lastStructuralBuildTime; this.structurallyChangedTypes = new StringSet(7); this.lastStructuralBuildTime = computeStructuralBuildTime(this.previousStructuralBuildTime); }
@Override public void cleanup() { this.initialTypeNames = null; this.additionalUnits = null; for (int i = 0, l = this.sourceLocations.length; i < l; i++) this.sourceLocations[i].cleanup(); for (int i = 0, l = this.binaryLocations.length; i < l; i++) this.binaryLocations[i].cleanup(); // assume modulePathEntries are cleaned-up via the corresponding source/binaryLocations }
protected void updateProblemsFor(SourceFile sourceFile, CompilationResult result) throws CoreException { IMarker[] markers = JavaBuilder.getProblemsFor(sourceFile.resource); CategorizedProblem[] problems = result.getProblems(); if (problems == null && markers.length == 0) return; this.notifier.updateProblemCounts(markers, problems); JavaBuilder.removeProblemsFor(sourceFile.resource); storeProblemsFor(sourceFile, problems); }
static ClasspathLocation forLibrary(String libraryPathname, long lastModified, AccessRuleSet accessRuleSet, IPath annotationsPath, boolean autoModule) { return Util.isJrt(libraryPathname) ? new ClasspathJrt(libraryPathname, annotationsPath) : Util.archiveFormat(libraryPathname) == Util.JMOD_FILE ? new ClasspathJMod(libraryPathname, lastModified, accessRuleSet, annotationsPath) : new ClasspathJar(libraryPathname, lastModified, accessRuleSet, annotationsPath, autoModule); }
void wasStructurallyChanged(String typeName) { if (this.structurallyChangedTypes != null) { if (this.structurallyChangedTypes.elementSize > MaxStructurallyChangedTypes) this.structurallyChangedTypes = null; // too many to keep track of else this.structurallyChangedTypes.add(typeName); } }
/** * @deprecated */ public boolean includes(char[][][] qualifiedNames, char[][] simpleNames) { return includes(qualifiedNames, simpleNames, null); }
/** * Hook allowing to reset some static state after a complete build iteration. * This hook is invoked during POST_AUTO_BUILD notification */ public static void buildFinished() { BuildNotifier.resetProblemCounters(); }
protected void cleanUp() { this.incrementalBuilder = null; this.secondaryTypes = null; this.typeLocatorsWithUndefinedTypes = null; super.cleanUp(); }
public SourceFile(IFile resource, ClasspathMultiDirectory sourceLocation) { this.resource = resource; this.sourceLocation = sourceLocation; this.initialTypeName = extractTypeName(); this.updateClassFile = false; }
void tagAsStructurallyChanged() { this.previousStructuralBuildTime = this.lastStructuralBuildTime; this.structurallyChangedTypes = new StringSet(7); this.lastStructuralBuildTime = computeStructuralBuildTime(this.previousStructuralBuildTime); }
public void cleanup() { this.initialTypeNames = null; this.additionalUnits = null; for (int i = 0, l = this.sourceLocations.length; i < l; i++) this.sourceLocations[i].cleanup(); for (int i = 0, l = this.binaryLocations.length; i < l; i++) this.binaryLocations[i].cleanup(); // assume modulePathEntries are cleaned-up via the corresponding source/binaryLocations }
void tagAsStructurallyChanged() { this.previousStructuralBuildTime = this.lastStructuralBuildTime; this.structurallyChangedTypes = new StringSet(7); this.lastStructuralBuildTime = computeStructuralBuildTime(this.previousStructuralBuildTime); }
void tagAsStructurallyChanged() { this.previousStructuralBuildTime = this.lastStructuralBuildTime; this.structurallyChangedTypes = new StringSet(7); this.lastStructuralBuildTime = computeStructuralBuildTime(this.previousStructuralBuildTime); }
void tagAsStructurallyChanged() { this.previousStructuralBuildTime = this.lastStructuralBuildTime; this.structurallyChangedTypes = new StringSet(7); this.lastStructuralBuildTime = computeStructuralBuildTime(this.previousStructuralBuildTime); }
void tagAsStructurallyChanged() { this.previousStructuralBuildTime = this.lastStructuralBuildTime; this.structurallyChangedTypes = new StringSet(7); this.lastStructuralBuildTime = computeStructuralBuildTime(this.previousStructuralBuildTime); }