public class InstructionEncoder extends ValueType
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Reflection.Metadata.Ecma335.InstructionEncoder
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Reflection.Metadata
|
static java.lang.String |
className
Qualified class name: System.Reflection.Metadata.Ecma335.InstructionEncoder
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
InstructionEncoder() |
InstructionEncoder(BlobBuilder codeBuilder,
ControlFlowBuilder controlFlowBuilder)
Initializes a new instance by invoking the .NET constructor.
|
InstructionEncoder(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Branch(ILOpCode code,
LabelHandle label)
Invokes the .NET member Branch.
|
void |
Call(EntityHandle methodHandle)
Invokes the .NET member Call.
|
void |
Call(MemberReferenceHandle methodHandle)
Invokes the .NET member Call.
|
void |
Call(MethodDefinitionHandle methodHandle)
Invokes the .NET member Call.
|
void |
Call(MethodSpecificationHandle methodHandle)
Invokes the .NET member Call.
|
void |
CallIndirect(StandaloneSignatureHandle signature)
Invokes the .NET member CallIndirect.
|
static InstructionEncoder |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into InstructionEncoder, a cast assert is made to check if types are compatible. |
LabelHandle |
DefineLabel()
Invokes the .NET member DefineLabel.
|
BlobBuilder |
getCodeBuilder()
Gets the value of the .NET property CodeBuilder.
|
ControlFlowBuilder |
getControlFlowBuilder()
Gets the value of the .NET property ControlFlowBuilder.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
getOffset()
Gets the value of the .NET property Offset.
|
void |
LoadArgument(int argumentIndex)
Invokes the .NET member LoadArgument.
|
void |
LoadArgumentAddress(int argumentIndex)
Invokes the .NET member LoadArgumentAddress.
|
void |
LoadConstantI4(int value)
Invokes the .NET member LoadConstantI4.
|
void |
LoadConstantI8(long value)
Invokes the .NET member LoadConstantI8.
|
void |
LoadConstantR4(Single value)
Invokes the .NET member LoadConstantR4.
|
void |
LoadConstantR8(double value)
Invokes the .NET member LoadConstantR8.
|
void |
LoadLocal(int slotIndex)
Invokes the .NET member LoadLocal.
|
void |
LoadLocalAddress(int slotIndex)
Invokes the .NET member LoadLocalAddress.
|
void |
LoadString(UserStringHandle handle)
Invokes the .NET member LoadString.
|
void |
MarkLabel(LabelHandle label)
Invokes the .NET member MarkLabel.
|
void |
OpCode(ILOpCode code)
Invokes the .NET member OpCode.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
StoreArgument(int argumentIndex)
Invokes the .NET member StoreArgument.
|
void |
StoreLocal(int slotIndex)
Invokes the .NET member StoreLocal.
|
SwitchInstructionEncoder |
Switch(int branchCount)
Invokes the .NET member Switch.
|
void |
Token(EntityHandle handle)
Invokes the .NET member Token.
|
void |
Token(int token)
Invokes the .NET member Token.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public InstructionEncoder()
throws java.lang.Throwable
java.lang.Throwablepublic InstructionEncoder(BlobBuilder codeBuilder, ControlFlowBuilder controlFlowBuilder) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
codeBuilder - the argument of type BlobBuildercontrolFlowBuilder - the argument of type ControlFlowBuilderjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic InstructionEncoder(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void Branch(ILOpCode code, LabelHandle label) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
code - the argument of type ILOpCodelabel - the argument of type LabelHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Call(EntityHandle methodHandle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
methodHandle - the argument of type EntityHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Call(MemberReferenceHandle methodHandle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
methodHandle - the argument of type MemberReferenceHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void Call(MethodDefinitionHandle methodHandle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
methodHandle - the argument of type MethodDefinitionHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void Call(MethodSpecificationHandle methodHandle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
methodHandle - the argument of type MethodSpecificationHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void CallIndirect(StandaloneSignatureHandle signature) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
signature - the argument of type StandaloneSignatureHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic static InstructionEncoder cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into InstructionEncoder, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedInstructionEncoder instancejava.lang.Throwable - in case of error during cast operationpublic LabelHandle DefineLabel() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic BlobBuilder getCodeBuilder() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ControlFlowBuilder getControlFlowBuilder() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypepublic int getOffset()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void LoadArgument(int argumentIndex)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
argumentIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void LoadArgumentAddress(int argumentIndex)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
argumentIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void LoadConstantI4(int value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
value - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void LoadConstantI8(long value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
value - the argument of type longjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void LoadConstantR4(Single value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException
value - the argument of type Singlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void LoadConstantR8(double value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
NotSupportedException
value - the argument of type doublejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void LoadLocal(int slotIndex)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
slotIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void LoadLocalAddress(int slotIndex)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
slotIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void LoadString(UserStringHandle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
handle - the argument of type UserStringHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void MarkLabel(LabelHandle label) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
label - the argument of type LabelHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void OpCode(ILOpCode code) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
code - the argument of type ILOpCodejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ValueTypeinstance - the new underlying objectpublic void StoreArgument(int argumentIndex)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
argumentIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void StoreLocal(int slotIndex)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
slotIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic SwitchInstructionEncoder Switch(int branchCount) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
branchCount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void Token(EntityHandle handle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
handle - the argument of type EntityHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void Token(int token)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
token - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises it