org.reextractor.util.ClassUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refactoring-extractor Show documentation
Show all versions of refactoring-extractor Show documentation
An automated refactoring detection algorithm
package org.reextractor.util;
import org.remapper.dto.DeclarationNodeTree;
import org.remapper.util.StringUtils;
public class ClassUtils {
public static String typeDeclaration2String(DeclarationNodeTree typeDeclaration) {
StringBuilder sb = new StringBuilder();
if (StringUtils.isNotEmpty(typeDeclaration.getNamespace())) {
sb.append(typeDeclaration.getNamespace()).append(".").append(typeDeclaration.getName());
} else {
sb.append(typeDeclaration.getName());
}
return sb.toString();
}
}