All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.reextractor.util.ClassUtils Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy