Java Class Name Create toClassname(String apparatClassname)

Here you can find the source of toClassname(String apparatClassname)

Description

to Classname

License

Apache License

Declaration

public static String toClassname(String apparatClassname) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String toClassname(String apparatClassname) {
        // F:\4.x\flexmojos-aggregator\flexmojos-testing\flexmojos-test-harness\target\projects\concept\flexunit-example_testFlexUnitExample\src;com\adobe\example;Calculator.as
        String cn = apparatClassname;
        // com\adobe\example;Calculator.as
        cn = cn.substring(cn.indexOf(';') + 1);
        cn = cn.substring(0, cn.indexOf('.'));
        cn = cn.replace('/', '.').replace('\\', '.').replace(';', '.');
        return cn;
    }/*from   w w  w .  j  a  v a2 s .  co m*/
}

Related

  1. toClassName(Class clazz)
  2. toClassName(Enum enumeration)
  3. toClassName(Object obj)
  4. toClassName(String className)
  5. toClassName(String className)
  6. toClassName(String className)
  7. toClassName(String fileName)