Class Names


  • public class Names
    extends java.lang.Object
    Names provides static utility methods used by other rmic classes for dealing with identifiers. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
    • Constructor Detail

      • Names

        public Names()
    • Method Detail

      • stubFor

        public static final Identifier stubFor​(Identifier name)
        Return stub class name for impl class name.
      • skeletonFor

        public static final Identifier skeletonFor​(Identifier name)
        Return skeleton class name for impl class name.
      • mangleClass

        public static final Identifier mangleClass​(Identifier className)
        If necessary, convert a class name to its mangled form, i.e. the non-inner class name used in the binary representation of inner classes. This is necessary to be able to name inner classes in the generated source code in places where the language does not permit it, such as when synthetically defining an inner class outside of its outer class, and for generating file names corresponding to inner classes. Currently this mangling involves modifying the internal names of inner classes by converting occurrences of ". " into "$". This code is taken from the "mangleInnerType" method of the "org.glassfish.rmic.tools.java.Type" class; this method cannot be accessed itself because it is package protected.