/**
 * 
 */
package de.dhbwstuttgart.bytecode.utilities;

import de.dhbwstuttgart.bytecode.descriptor.TypeToDescriptor;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
import de.dhbwstuttgart.typeinference.result.ResultSet;

/**
 * @author fayez
 *
 */
public class Resolver {
	
	private ResultSet resultSet;

	/**
	 * @param resultSet
	 */
	public Resolver(ResultSet resultSet) {
		this.resultSet = resultSet;
	}
	
	public String getResolvedType(RefTypeOrTPHOrWildcardOrGeneric type) {
		return resultSet.resolveType(type).resolvedType.acceptTV(new TypeToDescriptor());
	}
}
