nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/support/NameCodec.java
equal
deleted
inserted
replaced
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 |