Java Code Examples for jdk.nashorn.internal.runtime.Debug#id()
The following examples show how to use
jdk.nashorn.internal.runtime.Debug#id() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MethodHandleFactory.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id(((ScriptObject)arg).getMap()) + ')'; } return arg.toString(); }
Example 2
Source File: MethodHandleFactory.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id((((ScriptObject)arg).getMap())) + ")"; } return arg.toString(); }
Example 3
Source File: MethodHandleFactory.java From hottub with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id(((ScriptObject)arg).getMap()) + ')'; } return arg.toString(); }
Example 4
Source File: MethodHandleFactory.java From jdk8u_nashorn with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id(((ScriptObject)arg).getMap()) + ')'; } return arg.toString(); }
Example 5
Source File: MethodHandleFactory.java From nashorn with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id((((ScriptObject)arg).getMap())) + ")"; } return arg.toString(); }
Example 6
Source File: MethodHandleFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id(((ScriptObject)arg).getMap()) + ')'; } return arg.toString(); }
Example 7
Source File: MethodHandleFactory.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id(((ScriptObject)arg).getMap()) + ')'; } return arg.toString(); }
Example 8
Source File: MethodHandleFactory.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private static String argString(final Object arg) { if (arg == null) { return "null"; } if (arg.getClass().isArray()) { final List<Object> list = new ArrayList<>(); for (final Object elem : (Object[])arg) { list.add('\'' + argString(elem) + '\''); } return list.toString(); } if (arg instanceof ScriptObject) { return arg.toString() + " (map=" + Debug.id((((ScriptObject)arg).getMap())) + ")"; } return arg.toString(); }
Example 9
Source File: NativeArray.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "NativeArray@" + Debug.id(this) + " [" + getArray().getClass().getSimpleName() + ']'; }
Example 10
Source File: MethodEmitter.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "methodEmitter: " + (functionNode == null ? method : functionNode.getName()).toString() + ' ' + Debug.id(this); }
Example 11
Source File: MethodEmitter.java From jdk8u_nashorn with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "methodEmitter: " + (functionNode == null ? method : functionNode.getName()).toString() + ' ' + Debug.id(this); }
Example 12
Source File: NativeArray.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "NativeArray@" + Debug.id(this) + " [" + getArray().getClass().getSimpleName() + ']'; }
Example 13
Source File: Label.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return name + '_' + Debug.id(this); }
Example 14
Source File: NativeArray.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "NativeArray@" + Debug.id(this) + " [" + getArray().getClass().getSimpleName() + ']'; }
Example 15
Source File: NativeArray.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "NativeArray@" + Debug.id(this) + " [" + getArray().getClass().getSimpleName() + ']'; }
Example 16
Source File: MethodEmitter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "methodEmitter: " + (functionNode == null ? method : functionNode.getName()).toString() + ' ' + Debug.id(this); }
Example 17
Source File: Label.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return name + '_' + Debug.id(this); }
Example 18
Source File: MethodEmitter.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "methodEmitter: " + (functionNode == null ? method : functionNode.getName()).toString() + ' ' + Debug.id(this); }
Example 19
Source File: NativeArray.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "NativeArray@" + Debug.id(this) + " [" + getArray().getClass().getSimpleName() + ']'; }
Example 20
Source File: MethodEmitter.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return "methodEmitter: " + (functionNode == null ? method : functionNode.getName()).toString() + ' ' + Debug.id(this); }