private TypeBinding getBinaryBinding() { if (this.compoundName.length == 0) return null; return this.environment.getType(this.compoundName); }
public TypeBinding erasure() { // lazily initialize field that may be required in super.erasure(): if (this.superclass == null) this.superclass = this.environment.getType(TypeConstants.JAVA_LANG_OBJECT); return super.erasure(); } }
@Override public TypeBinding erasure() { // lazily initialize field that may be required in super.erasure(): if (this.superclass == null) this.superclass = this.environment.getType(TypeConstants.JAVA_LANG_OBJECT); return super.erasure(); } }
public TypeBinding erasure() { // lazily initialize field that may be required in super.erasure(): if (this.superclass == null) this.superclass = this.environment.getType(TypeConstants.JAVA_LANG_OBJECT); return super.erasure(); } }
public TypeBinding erasure() { // lazily initialize field that may be required in super.erasure(): if (this.superclass == null) this.superclass = this.environment.getType(TypeConstants.JAVA_LANG_OBJECT); return super.erasure(); } }
public TypeBinding erasure() { // lazily initialize field that may be required in super.erasure(): if (this.superclass == null) this.superclass = this.environment.getType(TypeConstants.JAVA_LANG_OBJECT); return super.erasure(); } }
private void resolveServices() { this.services = new TypeBinding[this.unresolvedProvides.length]; this.implementations = new HashMap<>(); for (int i = 0; i < this.unresolvedProvides.length; i++) { this.services[i] = this.environment.getType(CharOperation.splitOn('.', this.unresolvedProvides[i].name()), this); char[][] implNames = this.unresolvedProvides[i].with(); TypeBinding[] impls = new TypeBinding[implNames.length]; for (int j = 0; j < implNames.length; j++) impls[j] = this.environment.getType(CharOperation.splitOn('.', implNames[j]), this); this.implementations.put(this.services[i], impls); } } @Override
@Override public TypeBinding[] getUses() { if (this.uses == null) { this.uses = new TypeBinding[this.unresolvedUses.length]; for (int i = 0; i < this.unresolvedUses.length; i++) this.uses[i] = this.environment.getType(CharOperation.splitOn('.', this.unresolvedUses[i]), this); } return super.getUses(); }
@Override public TypeBinding[] getUses() { if (this.uses == null) { this.uses = new TypeBinding[this.unresolvedUses.length]; for (int i = 0; i < this.unresolvedUses.length; i++) this.uses[i] = this.environment.getType(CharOperation.splitOn('.', this.unresolvedUses[i]), this); } return super.getUses(); }
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope) { ReferenceBinding type = getType(compoundName); if (type != null) return type; // create a proxy for the missing BinaryType // report the missing class file first this.problemReporter.isClassPathCorrect( compoundName, scope == null ? this.unitBeingCompleted : scope.referenceCompilationUnit(), this.missingClassFileLocation); return createMissingType(null, compoundName); }
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope) { ReferenceBinding type = getType(compoundName); if (type != null) return type; // create a proxy for the missing BinaryType // report the missing class file first this.problemReporter.isClassPathCorrect( compoundName, scope == null ? this.unitBeingCompleted : scope.referenceCompilationUnit(), this.missingClassFileLocation); return createMissingType(null, compoundName); }
public PsiClass findClass(@NonNull char[][] compoundName) { LookupEnvironment lookupEnvironment = mEcjResult.getLookupEnvironment(); if (lookupEnvironment != null) { ReferenceBinding type = lookupEnvironment.getType(compoundName); if (type != null && !(type instanceof ProblemReferenceBinding)) { return findClass(type); } } return null; }
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope) { ReferenceBinding type = getType(compoundName); if (type != null) return type; // create a proxy for the missing BinaryType // report the missing class file first this.problemReporter.isClassPathCorrect( compoundName, scope == null ? this.unitBeingCompleted : scope.referenceCompilationUnit(), this.missingClassFileLocation); return createMissingType(null, compoundName); }
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope) { ReferenceBinding type = getType(compoundName); if (type != null) return type; // create a proxy for the missing BinaryType // report the missing class file first this.problemReporter.isClassPathCorrect( compoundName, scope == null ? this.unitBeingCompleted : scope.referenceCompilationUnit(), this.missingClassFileLocation); return createMissingType(null, compoundName); }
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope) { ReferenceBinding type = getType(compoundName); if (type != null) return type; // create a proxy for the missing BinaryType // report the missing class file first this.problemReporter.isClassPathCorrect( compoundName, scope == null ? this.unitBeingCompleted : scope.referenceCompilationUnit(), this.missingClassFileLocation); return createMissingType(null, compoundName); }
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope) { ReferenceBinding type = getType(compoundName); if (type != null) return type; // create a proxy for the missing BinaryType // report the missing class file first this.problemReporter.isClassPathCorrect( compoundName, scope == null ? this.unitBeingCompleted : scope.referenceCompilationUnit(), this.missingClassFileLocation); return createMissingType(null, compoundName); }
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope) { ReferenceBinding type = getType(compoundName); if (type != null) return type; // create a proxy for the missing BinaryType // report the missing class file first this.problemReporter.isClassPathCorrect( compoundName, scope == null ? this.unitBeingCompleted : scope.referenceCompilationUnit(), this.missingClassFileLocation); return createMissingType(null, compoundName); }
@Override protected AnnotationBinding[] getAnnotationBindings() { PackageBinding packageBinding = (PackageBinding) this._binding; char[][] compoundName = CharOperation.arrayConcat(packageBinding.compoundName, TypeConstants.PACKAGE_INFO_NAME); ReferenceBinding type = this._env.getLookupEnvironment().getType(compoundName); AnnotationBinding[] annotations = null; if (type != null && type.isValidBinding()) { annotations = type.getAnnotations(); } return annotations; }
@Override protected AnnotationBinding[] getAnnotationBindings() { PackageBinding packageBinding = (PackageBinding) this._binding; char[][] compoundName = CharOperation.arrayConcat(packageBinding.compoundName, TypeConstants.PACKAGE_INFO_NAME); ReferenceBinding type = this._env.getLookupEnvironment().getType(compoundName); AnnotationBinding[] annotations = null; if (type != null && type.isValidBinding()) { annotations = type.getAnnotations(); } return annotations; }
@Override protected AnnotationBinding[] getAnnotationBindings() { PackageBinding packageBinding = (PackageBinding) this._binding; char[][] compoundName = CharOperation.arrayConcat(packageBinding.compoundName, TypeConstants.PACKAGE_INFO_NAME); ReferenceBinding type = this._env.getLookupEnvironment().getType(compoundName); AnnotationBinding[] annotations = null; if (type != null && type.isValidBinding()) { annotations = type.getAnnotations(); } return annotations; }