IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
NonPEModule.cs
Go to the documentation of this file.
1/*
2 Copyright (C) 2009-2013 Jeroen Frijters
3
4 This software is provided 'as-is', without any express or implied
5 warranty. In no event will the authors be held liable for any damages
6 arising from the use of this software.
7
8 Permission is granted to anyone to use this software for any purpose,
9 including commercial applications, and to alter it and redistribute it
10 freely, subject to the following restrictions:
11
12 1. The origin of this software must not be misrepresented; you must not
13 claim that you wrote the original software. If you use this software
14 in a product, an acknowledgment in the product documentation would be
15 appreciated but is not required.
16 2. Altered source versions must be plainly marked as such, and must not be
17 misrepresented as being the original software.
18 3. This notice may not be removed or altered from any source distribution.
19
20 Jeroen Frijters
21 jeroen@frijters.net
22
23*/
24using System;
25using System.Reflection.Metadata;
26
28
29namespace IKVM.Reflection
30{
31
32 abstract class NonPEModule : Module
33 {
34
39 protected NonPEModule(Universe universe) :
40 base(universe)
41 {
42
43 }
44
45 protected virtual Exception InvalidOperationException()
46 {
47 return new InvalidOperationException();
48 }
49
50 protected virtual Exception NotSupportedException()
51 {
52 return new NotSupportedException();
53 }
54
55 protected virtual Exception ArgumentOutOfRangeException()
56 {
57 return new ArgumentOutOfRangeException();
58 }
59
60 internal sealed override Type GetModuleType()
61 {
63 }
64
65 internal sealed override ByteReader GetBlobReader(BlobHandle handle)
66 {
68 }
69
70 public sealed override AssemblyName[] __GetReferencedAssemblies()
71 {
73 }
74
75 public sealed override string[] __GetReferencedModules()
76 {
78 }
79
80 public override Type[] __GetReferencedTypes()
81 {
83 }
84
85 public override Type[] __GetExportedTypes()
86 {
88 }
89
90 protected sealed override ulong GetImageBaseImpl()
91 {
93 }
94
95 protected sealed override ulong GetStackReserveImpl()
96 {
98 }
99
100 protected sealed override uint GetFileAlignmentImpl()
101 {
102 throw NotSupportedException();
103 }
104
105 protected override DllCharacteristics GetDllCharacteristicsImpl()
106 {
107 throw NotSupportedException();
108 }
109
110 internal sealed override Type ResolveType(int metadataToken, IGenericContext context)
111 {
113 }
114
115 public sealed override MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
116 {
118 }
119
120 public sealed override FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
121 {
123 }
124
125 public sealed override MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
126 {
128 }
129
130 public sealed override string ResolveString(int metadataToken)
131 {
133 }
134
135 public sealed override Type[] __ResolveOptionalParameterTypes(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments, out CustomModifiers[] customModifiers)
136 {
138 }
139
140 }
141
142}
virtual Exception InvalidOperationException()
override Type[] __GetReferencedTypes()
override ulong GetStackReserveImpl()
override ulong GetImageBaseImpl()
override string ResolveString(int metadataToken)
override DllCharacteristics GetDllCharacteristicsImpl()
override Type[] __ResolveOptionalParameterTypes(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments, out CustomModifiers[] customModifiers)
override FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
override Type[] __GetExportedTypes()
override uint GetFileAlignmentImpl()
virtual Exception ArgumentOutOfRangeException()
override string[] __GetReferencedModules()
override MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
virtual Exception NotSupportedException()
override MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
NonPEModule(Universe universe)
Initializes a new instance.
override AssemblyName[] __GetReferencedAssemblies()