Here you can find the source of sanitizeTypename(String name)
Parameter | Description |
---|---|
name | The type name. |
public static String sanitizeTypename(String name)
//package com.java2s; //License from project: Open Source License public class Main { /**//from www. j a v a 2s. c o m * Rewrites a type name so that it can be executed in code. * For example "Test.Foo foo" compiles but "Test$Foo foo", * the full typename, does not. * TODO: There must be a better way to do this through Eclipse. * @param name The type name. * @return A sanitized version of the given type name. */ public static String sanitizeTypename(String name) { return name.replace('$', '.'); } }