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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
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, NotSupportedException, ArgumentException, ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionpublic void BeginExceptFilterBlock()
throws java.lang.Throwable,
NotSupportedException,
ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionpublic Label BeginExceptionBlock() throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void BeginFaultBlock()
throws java.lang.Throwable,
NotSupportedException,
ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionpublic void BeginFinallyBlock()
throws java.lang.Throwable,
NotSupportedException,
ArgumentNullException,
ArgumentException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentExceptionpublic void BeginScope()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionpublic 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, NotSupportedException, InvalidOperationException, ArgumentNullException, ArgumentException, NotImplementedException
java.lang.ThrowableNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionpublic LocalBuilder DeclareLocal(NetType localType, boolean pinned) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentNullException, ArgumentException
java.lang.ThrowableNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionpublic Label DefineLabel() throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, byte arg) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, ConstructorInfo con) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, NotSupportedException, InvalidOperationException, ArgumentException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionpublic void Emit(OpCode opcode, double arg) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, FieldInfo field) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, FormatException
public void Emit(OpCode opcode, int arg) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, Label label) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, Label[] labels) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, LocalBuilder local) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionpublic void Emit(OpCode opcode, long arg) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, MethodInfo meth) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionpublic void Emit(OpCode opcode, NetType cls) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException
public void Emit(OpCode opcode, SByte arg) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, short arg) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, SignatureHelper signature) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, ArgumentException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionArgumentExceptionpublic void Emit(OpCode opcode, Single arg) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Emit(OpCode opcode, java.lang.String str) throws java.lang.Throwable, NotImplementedException, ArgumentNullException
java.lang.ThrowableNotImplementedExceptionArgumentNullExceptionpublic void EmitCall(OpCode opcode, MethodInfo methodInfo, NetType[] optionalParameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionpublic void EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, NotSupportedException, InvalidOperationException
java.lang.ThrowableNotImplementedExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionInvalidOperationExceptionpublic void EmitCalli(OpCode opcode, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, NetType[] optionalParameterTypes) throws java.lang.Throwable, InvalidOperationException, NotImplementedException, ArgumentException, ArgumentNullException, NotSupportedException
java.lang.ThrowableInvalidOperationExceptionNotImplementedExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionpublic void EmitWriteLine(FieldInfo fld) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionpublic void EmitWriteLine(LocalBuilder localBuilder) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, NotSupportedException, InvalidOperationException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionpublic void EmitWriteLine(java.lang.String value)
throws java.lang.Throwable,
NotImplementedException,
ArgumentNullException,
ArgumentException,
NotSupportedException,
InvalidOperationException
java.lang.ThrowableNotImplementedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionInvalidOperationExceptionpublic void EndExceptionBlock()
throws java.lang.Throwable,
NotSupportedException,
InvalidOperationException,
ArgumentNullException,
ArgumentException
java.lang.ThrowableNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionpublic void EndScope()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionpublic 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, ArgumentException
java.lang.ThrowableArgumentExceptionpublic void MarkSequencePoint(ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void ThrowException(NetType excType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionpublic void UsingNamespace(java.lang.String usingNamespace)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NotSupportedException,
InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotSupportedExceptionInvalidOperationException