nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/support/NameCodec.java
changeset 33339 334cd3ebfa5e
parent 33333 0bad500ce4e0
child 33343 23abd10384a5
equal deleted inserted replaced
33338:faf6471e1cc8 33339:334cd3ebfa5e
   103  * that method when creating call site descriptors, (it is recommended that you
   103  * that method when creating call site descriptors, (it is recommended that you
   104  * do), then you have demangling handled for you already, and only need to
   104  * do), then you have demangling handled for you already, and only need to
   105  * ensure that you mangle the names using {@link #encode(String)} when you're
   105  * ensure that you mangle the names using {@link #encode(String)} when you're
   106  * emitting them in the bytecode.
   106  * emitting them in the bytecode.
   107  */
   107  */
   108 public class NameCodec {
   108 public final class NameCodec {
   109     private static final char ESCAPE_CHAR = '\\';
   109     private static final char ESCAPE_CHAR = '\\';
   110     private static final char EMPTY_ESCAPE = '=';
   110     private static final char EMPTY_ESCAPE = '=';
   111     private static final String EMPTY_NAME = new String(new char[] { ESCAPE_CHAR, EMPTY_ESCAPE });
   111     private static final String EMPTY_NAME = new String(new char[] { ESCAPE_CHAR, EMPTY_ESCAPE });
   112     private static final char EMPTY_CHAR = 0xFEFF;
   112     private static final char EMPTY_CHAR = 0xFEFF;
   113 
   113