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.String
assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=8.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.Ecma335.MetadataTokensstatic JCType
classType
The 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: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 MetadataTokens cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMetadataTokens
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MetadataTokens
instance- 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
-
-