IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Runtime.RuntimeContext Class Reference

Maintains services relevant to an instane of the IKVM runtime. More...

Public Member Functions

 RuntimeContext (RuntimeContextOptions options, IDiagnosticHandler diagnostics, ISymbolResolver resolver, bool bootstrap)
 Initializes a new instance.
 
GetOrCreateSingleton< T > (Func< T > create)
 Gets or creates an object of type T .
 

Properties

IDiagnosticHandler Diagnostics [get]
 Gets the IDiagnosticHandler where events should be sent.
 
RuntimeContextOptions Options [get]
 Gets the RuntimeContextOptions associated with this instance of the runtime.
 
ISymbolResolver Resolver [get]
 Gets the ISymbolResolver associated with this instance of the runtime.
 
bool Bootstrap [get]
 Gets whether or not the runtime is running in bootstrap mode; that is, we are compiling the Java base assembly itself.
 
Types Types [get]
 Gets the Types associated with this instance of the runtime.
 
CoreClasses JavaBase [get]
 Gets the CoreClasses associated with this instance of the runtime.
 
AttributeHelper AttributeHelper [get]
 Gets the AttributeHelper associated with this instance of the runtime.
 
RuntimePrimitiveJavaTypeFactory PrimitiveJavaTypeFactory [get]
 Gets the RuntimePrimitiveJavaTypeFactory associated with this instance of the runtime.
 
RuntimeVerifierJavaTypeFactory VerifierJavaTypeFactory [get]
 Gets the RuntimeVerifierJavaTypeFactory associated with this instance of the runtime.
 
StubGenerator StubGenerator [get]
 Gets the StubGenerator associated with this instance of the runtime.
 
CodeEmitterFactory CodeEmitterFactory [get]
 Gets the CodeEmitterFactory associated with this instance of the runtime.
 
DynamicClassLoaderFactory DynamicClassLoaderFactory [get]
 Gets the DynamicClassLoaderFactory associated with this instance of the runtime.
 
ByteCodeHelperMethods ByteCodeHelperMethods [get]
 Gets the ByteCodeHelperMethods associated with this instance of the runtime.
 
Serialization Serialization [get]
 Gets the Serialization associated with this instance of the runtime.
 
CompilerFactory CompilerFactory [get]
 Gets the CompilerFactory associated with this instance of the runtime.
 
InterlockedMethods InterlockedMethods [get]
 Gets the InterlockedMethods associated with this instance of the runtime.
 
MethodAnalyzerFactory MethodAnalyzerFactory [get]
 Gets the MethodAnalyzerFactory associated with this instance of the runtime.
 
MethodHandleUtil MethodHandleUtil [get]
 Gets the MethodHandleUtil associated with this instance of the runtime.
 
Boxer Boxer [get]
 Gets the Boxer associated with this instance of the runtime.
 
ExceptionHelper ExceptionHelper [get]
 Gets the ExceptionHelper associated with this instance of the runtime.
 
RuntimeClassLoaderFactory ClassLoaderFactory [get]
 Gets the RuntimeClassLoaderFactory associated with this instance of the runtime.
 
RuntimeAssemblyClassLoaderFactory AssemblyClassLoaderFactory [get]
 Gets the RuntimeAssemblyClassLoaderFactory associated with this instance of the runtime.
 
RuntimeManagedJavaTypeFactory ManagedJavaTypeFactory [get]
 Gets the RuntimeManagedJavaTypeFactory associated with this instance of the runtime.
 
RuntimeManagedByteCodeJavaTypeFactory ManagedByteCodeJavaTypeFactory [get]
 Gets the RuntimeManagedJavaTypeFactory associated with this instance of the runtime.
 

Detailed Description

Maintains services relevant to an instane of the IKVM runtime.

Definition at line 27 of file RuntimeContext.cs.

Constructor & Destructor Documentation

◆ RuntimeContext()

IKVM.Runtime.RuntimeContext.RuntimeContext ( RuntimeContextOptions options,
IDiagnosticHandler diagnostics,
ISymbolResolver resolver,
bool bootstrap )

Initializes a new instance.

Parameters
options
diagnostics
resolver
bootstrap

Definition at line 102 of file RuntimeContext.cs.

103 {
104 this.options = options ?? throw new ArgumentNullException(nameof(options));
105 this.diagnostics = diagnostics ?? throw new ArgumentNullException(nameof(diagnostics));
106 this.resolver = resolver ?? throw new ArgumentNullException(nameof(resolver));
107 this.bootstrap = bootstrap;
108 }

Member Function Documentation

◆ GetOrCreateSingleton< T >()

T IKVM.Runtime.RuntimeContext.GetOrCreateSingleton< T > ( Func< T > create)

Gets or creates an object of type T .

Template Parameters
T
Parameters
create
Returns

Property Documentation

◆ AssemblyClassLoaderFactory

RuntimeAssemblyClassLoaderFactory IKVM.Runtime.RuntimeContext.AssemblyClassLoaderFactory
get

Gets the RuntimeAssemblyClassLoaderFactory associated with this instance of the runtime.

Definition at line 257 of file RuntimeContext.cs.

◆ AttributeHelper

AttributeHelper IKVM.Runtime.RuntimeContext.AttributeHelper
get

Gets the AttributeHelper associated with this instance of the runtime.

Definition at line 169 of file RuntimeContext.cs.

◆ Bootstrap

bool IKVM.Runtime.RuntimeContext.Bootstrap
get

Gets whether or not the runtime is running in bootstrap mode; that is, we are compiling the Java base assembly itself.

Definition at line 154 of file RuntimeContext.cs.

◆ Boxer

Boxer IKVM.Runtime.RuntimeContext.Boxer
get

Gets the Boxer associated with this instance of the runtime.

Definition at line 236 of file RuntimeContext.cs.

◆ ByteCodeHelperMethods

ByteCodeHelperMethods IKVM.Runtime.RuntimeContext.ByteCodeHelperMethods
get

Gets the ByteCodeHelperMethods associated with this instance of the runtime.

Definition at line 205 of file RuntimeContext.cs.

◆ ClassLoaderFactory

RuntimeClassLoaderFactory IKVM.Runtime.RuntimeContext.ClassLoaderFactory
get

Gets the RuntimeClassLoaderFactory associated with this instance of the runtime.

Definition at line 252 of file RuntimeContext.cs.

◆ CodeEmitterFactory

CodeEmitterFactory IKVM.Runtime.RuntimeContext.CodeEmitterFactory
get

Gets the CodeEmitterFactory associated with this instance of the runtime.

Definition at line 195 of file RuntimeContext.cs.

◆ CompilerFactory

CompilerFactory IKVM.Runtime.RuntimeContext.CompilerFactory
get

Gets the CompilerFactory associated with this instance of the runtime.

Definition at line 216 of file RuntimeContext.cs.

◆ Diagnostics

IDiagnosticHandler IKVM.Runtime.RuntimeContext.Diagnostics
get

Gets the IDiagnosticHandler where events should be sent.

Definition at line 115 of file RuntimeContext.cs.

◆ DynamicClassLoaderFactory

DynamicClassLoaderFactory IKVM.Runtime.RuntimeContext.DynamicClassLoaderFactory
get

Gets the DynamicClassLoaderFactory associated with this instance of the runtime.

Definition at line 200 of file RuntimeContext.cs.

◆ ExceptionHelper

ExceptionHelper IKVM.Runtime.RuntimeContext.ExceptionHelper
get

Gets the ExceptionHelper associated with this instance of the runtime.

Definition at line 245 of file RuntimeContext.cs.

◆ InterlockedMethods

InterlockedMethods IKVM.Runtime.RuntimeContext.InterlockedMethods
get

Gets the InterlockedMethods associated with this instance of the runtime.

Definition at line 221 of file RuntimeContext.cs.

◆ JavaBase

CoreClasses IKVM.Runtime.RuntimeContext.JavaBase
get

Gets the CoreClasses associated with this instance of the runtime.

Definition at line 164 of file RuntimeContext.cs.

◆ ManagedByteCodeJavaTypeFactory

RuntimeManagedByteCodeJavaTypeFactory IKVM.Runtime.RuntimeContext.ManagedByteCodeJavaTypeFactory
get

Gets the RuntimeManagedJavaTypeFactory associated with this instance of the runtime.

Definition at line 267 of file RuntimeContext.cs.

◆ ManagedJavaTypeFactory

RuntimeManagedJavaTypeFactory IKVM.Runtime.RuntimeContext.ManagedJavaTypeFactory
get

Gets the RuntimeManagedJavaTypeFactory associated with this instance of the runtime.

Definition at line 262 of file RuntimeContext.cs.

◆ MethodAnalyzerFactory

MethodAnalyzerFactory IKVM.Runtime.RuntimeContext.MethodAnalyzerFactory
get

Gets the MethodAnalyzerFactory associated with this instance of the runtime.

Definition at line 226 of file RuntimeContext.cs.

◆ MethodHandleUtil

MethodHandleUtil IKVM.Runtime.RuntimeContext.MethodHandleUtil
get

Gets the MethodHandleUtil associated with this instance of the runtime.

Definition at line 231 of file RuntimeContext.cs.

◆ Options

RuntimeContextOptions IKVM.Runtime.RuntimeContext.Options
get

Gets the RuntimeContextOptions associated with this instance of the runtime.

Definition at line 144 of file RuntimeContext.cs.

◆ PrimitiveJavaTypeFactory

RuntimePrimitiveJavaTypeFactory IKVM.Runtime.RuntimeContext.PrimitiveJavaTypeFactory
get

Gets the RuntimePrimitiveJavaTypeFactory associated with this instance of the runtime.

Definition at line 174 of file RuntimeContext.cs.

◆ Resolver

ISymbolResolver IKVM.Runtime.RuntimeContext.Resolver
get

Gets the ISymbolResolver associated with this instance of the runtime.

Definition at line 149 of file RuntimeContext.cs.

◆ Serialization

Serialization IKVM.Runtime.RuntimeContext.Serialization
get

Gets the Serialization associated with this instance of the runtime.

Definition at line 210 of file RuntimeContext.cs.

◆ StubGenerator

StubGenerator IKVM.Runtime.RuntimeContext.StubGenerator
get

Gets the StubGenerator associated with this instance of the runtime.

Definition at line 186 of file RuntimeContext.cs.

◆ Types

Types IKVM.Runtime.RuntimeContext.Types
get

Gets the Types associated with this instance of the runtime.

Definition at line 159 of file RuntimeContext.cs.

◆ VerifierJavaTypeFactory

RuntimeVerifierJavaTypeFactory IKVM.Runtime.RuntimeContext.VerifierJavaTypeFactory
get

Gets the RuntimeVerifierJavaTypeFactory associated with this instance of the runtime.

Definition at line 179 of file RuntimeContext.cs.


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