コード例 #1
0
 /**
  * Lazily adds the given package as an eventual import.
  *
  * @param pkg package
  */
 @Override
 public void addPackage(final IPackage pkg) {
   if (!eventualImportOrdinalsByPackage.containsKey(pkg)) {
     eventualImportOrdinalsByPackage.put(pkg, eventualImportTable.size());
     eventualImportTable.add(pkg);
   }
 }
コード例 #2
0
 /** Adds the system pseudo-package as an eventual import. */
 @Override
 public void addSystemPackage() {
   systemEventualImportOrdinal = eventualImportTable.size();
   eventualImportTable.add(null);
 }