private Type createBaseType(AST ast, ImportRewriteContext context, ITypeBinding normalizedBinding, TypeLocation location) { Type type; IAnnotationBinding annotationBinding [] = normalizedBinding.getTypeAnnotations(); boolean annotsPresent = annotationBinding != null && annotationBinding.length > 0; String qualifiedName= getRawQualifiedName(normalizedBinding); String res = qualifiedName.length() > 0 ? internalAddImport(qualifiedName, context) : getRawName(normalizedBinding); if (annotsPresent) { int dotIndex = res != null ? res.lastIndexOf('.') : -1; if (dotIndex > 0) { Name nameQualifier = ast.newName(res.substring(0, dotIndex)); SimpleName simpleName = ast.newSimpleName(res.substring(dotIndex + 1)); type = ast.newNameQualifiedType(nameQualifier, simpleName); } else { type = ast.newSimpleType(ast.newName(res)); } annotateList(((AnnotatableType) type).annotations(), annotationBinding, ast, context, location, normalizedBinding); } else { type = ast.newSimpleType(ast.newName(res)); } return type; }
private Type createBaseType(AST ast, ImportRewriteContext context, ITypeBinding normalizedBinding, TypeLocation location) { Type type; IAnnotationBinding annotationBinding [] = normalizedBinding.getTypeAnnotations(); boolean annotsPresent = annotationBinding != null && annotationBinding.length > 0; String qualifiedName= getRawQualifiedName(normalizedBinding); String res = qualifiedName.length() > 0 ? internalAddImport(qualifiedName, context) : getRawName(normalizedBinding); if (annotsPresent) { int dotIndex = res != null ? res.lastIndexOf('.') : -1; if (dotIndex > 0) { Name nameQualifier = ast.newName(res.substring(0, dotIndex)); SimpleName simpleName = ast.newSimpleName(res.substring(dotIndex + 1)); type = ast.newNameQualifiedType(nameQualifier, simpleName); } else { type = ast.newSimpleType(ast.newName(res)); } annotateList(((AnnotatableType) type).annotations(), annotationBinding, ast, context, location, normalizedBinding); } else { type = ast.newSimpleType(ast.newName(res)); } return type; }
private Type createBaseType(AST ast, ImportRewriteContext context, ITypeBinding normalizedBinding) { Type type; IAnnotationBinding annotationBinding [] = normalizedBinding.getTypeAnnotations(); boolean annotsPresent = annotationBinding != null && annotationBinding.length > 0; String qualifiedName= getRawQualifiedName(normalizedBinding); String res = qualifiedName.length() > 0 ? internalAddImport(qualifiedName, context) : getRawName(normalizedBinding); if (annotsPresent) { int dotIndex = res != null ? res.lastIndexOf('.') : -1; if (dotIndex > 0) { Name nameQualifier = ast.newName(res.substring(0, dotIndex)); SimpleName simpleName = ast.newSimpleName(res.substring(dotIndex + 1)); type = ast.newNameQualifiedType(nameQualifier, simpleName); } else { type = ast.newSimpleType(ast.newName(res)); } annotateList(((AnnotatableType) type).annotations(), annotationBinding, ast, context); } else { type = ast.newSimpleType(ast.newName(res)); } return type; }
return getRawName(normalizedBinding);
private Type createBaseType(AST ast, ImportRewriteContext context, ITypeBinding normalizedBinding) { Type type; IAnnotationBinding annotationBinding [] = normalizedBinding.getTypeAnnotations(); boolean annotsPresent = annotationBinding != null && annotationBinding.length > 0; String qualifiedName= getRawQualifiedName(normalizedBinding); String res = qualifiedName.length() > 0 ? internalAddImport(qualifiedName, context) : getRawName(normalizedBinding); if (annotsPresent) { int dotIndex = res != null ? res.lastIndexOf('.') : -1; if (dotIndex > 0) { Name nameQualifier = ast.newName(res.substring(0, dotIndex)); SimpleName simpleName = ast.newSimpleName(res.substring(dotIndex + 1)); type = ast.newNameQualifiedType(nameQualifier, simpleName); } else { type = ast.newSimpleType(ast.newName(res)); } annotateList(((AnnotatableType) type).annotations(), annotationBinding, ast, context); } else { type = ast.newSimpleType(ast.newName(res)); } return type; }
private Type createBaseType(AST ast, ImportRewriteContext context, ITypeBinding normalizedBinding) { Type type; IAnnotationBinding annotationBinding [] = normalizedBinding.getTypeAnnotations(); boolean annotsPresent = annotationBinding != null && annotationBinding.length > 0; String qualifiedName= getRawQualifiedName(normalizedBinding); String res = qualifiedName.length() > 0 ? internalAddImport(qualifiedName, context) : getRawName(normalizedBinding); if (annotsPresent) { int dotIndex = res != null ? res.lastIndexOf('.') : -1; if (dotIndex > 0) { Name nameQualifier = ast.newName(res.substring(0, dotIndex)); SimpleName simpleName = ast.newSimpleName(res.substring(dotIndex + 1)); type = ast.newNameQualifiedType(nameQualifier, simpleName); } else { type = ast.newSimpleType(ast.newName(res)); } annotateList(((AnnotatableType) type).annotations(), annotationBinding, ast, context); } else { type = ast.newSimpleType(ast.newName(res)); } return type; }
return getRawName(normalizedBinding);
return getRawName(normalizedBinding);
return getRawName(normalizedBinding);
return getRawName(normalizedBinding);
return getRawName(normalizedBinding);
type = createBaseType(ast, context, normalizedBinding, location); } else { type = currentType != null ? (Type) ast.newQualifiedType(currentType, ast.newSimpleName(getRawName(normalizedBinding))) : ast.newSimpleType(ast.newName(getRawName(normalizedBinding))); type = annotateType(normalizedBinding, ast, context, type, location);
type = createBaseType(ast, context, normalizedBinding); } else { type = currentType != null ? (Type) ast.newQualifiedType(currentType, ast.newSimpleName(getRawName(normalizedBinding))) : ast.newSimpleType(ast.newName(getRawName(normalizedBinding))); type = annotateType(normalizedBinding, ast, context, type);
type = createBaseType(ast, context, normalizedBinding); } else { type = currentType != null ? (Type) ast.newQualifiedType(currentType, ast.newSimpleName(getRawName(normalizedBinding))) : ast.newSimpleType(ast.newName(getRawName(normalizedBinding))); type = annotateType(normalizedBinding, ast, context, type);
type = createBaseType(ast, context, normalizedBinding, location); } else { type = currentType != null ? (Type) ast.newQualifiedType(currentType, ast.newSimpleName(getRawName(normalizedBinding))) : ast.newSimpleType(ast.newName(getRawName(normalizedBinding))); type = annotateType(normalizedBinding, ast, context, type, location);
type = createBaseType(ast, context, normalizedBinding); } else { type = currentType != null ? (Type) ast.newQualifiedType(currentType, ast.newSimpleName(getRawName(normalizedBinding))) : ast.newSimpleType(ast.newName(getRawName(normalizedBinding))); type = annotateType(normalizedBinding, ast, context, type);
return ast.newSimpleType(ast.newName(getRawName(normalizedBinding)));