public class ILGenerator extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Emit.ILGenerator
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.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Reflection.Emit.ILGenerator
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ILGenerator() |
ILGenerator(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BeginCatchBlock(NetType exceptionType) |
void |
BeginExceptFilterBlock() |
Label |
BeginExceptionBlock() |
void |
BeginFaultBlock() |
void |
BeginFinallyBlock() |
void |
BeginScope() |
static ILGenerator |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ILGenerator, a cast assert is made to check if types are compatible. |
LocalBuilder |
DeclareLocal(NetType localType) |
LocalBuilder |
DeclareLocal(NetType localType,
boolean pinned) |
Label |
DefineLabel() |
void |
Emit(OpCode opcode) |
void |
Emit(OpCode opcode,
byte arg) |
void |
Emit(OpCode opcode,
ConstructorInfo con) |
void |
Emit(OpCode opcode,
double arg) |
void |
Emit(OpCode opcode,
FieldInfo field) |
void |
Emit(OpCode opcode,
int arg) |
void |
Emit(OpCode opcode,
Label label) |
void |
Emit(OpCode opcode,
Label[] labels) |
void |
Emit(OpCode opcode,
LocalBuilder local) |
void |
Emit(OpCode opcode,
long arg) |
void |
Emit(OpCode opcode,
MethodInfo meth) |
void |
Emit(OpCode opcode,
NetType cls) |
void |
Emit(OpCode opcode,
SByte arg) |
void |
Emit(OpCode opcode,
short arg) |
void |
Emit(OpCode opcode,
SignatureHelper signature) |
void |
Emit(OpCode opcode,
Single arg) |
void |
Emit(OpCode opcode,
java.lang.String str) |
void |
EmitCall(OpCode opcode,
MethodInfo methodInfo,
NetType[] optionalParameterTypes) |
void |
EmitCalli(OpCode opcode,
CallingConvention unmanagedCallConv,
NetType returnType,
NetType[] parameterTypes) |
void |
EmitCalli(OpCode opcode,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
NetType[] optionalParameterTypes) |
void |
EmitWriteLine(FieldInfo fld) |
void |
EmitWriteLine(LocalBuilder localBuilder) |
void |
EmitWriteLine(java.lang.String value) |
void |
EndExceptionBlock() |
void |
EndScope() |
int |
getILOffset() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
void |
MarkLabel(Label loc) |
void |
MarkSequencePoint(ISymbolDocumentWriter document,
int startLine,
int startColumn,
int endLine,
int endColumn) |
void |
setJCOInstance(JCObject instance) |
void |
ThrowException(NetType excType) |
void |
UsingNamespace(java.lang.String usingNamespace) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ILGenerator()
throws java.lang.Throwable
java.lang.Throwablepublic ILGenerator(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void BeginCatchBlock(NetType exceptionType) throws java.lang.Throwable
java.lang.Throwablepublic void BeginExceptFilterBlock()
throws java.lang.Throwable
java.lang.Throwablepublic Label BeginExceptionBlock() throws java.lang.Throwable
java.lang.Throwablepublic void BeginFaultBlock()
throws java.lang.Throwable
java.lang.Throwablepublic void BeginFinallyBlock()
throws java.lang.Throwable
java.lang.Throwablepublic void BeginScope()
throws java.lang.Throwable
java.lang.Throwablepublic static ILGenerator cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ILGenerator, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedILGenerator instancejava.lang.Throwable - in case of error during cast operationpublic LocalBuilder DeclareLocal(NetType localType) throws java.lang.Throwable
java.lang.Throwablepublic LocalBuilder DeclareLocal(NetType localType, boolean pinned) throws java.lang.Throwable
java.lang.Throwablepublic Label DefineLabel() throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, byte arg) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, ConstructorInfo con) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, double arg) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, FieldInfo field) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, int arg) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, Label label) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, Label[] labels) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, LocalBuilder local) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, long arg) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, MethodInfo meth) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, NetType cls) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, SByte arg) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, short arg) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, SignatureHelper signature) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, Single arg) throws java.lang.Throwable
java.lang.Throwablepublic void Emit(OpCode opcode, java.lang.String str) throws java.lang.Throwable
java.lang.Throwablepublic void EmitCall(OpCode opcode, MethodInfo methodInfo, NetType[] optionalParameterTypes) throws java.lang.Throwable
java.lang.Throwablepublic void EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable
java.lang.Throwablepublic void EmitCalli(OpCode opcode, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, NetType[] optionalParameterTypes) throws java.lang.Throwable
java.lang.Throwablepublic void EmitWriteLine(FieldInfo fld) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, TypeLoadException, IndexOutOfRangeException, FormatException, UnreachableException, FileLoadException, FileNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionTypeLoadExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionFileLoadExceptionFileNotFoundExceptionpublic void EmitWriteLine(LocalBuilder localBuilder) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, TypeLoadException, IndexOutOfRangeException, InvalidOperationException, FormatException, ArgumentNullException, UnreachableException, ArgumentOutOfRangeException, FileLoadException, FileNotFoundException
public void EmitWriteLine(java.lang.String value)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
TypeLoadException,
IndexOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
UnreachableException,
ArgumentOutOfRangeException,
FileLoadException,
FileNotFoundException
public void EndExceptionBlock()
throws java.lang.Throwable
java.lang.Throwablepublic void EndScope()
throws java.lang.Throwable
java.lang.Throwablepublic int getILOffset()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic void MarkLabel(Label loc) throws java.lang.Throwable
java.lang.Throwablepublic void MarkSequencePoint(ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void ThrowException(NetType excType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void UsingNamespace(java.lang.String usingNamespace)
throws java.lang.Throwable
java.lang.Throwable