@Override public void consumePackage(char[] pkgName) { this.compoundName = CharOperation.splitOn('/', pkgName); this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment, this.environment.module); //TODO(SHMOD) enclosingModule }
public void consumePackage(char[] pkgName) { this.compoundName = CharOperation.splitOn('/', pkgName); this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment); }
public void consumePackage(char[] pkgName) { this.compoundName = CharOperation.splitOn('/', pkgName); this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment); }
public void consumePackage(char[] pkgName) { this.compoundName = CharOperation.splitOn('/', pkgName); this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment); }
public void consumePackage(char[] pkgName) { this.compoundName = CharOperation.splitOn('/', pkgName); this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment); }
public void consumePackage(char[] pkgName) { this.compoundName = CharOperation.splitOn('/', pkgName); this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment, this.environment.module); //TODO(SHMOD) enclosingModule }
public void consumePackage(char[] pkgName) { this.compoundName = CharOperation.splitOn('/', pkgName); this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment); }
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.
packageBinding = new PackageBinding(chars, null, environment, environment.module);
public LookupEnvironment(ITypeRequestor typeRequestor, CompilerOptions globalOptions, ProblemReporter problemReporter, INameEnvironment nameEnvironment) { this.typeRequestor = typeRequestor; this.globalOptions = globalOptions; this.problemReporter = problemReporter; this.defaultPackage = new PackageBinding(this); // assume the default package always exists this.defaultImports = null; this.nameEnvironment = nameEnvironment; this.knownPackages = new HashtableOfPackage(); this.uniqueParameterizedGenericMethodBindings = new SimpleLookupTable(3); this.uniquePolymorphicMethodBindings = new SimpleLookupTable(3); this.missingTypes = null; this.accessRestrictions = new HashMap(3); this.classFilePool = ClassFilePool.newInstance(); this.typesBeingConnected = new HashSet<>(); this.typeSystem = this.globalOptions.sourceLevel >= ClassFileConstants.JDK1_8 && this.globalOptions.storeAnnotations ? new AnnotatableTypeSystem(this) : new TypeSystem(this); }
PackageBinding getTopLevelPackage(char[] name) { PackageBinding packageBinding = getPackage0(name); if (packageBinding != null) { if (packageBinding == TheNotFoundPackage) return null; return packageBinding; } if (this.nameEnvironment.isPackage(null, name)) { this.knownPackages.put(name, packageBinding = new PackageBinding(name, this)); return packageBinding; } this.knownPackages.put(name, TheNotFoundPackage); // saves asking the oracle next time return null; }
PackageBinding getTopLevelPackage(char[] name) { PackageBinding packageBinding = getPackage0(name); if (packageBinding != null) { if (packageBinding == TheNotFoundPackage) return null; return packageBinding; } if (this.nameEnvironment.isPackage(null, name)) { this.knownPackages.put(name, packageBinding = new PackageBinding(name, this)); return packageBinding; } this.knownPackages.put(name, TheNotFoundPackage); // saves asking the oracle next time return null; }