public class

Names

extends Object
java.lang.Object
   ↳ sun.rmi.rmic.Names

Class Overview

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.

Summary

Public Constructors
Names()
Public Methods
final static Identifier mangleClass(Identifier className)
If necessary, convert a class name to its mangled form, i.e.
final static Identifier skeletonFor(Identifier name)
Return skeleton class name for impl class name.
final static Identifier stubFor(Identifier name)
Return stub class name for impl class name.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Names ()

Public Methods

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 "sun.tools.java.Type" class; this method cannot be accessed itself because it is package protected.

public static final Identifier skeletonFor (Identifier name)

Return skeleton class name for impl class name.

public static final Identifier stubFor (Identifier name)

Return stub class name for impl class name.