public class ModuleBuilder extends Module
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Reflection.Emit.ModuleBuilder
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Reflection.Emit.ModuleBuilder
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ModuleBuilder() |
ModuleBuilder(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ModuleBuilder |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ModuleBuilder, a cast assert is made to check if types are compatible. |
void |
CreateGlobalFunctions()
Invokes the .NET member CreateGlobalFunctions.
|
ISymbolDocumentWriter |
DefineDocument(java.lang.String url,
Guid language)
Invokes the .NET member DefineDocument.
|
ISymbolDocumentWriter |
DefineDocument(java.lang.String url,
Guid language,
Guid languageVendor,
Guid documentType)
Invokes the .NET member DefineDocument.
|
EnumBuilder |
DefineEnum(java.lang.String name,
TypeAttributes visibility,
NetType underlyingType)
Invokes the .NET member DefineEnum.
|
MethodBuilder |
DefineGlobalMethod(java.lang.String name,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes)
Invokes the .NET member DefineGlobalMethod.
|
MethodBuilder |
DefineGlobalMethod(java.lang.String name,
MethodAttributes attributes,
NetType returnType,
NetType[] parameterTypes)
Invokes the .NET member DefineGlobalMethod.
|
FieldBuilder |
DefineInitializedData(java.lang.String name,
byte[] data,
FieldAttributes attributes)
Invokes the .NET member DefineInitializedData.
|
FieldBuilder |
DefineInitializedData(java.lang.String dupParam0,
JCORefOut dupParam1,
FieldAttributes dupParam2)
Invokes the .NET member DefineInitializedData.
|
MethodBuilder |
DefinePInvokeMethod(java.lang.String name,
java.lang.String dllName,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
CallingConvention nativeCallConv,
CharSet nativeCharSet)
Invokes the .NET member DefinePInvokeMethod.
|
MethodBuilder |
DefinePInvokeMethod(java.lang.String name,
java.lang.String dllName,
java.lang.String entryName,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
CallingConvention nativeCallConv,
CharSet nativeCharSet)
Invokes the .NET member DefinePInvokeMethod.
|
TypeBuilder |
DefineType(java.lang.String name)
Invokes the .NET member DefineType.
|
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr)
Invokes the .NET member DefineType.
|
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent)
Invokes the .NET member DefineType.
|
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
int typesize)
Invokes the .NET member DefineType.
|
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
NetType[] interfaces)
Invokes the .NET member DefineType.
|
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
PackingSize packsize)
Invokes the .NET member DefineType.
|
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
PackingSize packingSize,
int typesize)
Invokes the .NET member DefineType.
|
FieldBuilder |
DefineUninitializedData(java.lang.String name,
int size,
FieldAttributes attributes)
Invokes the .NET member DefineUninitializedData.
|
MethodInfo |
GetArrayMethod(NetType arrayClass,
java.lang.String methodName,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes)
Invokes the .NET member GetArrayMethod.
|
int |
GetFieldMetadataToken(FieldInfo field)
Invokes the .NET member GetFieldMetadataToken.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
GetMethodMetadataToken(ConstructorInfo constructor)
Invokes the .NET member GetMethodMetadataToken.
|
int |
GetMethodMetadataToken(MethodInfo method)
Invokes the .NET member GetMethodMetadataToken.
|
int |
GetSignatureMetadataToken(SignatureHelper signature)
Invokes the .NET member GetSignatureMetadataToken.
|
int |
GetStringMetadataToken(java.lang.String stringConstant)
Invokes the .NET member GetStringMetadataToken.
|
int |
GetTypeMetadataToken(NetType type)
Invokes the .NET member GetTypeMetadataToken.
|
void |
SetCustomAttribute(ConstructorInfo con,
byte[] binaryAttribute)
Invokes the .NET member SetCustomAttribute.
|
void |
SetCustomAttribute(ConstructorInfo dupParam0,
JCORefOut dupParam1)
Invokes the .NET member SetCustomAttribute.
|
void |
SetCustomAttribute(CustomAttributeBuilder customBuilder)
Invokes the .NET member SetCustomAttribute.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
FindTypes, getAssembly, getCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributesData, GetField, GetField, GetFields, GetFields, getFullyQualifiedName, getMDStreamVersion, getMetadataToken, GetMethod, GetMethod, GetMethod, GetMethods, GetMethods, getModuleHandle, getModuleVersionId, getName, GetObjectData, GetPEKind, getScopeName, GetType, GetType, GetType, GetTypes, IsDefined, IsResource, ResolveField, ResolveField, ResolveMember, ResolveMember, ResolveMethod, ResolveMethod, ResolveSignature, ResolveString, ResolveType, ResolveTypepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ModuleBuilder()
throws java.lang.Throwable
java.lang.Throwablepublic ModuleBuilder(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static ModuleBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ModuleBuilder, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedModuleBuilder instancejava.lang.Throwable - in case of error during cast operationpublic void CreateGlobalFunctions()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ISymbolDocumentWriter DefineDocument(java.lang.String url, Guid language) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException
url - the argument of type java.lang.Stringlanguage - the argument of type Guidjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic ISymbolDocumentWriter DefineDocument(java.lang.String url, Guid language, Guid languageVendor, Guid documentType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException
url - the argument of type java.lang.Stringlanguage - the argument of type GuidlanguageVendor - the argument of type GuiddocumentType - the argument of type Guidjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic EnumBuilder DefineEnum(java.lang.String name, TypeAttributes visibility, NetType underlyingType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
name - the argument of type java.lang.Stringvisibility - the argument of type TypeAttributesunderlyingType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic MethodBuilder DefineGlobalMethod(java.lang.String name, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException
name - the argument of type java.lang.Stringattributes - the argument of type MethodAttributescallingConvention - the argument of type CallingConventionsreturnType - the argument of type NetTypeparameterTypes - the argument of type NetType[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itpublic MethodBuilder DefineGlobalMethod(java.lang.String name, MethodAttributes attributes, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException
name - the argument of type java.lang.Stringattributes - the argument of type MethodAttributesreturnType - the argument of type NetTypeparameterTypes - the argument of type NetType[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itpublic FieldBuilder DefineInitializedData(java.lang.String name, byte[] data, FieldAttributes attributes) throws java.lang.Throwable
name - the argument of type java.lang.Stringdata - the argument of type byte[]attributes - the argument of type FieldAttributesjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic FieldBuilder DefineInitializedData(java.lang.String dupParam0, JCORefOut dupParam1, FieldAttributes dupParam2) throws java.lang.Throwable
dupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type FieldAttributesjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic MethodBuilder DefinePInvokeMethod(java.lang.String name, java.lang.String dllName, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet) throws java.lang.Throwable
name - the argument of type java.lang.StringdllName - the argument of type java.lang.Stringattributes - the argument of type MethodAttributescallingConvention - the argument of type CallingConventionsreturnType - the argument of type NetTypeparameterTypes - the argument of type NetType[]nativeCallConv - the argument of type CallingConventionnativeCharSet - the argument of type CharSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic MethodBuilder DefinePInvokeMethod(java.lang.String name, java.lang.String dllName, java.lang.String entryName, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet) throws java.lang.Throwable
name - the argument of type java.lang.StringdllName - the argument of type java.lang.StringentryName - the argument of type java.lang.Stringattributes - the argument of type MethodAttributescallingConvention - the argument of type CallingConventionsreturnType - the argument of type NetTypeparameterTypes - the argument of type NetType[]nativeCallConv - the argument of type CallingConventionnativeCharSet - the argument of type CharSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic TypeBuilder DefineType(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException
name - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr) throws java.lang.Throwable, ArgumentNullException, ArgumentException
name - the argument of type java.lang.Stringattr - the argument of type TypeAttributesjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent) throws java.lang.Throwable, ArgumentNullException, ArgumentException
name - the argument of type java.lang.Stringattr - the argument of type TypeAttributesparent - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, int typesize) throws java.lang.Throwable, ArgumentNullException, ArgumentException
name - the argument of type java.lang.Stringattr - the argument of type TypeAttributesparent - the argument of type NetTypetypesize - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, NetType[] interfaces) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
name - the argument of type java.lang.Stringattr - the argument of type TypeAttributesparent - the argument of type NetTypeinterfaces - the argument of type NetType[]java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packsize) throws java.lang.Throwable, ArgumentNullException, ArgumentException
name - the argument of type java.lang.Stringattr - the argument of type TypeAttributesparent - the argument of type NetTypepacksize - the argument of type PackingSizejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packingSize, int typesize) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
name - the argument of type java.lang.Stringattr - the argument of type TypeAttributesparent - the argument of type NetTypepackingSize - the argument of type PackingSizetypesize - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic FieldBuilder DefineUninitializedData(java.lang.String name, int size, FieldAttributes attributes) throws java.lang.Throwable
name - the argument of type java.lang.Stringsize - the argument of type intattributes - the argument of type FieldAttributesjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic MethodInfo GetArrayMethod(NetType arrayClass, java.lang.String methodName, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
arrayClass - the argument of type NetTypemethodName - the argument of type java.lang.StringcallingConvention - the argument of type CallingConventionsreturnType - the argument of type NetTypeparameterTypes - the argument of type NetType[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic int GetFieldMetadataToken(FieldInfo field) throws java.lang.Throwable
field - the argument of type FieldInfojava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Modulepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Modulepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Modulenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Modulepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Modulepublic int GetMethodMetadataToken(ConstructorInfo constructor) throws java.lang.Throwable
constructor - the argument of type ConstructorInfojava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetMethodMetadataToken(MethodInfo method) throws java.lang.Throwable
method - the argument of type MethodInfojava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetSignatureMetadataToken(SignatureHelper signature) throws java.lang.Throwable
signature - the argument of type SignatureHelperjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetStringMetadataToken(java.lang.String stringConstant)
throws java.lang.Throwable
stringConstant - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetTypeMetadataToken(NetType type) throws java.lang.Throwable
type - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
con - the argument of type ConstructorInfobinaryAttribute - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void SetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
dupParam0 - the argument of type ConstructorInfodupParam1 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void SetCustomAttribute(CustomAttributeBuilder customBuilder) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
customBuilder - the argument of type CustomAttributeBuilderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Moduleinstance - the new underlying object