Class MetadataTokens
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.metadata.ecma335.MetadataTokens
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class MetadataTokens extends NetObject
The base .NET class managing System.Reflection.Metadata.Ecma335.MetadataTokens, System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Metadata.Ecma335.MetadataTokens
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.StringassemblyFullNameFully assembly qualified name: System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Reflection.Metadatastatic java.lang.StringclassNameQualified class name: System.Reflection.Metadata.Ecma335.MetadataTokensstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MetadataTokens()MetadataTokens(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=8.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.Ecma335.MetadataTokens- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static MetadataTokens cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMetadataTokens, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
MetadataTokensinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
TryGetHeapIndex
public static boolean TryGetHeapIndex(HandleKind type, JCORefOut<HeapIndex> index) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryGetTableIndex
public static boolean TryGetTableIndex(HandleKind type, JCORefOut<TableIndex> index) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetHeapOffset
public static int GetHeapOffset(BlobHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetHeapOffset
public static int GetHeapOffset(GuidHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetHeapOffset
public static int GetHeapOffset(Handle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
GetHeapOffset
public static int GetHeapOffset(MetadataReader reader, Handle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
-
GetHeapOffset
public static int GetHeapOffset(StringHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetHeapOffset
public static int GetHeapOffset(UserStringHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetRowNumber
public static int GetRowNumber(EntityHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetRowNumber
public static int GetRowNumber(MetadataReader reader, EntityHandle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
-
GetToken
public static int GetToken(EntityHandle handle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetToken
public static int GetToken(Handle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
GetToken
public static int GetToken(MetadataReader reader, EntityHandle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
-
GetToken
public static int GetToken(MetadataReader reader, Handle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
-
AssemblyFileHandle
public static AssemblyFileHandle AssemblyFileHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
AssemblyReferenceHandle
public static AssemblyReferenceHandle AssemblyReferenceHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BlobHandle
public static BlobHandle BlobHandle(int offset) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ConstantHandle
public static ConstantHandle ConstantHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CustomAttributeHandle
public static CustomAttributeHandle CustomAttributeHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CustomDebugInformationHandle
public static CustomDebugInformationHandle CustomDebugInformationHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DeclarativeSecurityAttributeHandle
public static DeclarativeSecurityAttributeHandle DeclarativeSecurityAttributeHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DocumentHandle
public static DocumentHandle DocumentHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DocumentNameBlobHandle
public static DocumentNameBlobHandle DocumentNameBlobHandle(int offset) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
EntityHandle
public static EntityHandle EntityHandle(int token) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
EntityHandle
public static EntityHandle EntityHandle(TableIndex tableIndex, int rowNumber) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
Handle
public static EntityHandle Handle(TableIndex tableIndex, int rowNumber) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
EventDefinitionHandle
public static EventDefinitionHandle EventDefinitionHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ExportedTypeHandle
public static ExportedTypeHandle ExportedTypeHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FieldDefinitionHandle
public static FieldDefinitionHandle FieldDefinitionHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GenericParameterConstraintHandle
public static GenericParameterConstraintHandle GenericParameterConstraintHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GenericParameterHandle
public static GenericParameterHandle GenericParameterHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GuidHandle
public static GuidHandle GuidHandle(int offset) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Handle
public static Handle Handle(int token) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
ImportScopeHandle
public static ImportScopeHandle ImportScopeHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
InterfaceImplementationHandle
public static InterfaceImplementationHandle InterfaceImplementationHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
LocalConstantHandle
public static LocalConstantHandle LocalConstantHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
LocalScopeHandle
public static LocalScopeHandle LocalScopeHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
LocalVariableHandle
public static LocalVariableHandle LocalVariableHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ManifestResourceHandle
public static ManifestResourceHandle ManifestResourceHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MemberReferenceHandle
public static MemberReferenceHandle MemberReferenceHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MethodDebugInformationHandle
public static MethodDebugInformationHandle MethodDebugInformationHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MethodDefinitionHandle
public static MethodDefinitionHandle MethodDefinitionHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MethodImplementationHandle
public static MethodImplementationHandle MethodImplementationHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MethodSpecificationHandle
public static MethodSpecificationHandle MethodSpecificationHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ModuleReferenceHandle
public static ModuleReferenceHandle ModuleReferenceHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ParameterHandle
public static ParameterHandle ParameterHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PropertyDefinitionHandle
public static PropertyDefinitionHandle PropertyDefinitionHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
StandaloneSignatureHandle
public static StandaloneSignatureHandle StandaloneSignatureHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
StringHandle
public static StringHandle StringHandle(int offset) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TypeDefinitionHandle
public static TypeDefinitionHandle TypeDefinitionHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TypeReferenceHandle
public static TypeReferenceHandle TypeReferenceHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TypeSpecificationHandle
public static TypeSpecificationHandle TypeSpecificationHandle(int rowNumber) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
UserStringHandle
public static UserStringHandle UserStringHandle(int offset) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-