Class SignatureTypeEncoder
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.reflection.metadata.ecma335.SignatureTypeEncoder
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class SignatureTypeEncoder extends ValueType
The base .NET class managing System.Reflection.Metadata.Ecma335.SignatureTypeEncoder, System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Metadata.Ecma335.SignatureTypeEncoder
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Reflection.Metadatastatic String
className
Qualified class name: System.Reflection.Metadata.Ecma335.SignatureTypeEncoderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SignatureTypeEncoder()
SignatureTypeEncoder(Object instance)
Internal constructor.SignatureTypeEncoder(BlobBuilder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Array(JCORefOut<SignatureTypeEncoder> elementType, JCORefOut<ArrayShapeEncoder> arrayShape)
void
Boolean()
void
Byte()
static SignatureTypeEncoder
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSignatureTypeEncoder
, a cast assert is made to check if types are compatible.void
Char()
CustomModifiersEncoder
CustomModifiers()
void
Double()
MethodSignatureEncoder
FunctionPointer(SignatureCallingConvention convention, FunctionPointerAttributes attributes, int genericParameterCount)
GenericTypeArgumentsEncoder
GenericInstantiation(EntityHandle genericType, int genericArgumentCount, boolean isValueType)
void
GenericMethodTypeParameter(int parameterIndex)
void
GenericTypeParameter(int parameterIndex)
BlobBuilder
getBuilder()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typevoid
Int16()
void
Int32()
void
Int64()
void
IntPtr()
void
Object()
SignatureTypeEncoder
Pointer()
void
PrimitiveType(PrimitiveTypeCode type)
void
SByte()
void
setJCOInstance(JCObject instance)
void
Single()
void
String()
SignatureTypeEncoder
SZArray()
void
Type(EntityHandle type, boolean isValueType)
void
UInt16()
void
UInt32()
void
UInt64()
void
UIntPtr()
void
VoidPointer()
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Reflection.Metadata- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Reflection.Metadata.Ecma335.SignatureTypeEncoder- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public 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 classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SignatureTypeEncoder cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoSignatureTypeEncoder
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SignatureTypeEncoder
instance- Throws:
Throwable
- in case of error during cast operation
-
CustomModifiers
public CustomModifiersEncoder CustomModifiers() throws Throwable
- Throws:
Throwable
-
GenericInstantiation
public GenericTypeArgumentsEncoder GenericInstantiation(EntityHandle genericType, int genericArgumentCount, boolean isValueType) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
FunctionPointer
public MethodSignatureEncoder FunctionPointer(SignatureCallingConvention convention, FunctionPointerAttributes attributes, int genericParameterCount) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
Pointer
public SignatureTypeEncoder Pointer() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
SZArray
public SignatureTypeEncoder SZArray() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
Array
public void Array(JCORefOut<SignatureTypeEncoder> elementType, JCORefOut<ArrayShapeEncoder> arrayShape) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
Boolean
public void Boolean() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Byte
public void Byte() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Char
public void Char() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Double
public void Double() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
GenericMethodTypeParameter
public void GenericMethodTypeParameter(int parameterIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
GenericTypeParameter
public void GenericTypeParameter(int parameterIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Int16
public void Int16() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Int32
public void Int32() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Int64
public void Int64() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
IntPtr
public void IntPtr() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Object
public void Object() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
PrimitiveType
public void PrimitiveType(PrimitiveTypeCode type) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
SByte
public void SByte() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Single
public void Single() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
String
public void String() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
Type
public void Type(EntityHandle type, boolean isValueType) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
-
UInt16
public void UInt16() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
UInt32
public void UInt32() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
UInt64
public void UInt64() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
UIntPtr
public void UIntPtr() throws Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException
-
VoidPointer
public void VoidPointer() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
getBuilder
public BlobBuilder getBuilder() throws Throwable
- Throws:
Throwable
-
-