Java Code Examples for jdk.internal.dynalink.beans.StaticClass#forClass()
The following examples show how to use
jdk.internal.dynalink.beans.StaticClass#forClass() .
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: NativeJavaImporter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private Object createProperty(final String name) { final int len = args.length; for (int i = len - 1; i > -1; i--) { final Object obj = args[i]; if (obj instanceof StaticClass) { if (((StaticClass)obj).getRepresentedClass().getSimpleName().equals(name)) { return obj; } } else if (obj instanceof NativeJavaPackage) { final String pkgName = ((NativeJavaPackage)obj).getName(); final String fullName = pkgName.isEmpty() ? name : (pkgName + "." + name); final Context context = Global.instance().getContext(); try { return StaticClass.forClass(context.findClass(fullName)); } catch (final ClassNotFoundException e) { // IGNORE } } } return null; }
Example 2
Source File: NativeJavaImporter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private Object createProperty(final String name) { final int len = args.length; for (int i = len - 1; i > -1; i--) { final Object obj = args[i]; if (obj instanceof StaticClass) { if (((StaticClass)obj).getRepresentedClass().getSimpleName().equals(name)) { return obj; } } else if (obj instanceof NativeJavaPackage) { final String pkgName = ((NativeJavaPackage)obj).getName(); final String fullName = pkgName.isEmpty() ? name : (pkgName + "." + name); final Context context = Global.instance().getContext(); try { return StaticClass.forClass(context.findClass(fullName)); } catch (final ClassNotFoundException e) { // IGNORE } } } return null; }
Example 3
Source File: NativeJavaImporter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private Object createProperty(final String name) { final int len = args.length; for (int i = len - 1; i > -1; i--) { final Object obj = args[i]; if (obj instanceof StaticClass) { if (((StaticClass)obj).getRepresentedClass().getSimpleName().equals(name)) { return obj; } } else if (obj instanceof NativeJavaPackage) { final String pkgName = ((NativeJavaPackage)obj).getName(); final String fullName = pkgName.isEmpty() ? name : (pkgName + "." + name); final Context context = Global.instance().getContext(); try { return StaticClass.forClass(context.findClass(fullName)); } catch (final ClassNotFoundException e) { // IGNORE } } } return null; }
Example 4
Source File: NativeJavaImporter.java From hottub with GNU General Public License v2.0 | 6 votes |
private Object createProperty(final String name) { final int len = args.length; for (int i = len - 1; i > -1; i--) { final Object obj = args[i]; if (obj instanceof StaticClass) { if (((StaticClass)obj).getRepresentedClass().getSimpleName().equals(name)) { return obj; } } else if (obj instanceof NativeJavaPackage) { final String pkgName = ((NativeJavaPackage)obj).getName(); final String fullName = pkgName.isEmpty() ? name : (pkgName + "." + name); final Context context = Global.instance().getContext(); try { return StaticClass.forClass(context.findClass(fullName)); } catch (final ClassNotFoundException e) { // IGNORE } } } return null; }
Example 5
Source File: NativeJavaImporter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private Object createProperty(final String name) { final int len = args.length; for (int i = len - 1; i > -1; i--) { final Object obj = args[i]; if (obj instanceof StaticClass) { if (((StaticClass)obj).getRepresentedClass().getSimpleName().equals(name)) { return obj; } } else if (obj instanceof NativeJavaPackage) { final String pkgName = ((NativeJavaPackage)obj).getName(); final String fullName = pkgName.isEmpty() ? name : (pkgName + "." + name); final Context context = Global.instance().getContext(); try { return StaticClass.forClass(context.findClass(fullName)); } catch (final ClassNotFoundException e) { // IGNORE } } } return null; }
Example 6
Source File: NativeJavaImporter.java From jdk8u_nashorn with GNU General Public License v2.0 | 6 votes |
private Object createProperty(final String name) { final int len = args.length; for (int i = len - 1; i > -1; i--) { final Object obj = args[i]; if (obj instanceof StaticClass) { if (((StaticClass)obj).getRepresentedClass().getSimpleName().equals(name)) { return obj; } } else if (obj instanceof NativeJavaPackage) { final String pkgName = ((NativeJavaPackage)obj).getName(); final String fullName = pkgName.isEmpty() ? name : (pkgName + "." + name); final Context context = Global.instance().getContext(); try { return StaticClass.forClass(context.findClass(fullName)); } catch (final ClassNotFoundException e) { // IGNORE } } } return null; }
Example 7
Source File: NativeJavaImporter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private Object createProperty(final String name) { final int len = args.length; for (int i = len - 1; i > -1; i--) { final Object obj = args[i]; if (obj instanceof StaticClass) { if (((StaticClass)obj).getRepresentedClass().getSimpleName().equals(name)) { return obj; } } else if (obj instanceof NativeJavaPackage) { final String pkgName = ((NativeJavaPackage)obj).getName(); final String fullName = pkgName.isEmpty() ? name : (pkgName + "." + name); final Context context = Global.instance().getContext(); try { return StaticClass.forClass(context.findClass(fullName)); } catch (final ClassNotFoundException e) { // IGNORE } } } return null; }
Example 8
Source File: InternalRunnableSuperclass.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 9
Source File: InternalRunnableSuperclass.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 10
Source File: InternalRunnableSuperclass.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 11
Source File: NativeJava.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private static StaticClass type(final Object objTypeName) throws ClassNotFoundException { return StaticClass.forClass(type(JSType.toString(objTypeName))); }
Example 12
Source File: NativeJava.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private static StaticClass type(final Object objTypeName) throws ClassNotFoundException { return StaticClass.forClass(type(JSType.toString(objTypeName))); }
Example 13
Source File: InternalRunnableSuperclass.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 14
Source File: NativeJava.java From hottub with GNU General Public License v2.0 | 4 votes |
private static StaticClass type(final Object objTypeName) throws ClassNotFoundException { return StaticClass.forClass(type(JSType.toString(objTypeName))); }
Example 15
Source File: InternalRunnableSuperclass.java From jdk8u_nashorn with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 16
Source File: InternalRunnableSuperclass.java From hottub with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 17
Source File: NativeJava.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private static StaticClass type(final Object objTypeName) throws ClassNotFoundException { return StaticClass.forClass(type(JSType.toString(objTypeName))); }
Example 18
Source File: InternalRunnableSuperclass.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 19
Source File: InternalRunnableSuperclass.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public static StaticClass getInternalRunnableType() { return StaticClass.forClass(InternalRunnable.class); }
Example 20
Source File: NativeJava.java From jdk8u_nashorn with GNU General Public License v2.0 | 4 votes |
private static StaticClass type(final Object objTypeName) throws ClassNotFoundException { return StaticClass.forClass(type(JSType.toString(objTypeName))); }