Package system.reflection.metadata
Class MetadataReader
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.metadata.MetadataReader
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class MetadataReader extends NetObject
The base .NET class managing System.Reflection.Metadata.MetadataReader, System.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Metadata.MetadataReader
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Reflection.Metadatastatic java.lang.String
className
Qualified class name: System.Reflection.Metadata.MetadataReaderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MetadataReader()
MetadataReader(java.lang.Object instance)
Internal constructor.
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Reflection.Metadata- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.Metadata.MetadataReader- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static MetadataReader cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMetadataReader
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MetadataReader
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetBlobBytes
public byte[] GetBlobBytes(BlobHandle handle) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, InvalidOperationException, BadImageFormatException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentException
InvalidOperationException
BadImageFormatException
ArgumentOutOfRangeException
-
GetGuid
public Guid GetGuid(GuidHandle handle) throws java.lang.Throwable, ArgumentException, InvalidOperationException, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
BadImageFormatException
PlatformNotSupportedException
-
GetAssemblyName
public static AssemblyName GetAssemblyName(java.lang.String assemblyFile) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException, SerializationException, IOException, BadImageFormatException, MissingMethodException, TargetInvocationException, FormatException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
OutOfMemoryException
SerializationException
IOException
BadImageFormatException
MissingMethodException
TargetInvocationException
FormatException
CultureNotFoundException
-
GetAssemblyDefinition
public AssemblyDefinition GetAssemblyDefinition() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
GetAssemblyFile
public AssemblyFile GetAssemblyFile(AssemblyFileHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetAssemblyReference
public AssemblyReference GetAssemblyReference(AssemblyReferenceHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetBlobReader
public BlobReader GetBlobReader(BlobHandle handle) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, BadImageFormatException
-
GetBlobReader
public BlobReader GetBlobReader(StringHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, NullReferenceException, ObjectDisposedException, ArgumentNullException, ArrayTypeMismatchException
-
GetConstant
public Constant GetConstant(ConstantHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCustomAttribute
public CustomAttribute GetCustomAttribute(CustomAttributeHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCustomAttributes
public CustomAttributeHandleCollection GetCustomAttributes(EntityHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
-
GetCustomDebugInformation
public CustomDebugInformation GetCustomDebugInformation(CustomDebugInformationHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCustomDebugInformation
public CustomDebugInformationHandleCollection GetCustomDebugInformation(EntityHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
-
GetDeclarativeSecurityAttribute
public DeclarativeSecurityAttribute GetDeclarativeSecurityAttribute(DeclarativeSecurityAttributeHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDocument
public Document GetDocument(DocumentHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetEventDefinition
public EventDefinition GetEventDefinition(EventDefinitionHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetExportedType
public ExportedType GetExportedType(ExportedTypeHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetFieldDefinition
public FieldDefinition GetFieldDefinition(FieldDefinitionHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidCastException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
IndexOutOfRangeException
InvalidCastException
-
GetGenericParameter
public GenericParameter GetGenericParameter(GenericParameterHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetGenericParameterConstraint
public GenericParameterConstraint GetGenericParameterConstraint(GenericParameterConstraintHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetImportScope
public ImportScope GetImportScope(ImportScopeHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetInterfaceImplementation
public InterfaceImplementation GetInterfaceImplementation(InterfaceImplementationHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetLocalConstant
public LocalConstant GetLocalConstant(LocalConstantHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetLocalScope
public LocalScope GetLocalScope(LocalScopeHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetLocalScopes
public LocalScopeHandleCollection GetLocalScopes(MethodDebugInformationHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
-
GetLocalScopes
public LocalScopeHandleCollection GetLocalScopes(MethodDefinitionHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
-
GetLocalVariable
public LocalVariable GetLocalVariable(LocalVariableHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetManifestResource
public ManifestResource GetManifestResource(ManifestResourceHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMemberReference
public MemberReference GetMemberReference(MemberReferenceHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException, InvalidCastException, NullReferenceException, NotSupportedException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException
-
GetMethodDebugInformation
public MethodDebugInformation GetMethodDebugInformation(MethodDebugInformationHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMethodDebugInformation
public MethodDebugInformation GetMethodDebugInformation(MethodDefinitionHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMethodDefinition
public MethodDefinition GetMethodDefinition(MethodDefinitionHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidCastException, NullReferenceException, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
GetMethodImplementation
public MethodImplementation GetMethodImplementation(MethodImplementationHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMethodSpecification
public MethodSpecification GetMethodSpecification(MethodSpecificationHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetModuleDefinition
public ModuleDefinition GetModuleDefinition() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
GetModuleReference
public ModuleReference GetModuleReference(ModuleReferenceHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetNamespaceDefinition
public NamespaceDefinition GetNamespaceDefinition(NamespaceDefinitionHandle handle) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, RankException, ArrayTypeMismatchException, InvalidCastException, BadImageFormatException, KeyNotFoundException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentNullException
InvalidOperationException
RankException
ArrayTypeMismatchException
InvalidCastException
BadImageFormatException
KeyNotFoundException
-
GetNamespaceDefinitionRoot
public NamespaceDefinition GetNamespaceDefinitionRoot() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, RankException, ArrayTypeMismatchException, InvalidCastException, BadImageFormatException, KeyNotFoundException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentNullException
InvalidOperationException
RankException
ArrayTypeMismatchException
InvalidCastException
BadImageFormatException
KeyNotFoundException
-
GetParameter
public Parameter GetParameter(ParameterHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPropertyDefinition
public PropertyDefinition GetPropertyDefinition(PropertyDefinitionHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetStandaloneSignature
public StandaloneSignature GetStandaloneSignature(StandaloneSignatureHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetTypeDefinition
public TypeDefinition GetTypeDefinition(TypeDefinitionHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidCastException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
IndexOutOfRangeException
InvalidCastException
-
GetTypeReference
public TypeReference GetTypeReference(TypeReferenceHandle handle) throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
IndexOutOfRangeException
-
GetTypeSpecification
public TypeSpecification GetTypeSpecification(TypeSpecificationHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetString
public java.lang.String GetString(DocumentNameBlobHandle handle) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, BadImageFormatException, OutOfMemoryException, ArrayTypeMismatchException
-
GetString
public java.lang.String GetString(NamespaceDefinitionHandle handle) throws java.lang.Throwable, ArgumentException, BadImageFormatException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, ArgumentNullException, RankException, ArrayTypeMismatchException, KeyNotFoundException
-
GetString
public java.lang.String GetString(StringHandle handle) throws java.lang.Throwable, ArgumentException, BadImageFormatException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, ArgumentNullException, RankException, ArrayTypeMismatchException
-
GetUserString
public java.lang.String GetUserString(UserStringHandle handle) throws java.lang.Throwable, ArgumentException, BadImageFormatException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
BadImageFormatException
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
getIsAssembly
public boolean getIsAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMetadataLength
public int getMetadataLength() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAssemblyFiles
public AssemblyFileHandleCollection getAssemblyFiles() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAssemblyReferences
public AssemblyReferenceHandleCollection getAssemblyReferences() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCustomAttributes
public CustomAttributeHandleCollection getCustomAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCustomDebugInformation
public CustomDebugInformationHandleCollection getCustomDebugInformation() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDebugMetadataHeader
public DebugMetadataHeader getDebugMetadataHeader() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDeclarativeSecurityAttributes
public DeclarativeSecurityAttributeHandleCollection getDeclarativeSecurityAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDocuments
public DocumentHandleCollection getDocuments() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEventDefinitions
public EventDefinitionHandleCollection getEventDefinitions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getExportedTypes
public ExportedTypeHandleCollection getExportedTypes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFieldDefinitions
public FieldDefinitionHandleCollection getFieldDefinitions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getImportScopes
public ImportScopeCollection getImportScopes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLocalConstants
public LocalConstantHandleCollection getLocalConstants() throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
-
getLocalScopes
public LocalScopeHandleCollection getLocalScopes() throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
-
getLocalVariables
public LocalVariableHandleCollection getLocalVariables() throws java.lang.Throwable, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
BadImageFormatException
PlatformNotSupportedException
-
getManifestResources
public ManifestResourceHandleCollection getManifestResources() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMemberReferences
public MemberReferenceHandleCollection getMemberReferences() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMetadataKind
public MetadataKind getMetadataKind() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getOptions
public MetadataReaderOptions getOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getStringComparer
public MetadataStringComparer getStringComparer() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUTF8Decoder
public MetadataStringDecoder getUTF8Decoder() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMethodDebugInformation
public MethodDebugInformationHandleCollection getMethodDebugInformation() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMethodDefinitions
public MethodDefinitionHandleCollection getMethodDefinitions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPropertyDefinitions
public PropertyDefinitionHandleCollection getPropertyDefinitions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTypeDefinitions
public TypeDefinitionHandleCollection getTypeDefinitions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTypeReferences
public TypeReferenceHandleCollection getTypeReferences() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMetadataVersion
public java.lang.String getMetadataVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-