private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
private PackageBinding findPackage(char[] name) { if (!this.environment.isPackage(this.compoundName, name)) return null; char[][] subPkgCompoundName = CharOperation.arrayConcat(this.compoundName, name); PackageBinding subPackageBinding = new PackageBinding(subPkgCompoundName, this, this.environment); addPackage(subPackageBinding); return subPackageBinding; } /* Answer the subpackage named name; ask the oracle for the package if its not in the cache.
@Override PackageBinding addPackage(PackageBinding element, ModuleBinding module, boolean enrichWithSplitSiblings) { char[] simpleName = element.compoundName[element.compoundName.length-1]; // enrich if (enrichWithSplitSiblings) element = combineWithSiblings(element, simpleName, module); PackageBinding visible = this.knownPackages.get(simpleName); visible = SplitPackageBinding.combine(element, visible, this.enclosingModule); this.knownPackages.put(simpleName, visible); PackageBinding incarnation = getIncarnation(element.enclosingModule); if (incarnation != null) incarnation.addPackage(element, module, enrichWithSplitSiblings); return element; }
@Override PackageBinding addPackage(PackageBinding element, ModuleBinding module, boolean enrichWithSplitSiblings) { char[] simpleName = element.compoundName[element.compoundName.length-1]; // enrich if (enrichWithSplitSiblings) element = combineWithSiblings(element, simpleName, module); PackageBinding visible = this.knownPackages.get(simpleName); visible = SplitPackageBinding.combine(element, visible, this.enclosingModule); this.knownPackages.put(simpleName, visible); PackageBinding incarnation = getIncarnation(element.enclosingModule); if (incarnation != null) incarnation.addPackage(element, module, enrichWithSplitSiblings); return element; }
PackageBinding forcedGetExportedPackage(char[][] compoundName) { // when resolving "exports" in a binary module we simply assume the package must exist, // since this has been checked already when compiling that module. PackageBinding binding = getVisiblePackage(compoundName); if (binding != null) return binding; if (compoundName.length > 1) { PackageBinding parent = forcedGetExportedPackage(CharOperation.subarray(compoundName, 0, compoundName.length-1)); binding = new PackageBinding(compoundName, parent, this.environment, this); parent.addPackage(binding, this, true); return binding; } binding = new PackageBinding(compoundName[0], this.environment, this); addPackage(binding, true); return binding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }
private PackageBinding computePackageFrom(char[][] constantPoolName, boolean isMissing) { if (constantPoolName.length == 1) return this.defaultPackage; PackageBinding packageBinding = getPackage0(constantPoolName[0]); if (packageBinding == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(constantPoolName[0], this); if (isMissing) packageBinding.tagBits |= TagBits.HasMissingType; this.knownPackages.put(constantPoolName[0], packageBinding); } for (int i = 1, length = constantPoolName.length - 1; i < length; i++) { PackageBinding parent = packageBinding; if ((packageBinding = parent.getPackage0(constantPoolName[i])) == null || packageBinding == TheNotFoundPackage) { packageBinding = new PackageBinding(CharOperation.subarray(constantPoolName, 0, i + 1), parent, this); if (isMissing) { packageBinding.tagBits |= TagBits.HasMissingType; } parent.addPackage(packageBinding); } } return packageBinding; }