IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
MarkerType.cs
Go to the documentation of this file.
1/*
2 Copyright (C) 2009-2015 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;
25
26namespace IKVM.Reflection
27{
28 sealed class MarkerType : Type
29 {
30
31 // used by CustomModifiers and SignatureHelper
32 internal static readonly Type ModOpt = new MarkerType(Signature.ELEMENT_TYPE_CMOD_OPT);
33 internal static readonly Type ModReq = new MarkerType(Signature.ELEMENT_TYPE_CMOD_REQD);
34 // used by SignatureHelper
35 internal static readonly Type Sentinel = new MarkerType(Signature.SENTINEL);
36 internal static readonly Type Pinned = new MarkerType(Signature.ELEMENT_TYPE_PINNED);
37 // used by ModuleReader.LazyForwardedType and TypeSpec resolution
38 internal static readonly Type LazyResolveInProgress = new MarkerType(0xFF);
39
44 MarkerType(byte sigElementType) :
45 base(sigElementType)
46 {
47
48 }
49
50 public override Type BaseType
51 {
52 get { throw new InvalidOperationException(); }
53 }
54
55 public override TypeAttributes Attributes
56 {
57 get { throw new InvalidOperationException(); }
58 }
59
60 public override string Name
61 {
62 get { throw new InvalidOperationException(); }
63 }
64
65 public override string FullName
66 {
67 get { throw new InvalidOperationException(); }
68 }
69
70 public override Module Module
71 {
72 get { throw new InvalidOperationException(); }
73 }
74
75 internal override bool IsBaked
76 {
77 get { throw new InvalidOperationException(); }
78 }
79
80 public override bool __IsMissing
81 {
82 get { return false; }
83 }
84
85 protected override bool IsValueTypeImpl
86 {
87 get { throw new InvalidOperationException(); }
88 }
89
90 }
91
92}
global::java.lang.invoke.LambdaForm.Name Name
override bool __IsMissing
Definition MarkerType.cs:81
override string FullName
Definition MarkerType.cs:66
override TypeAttributes Attributes
Definition MarkerType.cs:56
override bool IsValueTypeImpl
Definition MarkerType.cs:86