Package system.reflection.emit
Class ModuleBuilder
- java.lang.Object
- 
- org.mases.jcobridge.netreflection.NetObject
- 
- system.reflection.Module
- 
- system.reflection.emit.ModuleBuilder
 
 
 
- 
- All Implemented Interfaces:
- IJCOBridgeReflected
 
 public class ModuleBuilder extends Module The base .NET class managing System.Reflection.Emit.ModuleBuilder, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..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 - Author:
- MASES s.r.l https://masesgroup.com
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.Reflection.Emit.ModuleBuilderstatic JCTypeclassTypeThe type managed from JCOBridge.
 - 
Constructor SummaryConstructors Constructor Description ModuleBuilder()ModuleBuilder(java.lang.Object instance)Internal constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleBuildercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoModuleBuilder, a cast assert is made to check if types are compatible.voidCreateGlobalFunctions()ISymbolDocumentWriterDefineDocument(java.lang.String url, Guid language)ISymbolDocumentWriterDefineDocument(java.lang.String url, Guid language, Guid languageVendor, Guid documentType)EnumBuilderDefineEnum(java.lang.String name, TypeAttributes visibility, NetType underlyingType)MethodBuilderDefineGlobalMethod(java.lang.String name, MethodAttributes attributes, NetType returnType, NetType[] parameterTypes)MethodBuilderDefineGlobalMethod(java.lang.String name, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes)FieldBuilderDefineInitializedData(java.lang.String name, byte[] data, FieldAttributes attributes)FieldBuilderDefineInitializedData(java.lang.String dupParam0, JCORefOut dupParam1, FieldAttributes dupParam2)MethodBuilderDefinePInvokeMethod(java.lang.String name, java.lang.String dllName, java.lang.String entryName, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)MethodBuilderDefinePInvokeMethod(java.lang.String name, java.lang.String dllName, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)TypeBuilderDefineType(java.lang.String name)TypeBuilderDefineType(java.lang.String name, TypeAttributes attr)TypeBuilderDefineType(java.lang.String name, TypeAttributes attr, NetType parent)TypeBuilderDefineType(java.lang.String name, TypeAttributes attr, NetType parent, int typesize)TypeBuilderDefineType(java.lang.String name, TypeAttributes attr, NetType parent, NetType[] interfaces)TypeBuilderDefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packsize)TypeBuilderDefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packingSize, int typesize)FieldBuilderDefineUninitializedData(java.lang.String name, int size, FieldAttributes attributes)MethodInfoGetArrayMethod(NetType arrayClass, java.lang.String methodName, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes)intGetFieldMetadataToken(FieldInfo field)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeintGetMethodMetadataToken(ConstructorInfo constructor)intGetMethodMetadataToken(MethodInfo method)intGetSignatureMetadataToken(SignatureHelper signature)intGetStringMetadataToken(java.lang.String stringConstant)intGetTypeMetadataToken(NetType type)voidSetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)voidSetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1)voidSetCustomAttribute(CustomAttributeBuilder customBuilder)voidsetJCOInstance(JCObject instance)- 
Methods inherited from class system.reflection.ModuleFindTypes, 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, ResolveType
 
- 
 
- 
- 
- 
Field Detail- 
assemblyFullNamepublic static final java.lang.String assemblyFullName Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
 
 - 
assemblyShortNamepublic static final java.lang.String assemblyShortName Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
 
 - 
classNamepublic static final java.lang.String className Qualified class name: System.Reflection.Emit.ModuleBuilder- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getJCOAssemblyNamepublic java.lang.String getJCOAssemblyName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
- getJCOAssemblyNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOAssemblyNamein class- Module
- Returns:
- A Stringrepresenting the Fullname of reflected Assembly
 
 - 
getJCOClassNamepublic java.lang.String getJCOClassName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
- getJCOClassNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOClassNamein class- Module
- Returns:
- A Stringrepresenting the Fullname of reflected Class
 
 - 
getJCOObjectNamepublic java.lang.String getJCOObjectName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
- getJCOObjectNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOObjectNamein class- Module
- Returns:
- A Stringrepresenting the name used to allocated the object in CLR context
 
 - 
getJCOInstancepublic java.lang.Object getJCOInstance() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
- getJCOInstancein interface- IJCOBridgeReflected
- Overrides:
- getJCOInstancein class- Module
- Returns:
- An Objectrepresenting the CLR instance of the instantiated Class
 
 - 
setJCOInstancepublic void setJCOInstance(JCObject instance) - Overrides:
- setJCOInstancein class- Module
 
 - 
getJCOTypepublic JCType getJCOType() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
- getJCOTypein interface- IJCOBridgeReflected
- Overrides:
- getJCOTypein class- Module
- Returns:
- A JCTyperepresenting the CLR Type of the instantiated Class
 
 - 
castpublic static ModuleBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable Try to cast theIJCOBridgeReflectedinstance intoModuleBuilder, a cast assert is made to check if types are compatible.- Parameters:
- from-- IJCOBridgeReflectedinstance to be casted
- Returns:
- ModuleBuilderinstance
- Throws:
- java.lang.Throwable- in case of error during cast operation
 
 - 
GetFieldMetadataTokenpublic int GetFieldMetadataToken(FieldInfo field) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
GetMethodMetadataTokenpublic int GetMethodMetadataToken(ConstructorInfo constructor) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
GetMethodMetadataTokenpublic int GetMethodMetadataToken(MethodInfo method) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
GetSignatureMetadataTokenpublic int GetSignatureMetadataToken(SignatureHelper signature) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
GetStringMetadataTokenpublic int GetStringMetadataToken(java.lang.String stringConstant) throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
GetTypeMetadataTokenpublic int GetTypeMetadataToken(NetType type) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
DefineDocumentpublic ISymbolDocumentWriter DefineDocument(java.lang.String url, Guid language, Guid languageVendor, Guid documentType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
- InvalidOperationException
 
 - 
DefineDocumentpublic ISymbolDocumentWriter DefineDocument(java.lang.String url, Guid language) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException - Throws:
- java.lang.Throwable
- NotSupportedException
- ArgumentException
- ArgumentNullException
- InvalidOperationException
 
 - 
DefineEnumpublic EnumBuilder DefineEnum(java.lang.String name, TypeAttributes visibility, NetType underlyingType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException - Throws:
- java.lang.Throwable
- NotSupportedException
- ArgumentException
- ArgumentNullException
 
 - 
DefineInitializedDatapublic FieldBuilder DefineInitializedData(java.lang.String name, byte[] data, FieldAttributes attributes) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
DefineInitializedDatapublic FieldBuilder DefineInitializedData(java.lang.String dupParam0, JCORefOut dupParam1, FieldAttributes dupParam2) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
DefineUninitializedDatapublic FieldBuilder DefineUninitializedData(java.lang.String name, int size, FieldAttributes attributes) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
DefineGlobalMethodpublic MethodBuilder DefineGlobalMethod(java.lang.String name, MethodAttributes attributes, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
 
 - 
DefineGlobalMethodpublic MethodBuilder DefineGlobalMethod(java.lang.String name, MethodAttributes attributes, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
 
 - 
DefinePInvokeMethodpublic 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 - Throws:
- java.lang.Throwable
 
 - 
DefinePInvokeMethodpublic 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 - Throws:
- java.lang.Throwable
 
 - 
DefineTypepublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, int typesize) throws java.lang.Throwable, ArgumentNullException, ArgumentException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
 
 - 
DefineTypepublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packingSize, int typesize) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException - Throws:
- java.lang.Throwable
- NotSupportedException
- ArgumentException
- ArgumentNullException
 
 - 
DefineTypepublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, PackingSize packsize) throws java.lang.Throwable, ArgumentNullException, ArgumentException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
 
 - 
DefineTypepublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent, NetType[] interfaces) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException - Throws:
- java.lang.Throwable
- NotSupportedException
- ArgumentException
- ArgumentNullException
 
 - 
DefineTypepublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr, NetType parent) throws java.lang.Throwable, ArgumentNullException, ArgumentException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
 
 - 
DefineTypepublic TypeBuilder DefineType(java.lang.String name, TypeAttributes attr) throws java.lang.Throwable, ArgumentNullException, ArgumentException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
 
 - 
DefineTypepublic TypeBuilder DefineType(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
 
 - 
GetArrayMethodpublic 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 
 - 
CreateGlobalFunctionspublic void CreateGlobalFunctions() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
SetCustomAttributepublic void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException 
 - 
SetCustomAttributepublic void SetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException 
 - 
SetCustomAttributepublic void SetCustomAttribute(CustomAttributeBuilder customBuilder) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException 
 
- 
 
-