public class ModuleBuilder extends Module
.NET documentation at https://docs.microsoft.com/en-us/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=10.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() |
ISymbolDocumentWriter |
DefineDocument(java.lang.String url,
Guid language) |
ISymbolDocumentWriter |
DefineDocument(java.lang.String url,
Guid language,
Guid languageVendor,
Guid documentType) |
EnumBuilder |
DefineEnum(java.lang.String name,
TypeAttributes visibility,
NetType underlyingType) |
MethodBuilder |
DefineGlobalMethod(java.lang.String name,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes) |
MethodBuilder |
DefineGlobalMethod(java.lang.String name,
MethodAttributes attributes,
NetType returnType,
NetType[] parameterTypes) |
FieldBuilder |
DefineInitializedData(java.lang.String name,
byte[] data,
FieldAttributes attributes) |
FieldBuilder |
DefineInitializedData(java.lang.String dupParam0,
JCORefOut dupParam1,
FieldAttributes dupParam2) |
MethodBuilder |
DefinePInvokeMethod(java.lang.String name,
java.lang.String dllName,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
CallingConvention nativeCallConv,
CharSet nativeCharSet) |
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) |
TypeBuilder |
DefineType(java.lang.String name) |
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr) |
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent) |
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
int typesize) |
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
NetType[] interfaces) |
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
PackingSize packsize) |
TypeBuilder |
DefineType(java.lang.String name,
TypeAttributes attr,
NetType parent,
PackingSize packingSize,
int typesize) |
FieldBuilder |
DefineUninitializedData(java.lang.String name,
int size,
FieldAttributes attributes) |
MethodInfo |
GetArrayMethod(NetType arrayClass,
java.lang.String methodName,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes) |
int |
GetFieldMetadataToken(FieldInfo field) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
int |
GetMethodMetadataToken(ConstructorInfo constructor) |
int |
GetMethodMetadataToken(MethodInfo method) |
int |
GetSignatureMetadataToken(SignatureHelper signature) |
int |
GetStringMetadataToken(java.lang.String stringConstant) |
int |
GetTypeMetadataToken(NetType type) |
void |
SetCustomAttribute(ConstructorInfo con,
byte[] binaryAttribute) |
void |
SetCustomAttribute(ConstructorInfo dupParam0,
JCORefOut dupParam1) |
void |
SetCustomAttribute(CustomAttributeBuilder customBuilder) |
void |
setJCOInstance(JCObject instance) |
FindTypes, getAssembly, GetCustomAttributes, GetCustomAttributes, 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
java.lang.Throwablepublic 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.Throwablepublic ISymbolDocumentWriter DefineDocument(java.lang.String url, Guid language) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionpublic ISymbolDocumentWriter DefineDocument(java.lang.String url, Guid language, Guid languageVendor, Guid documentType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionpublic EnumBuilder DefineEnum(java.lang.String name, TypeAttributes visibility, NetType underlyingType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionpublic MethodBuilder DefineGlobalMethod(java.lang.String name, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic MethodBuilder DefineGlobalMethod(java.lang.String name, MethodAttributes attributes, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic FieldBuilder DefineInitializedData(java.lang.String name, byte[] data, FieldAttributes attributes) throws java.lang.Throwable
java.lang.Throwablepublic FieldBuilder DefineInitializedData(java.lang.String dupParam0, JCORefOut dupParam1, FieldAttributes dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic 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
java.lang.Throwablepublic 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
java.lang.Throwablepublic TypeBuilder DefineType(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, int typesize) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, NetType[] interfaces) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packsize) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packingSize, int typesize) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionpublic FieldBuilder DefineUninitializedData(java.lang.String name, int size, FieldAttributes attributes) throws java.lang.Throwable
java.lang.Throwablepublic 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
public int GetFieldMetadataToken(FieldInfo field) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ModuleString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ModuleString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ModuleObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ModuleString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ModuleJCType representing the CLR Type of the instantiated Classpublic int GetMethodMetadataToken(ConstructorInfo constructor) throws java.lang.Throwable
java.lang.Throwablepublic int GetMethodMetadataToken(MethodInfo method) throws java.lang.Throwable
java.lang.Throwablepublic int GetSignatureMetadataToken(SignatureHelper signature) throws java.lang.Throwable
java.lang.Throwablepublic int GetStringMetadataToken(java.lang.String stringConstant)
throws java.lang.Throwable
java.lang.Throwablepublic int GetTypeMetadataToken(NetType type) throws java.lang.Throwable
java.lang.Throwablepublic void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void SetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void SetCustomAttribute(CustomAttributeBuilder customBuilder) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void setJCOInstance(JCObject instance)
setJCOInstance in class Module