IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Java.Externs.java.lang.SecurityManager Class Reference

Static Public Member Functions

static global::java.lang.Class[] getClassContext (object thisSecurityManager)
 
static object currentClassLoader0 (object thisSecurityManager)
 
static int classDepth (object thisSecurityManager, string name)
 
static int classLoaderDepth0 (object thisSecurityManager)
 
static global::java.lang.Class currentLoadedClass0 (object thisSecurityManager)
 

Detailed Description

Definition at line 34 of file SecurityManager.cs.

Member Function Documentation

◆ classDepth()

static int IKVM.Java.Externs.java.lang.SecurityManager.classDepth ( object thisSecurityManager,
string name )
static

Definition at line 72 of file SecurityManager.cs.

73 {
74 throw new NotImplementedException();
75 }

◆ classLoaderDepth0()

static int IKVM.Java.Externs.java.lang.SecurityManager.classLoaderDepth0 ( object thisSecurityManager)
static

Definition at line 77 of file SecurityManager.cs.

78 {
79 throw new NotImplementedException();
80 }

◆ currentClassLoader0()

static object IKVM.Java.Externs.java.lang.SecurityManager.currentClassLoader0 ( object thisSecurityManager)
static

Definition at line 63 of file SecurityManager.cs.

64 {
65 var currentClass = currentLoadedClass0(thisSecurityManager);
66 if (currentClass != null)
67 return RuntimeJavaType.FromClass(currentClass).ClassLoader.GetJavaClassLoader();
68
69 return null;
70 }
static global::java.lang.Class currentLoadedClass0(object thisSecurityManager)

◆ currentLoadedClass0()

static global.java.lang.Class IKVM.Java.Externs.java.lang.SecurityManager.currentLoadedClass0 ( object thisSecurityManager)
static

Definition at line 82 of file SecurityManager.cs.

83 {
84 throw new NotImplementedException();
85 }

◆ getClassContext()

static global.java.lang.Class[] IKVM.Java.Externs.java.lang.SecurityManager.getClassContext ( object thisSecurityManager)
static

Definition at line 37 of file SecurityManager.cs.

38 {
39#if FIRST_PASS
40 throw new NotImplementedException();
41#else
42 var stack = new List<global::java.lang.Class>();
43 var trace = new StackTrace();
44 for (int i = 0; i < trace.FrameCount; i++)
45 {
46 var frame = trace.GetFrame(i);
47 var method = frame.GetMethod();
48
49 if (IKVM.Java.Externs.sun.reflect.Reflection.IsHideFromStackWalk(method))
50 continue;
51
52 var type = method.DeclaringType;
53 if (type == typeof(global::java.lang.SecurityManager))
54 continue;
55
56 stack.Add(JVM.Context.ClassLoaderFactory.GetJavaTypeFromType(type).ClassObject);
57 }
58
59 return stack.ToArray();
60#endif
61 }
Provides the implementations of the native methods in global::sun.reflect.Reflection.
Definition Reflection.cs:40
Main state of the running JVM.
RuntimeClassLoaderFactory ClassLoaderFactory
Gets the RuntimeClassLoaderFactory associated with this instance of the runtime.

The documentation for this class was generated from the following file: