@Override public TType getErasure() { if (fBounds.length == 0) return getEnvironment().getJavaLangObject(); return fBounds[0].getErasure(); }
protected void initialize(ITypeBinding binding, ITypeParameter javaTypeParameter) { Assert.isTrue(binding.isTypeVariable()); Assert.isNotNull(javaTypeParameter); fJavaTypeParameter= javaTypeParameter; super.initialize(binding); }
private void pushSupertypes(TType type) { if (type.isJavaLangObject()) return; if (type.isTypeVariable() || type.isCaptureType()) { TType[] bounds= ((AbstractTypeVariable) type).getBounds(); for (int i= 0; i < bounds.length; i++) fWorklist.push(bounds[i].getTypeDeclaration()); } else { TType superclass= type.getSuperclass(); if (superclass == null) { if (type.isInterface()) fWorklist.push(type.getEnvironment().getJavaLangObject()); } else { fWorklist.push(superclass.getTypeDeclaration()); } TType[] interfaces= type.getInterfaces(); for (int i= 0; i < interfaces.length; i++) fWorklist.push(interfaces[i].getTypeDeclaration()); } }
private void pushSupertypes(TType type) { if (type.isJavaLangObject()) return; if (type.isTypeVariable() || type.isCaptureType()) { TType[] bounds= ((AbstractTypeVariable) type).getBounds(); for (int i= 0; i < bounds.length; i++) fWorklist.push(bounds[i].getTypeDeclaration()); } else { TType superclass= type.getSuperclass(); if (superclass == null) { if (type.isInterface()) fWorklist.push(type.getEnvironment().getJavaLangObject()); } else { fWorklist.push(superclass.getTypeDeclaration()); } TType[] interfaces= type.getInterfaces(); for (int i= 0; i < interfaces.length; i++) fWorklist.push(interfaces[i].getTypeDeclaration()); } }
protected void initialize(ITypeBinding binding, ITypeParameter javaTypeParameter) { Assert.isTrue(binding.isTypeVariable()); Assert.isNotNull(javaTypeParameter); fJavaTypeParameter= javaTypeParameter; super.initialize(binding); }
@Override public TType getErasure() { if (fBounds.length == 0) return getEnvironment().getJavaLangObject(); return fBounds[0].getErasure(); }
private void pushSupertypes(TType type) { if (type.isJavaLangObject()) return; if (type.isTypeVariable() || type.isCaptureType()) { TType[] bounds= ((AbstractTypeVariable) type).getBounds(); for (int i= 0; i < bounds.length; i++) fWorklist.push(bounds[i].getTypeDeclaration()); } else { TType superclass= type.getSuperclass(); if (superclass == null) { if (type.isInterface()) fWorklist.push(type.getEnvironment().getJavaLangObject()); } else { fWorklist.push(superclass.getTypeDeclaration()); } TType[] interfaces= type.getInterfaces(); for (int i= 0; i < interfaces.length; i++) fWorklist.push(interfaces[i].getTypeDeclaration()); } }
protected void initialize(ITypeBinding binding, ITypeParameter javaTypeParameter) { Assert.isTrue(binding.isTypeVariable()); Assert.isNotNull(javaTypeParameter); fJavaTypeParameter= javaTypeParameter; super.initialize(binding); }
public TType getErasure() { if (fBounds.length == 0) return getEnvironment().getJavaLangObject(); return fBounds[0].getErasure(); }
protected void initialize(ITypeBinding binding, IJavaProject javaProject) { Assert.isTrue(binding.isCapture()); super.initialize(binding); fWildcard= (WildcardType) getEnvironment().create(binding.getWildcard()); fJavaProject= javaProject; }
protected void initialize(ITypeBinding binding) { super.initialize(binding); ITypeBinding[] bounds= binding.getTypeBounds(); if (bounds.length == 0) { fBounds= EMPTY_TYPE_ARRAY; if (getEnvironment().getJavaLangObject() == null) { getEnvironment().initializeJavaLangObject(binding.getErasure()); } } else { fBounds= new TType[bounds.length]; for (int i= 0; i < bounds.length; i++) { fBounds[i]= getEnvironment().create(bounds[i]); } } }
protected void initialize(ITypeBinding binding, IJavaProject javaProject) { Assert.isTrue(binding.isCapture()); super.initialize(binding); fWildcard= (WildcardType) getEnvironment().create(binding.getWildcard()); fJavaProject= javaProject; }
@Override protected void initialize(ITypeBinding binding) { super.initialize(binding); ITypeBinding[] bounds= binding.getTypeBounds(); if (bounds.length == 0) { fBounds= EMPTY_TYPE_ARRAY; if (getEnvironment().getJavaLangObject() == null) { getEnvironment().initializeJavaLangObject(binding.getErasure()); } } else { fBounds= new TType[bounds.length]; for (int i= 0; i < bounds.length; i++) { fBounds[i]= getEnvironment().create(bounds[i]); } } }
protected void initialize(ITypeBinding binding, IJavaProject javaProject) { Assert.isTrue(binding.isCapture()); super.initialize(binding); fWildcard= (WildcardType) getEnvironment().create(binding.getWildcard()); fJavaProject= javaProject; }
@Override protected void initialize(ITypeBinding binding) { super.initialize(binding); ITypeBinding[] bounds= binding.getTypeBounds(); if (bounds.length == 0) { fBounds= EMPTY_TYPE_ARRAY; if (getEnvironment().getJavaLangObject() == null) { getEnvironment().initializeJavaLangObject(binding.getErasure()); } } else { fBounds= new TType[bounds.length]; for (int i= 0; i < bounds.length; i++) { fBounds[i]= getEnvironment().create(bounds[i]); } } }