public class ILGenerator extends NetObject
.NET documentation at https://learn.microsoft.com/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=11.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)
Invokes the .NET member BeginCatchBlock.
|
void |
BeginExceptFilterBlock()
Invokes the .NET member BeginExceptFilterBlock.
|
Label |
BeginExceptionBlock()
Invokes the .NET member BeginExceptionBlock.
|
void |
BeginFaultBlock()
Invokes the .NET member BeginFaultBlock.
|
void |
BeginFinallyBlock()
Invokes the .NET member BeginFinallyBlock.
|
void |
BeginScope()
Invokes the .NET member 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)
Invokes the .NET member DeclareLocal.
|
LocalBuilder |
DeclareLocal(NetType localType,
boolean pinned)
Invokes the .NET member DeclareLocal.
|
Label |
DefineLabel()
Invokes the .NET member DefineLabel.
|
void |
Emit(OpCode opcode)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
byte arg)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
ConstructorInfo con)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
double arg)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
FieldInfo field)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
int arg)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
Label label)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
Label[] labels)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
LocalBuilder local)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
long arg)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
MethodInfo meth)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
NetType cls)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
SByte arg)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
short arg)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
SignatureHelper signature)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
Single arg)
Invokes the .NET member Emit.
|
void |
Emit(OpCode opcode,
java.lang.String str)
Invokes the .NET member Emit.
|
void |
EmitCall(OpCode opcode,
MethodInfo methodInfo,
NetType[] optionalParameterTypes)
Invokes the .NET member EmitCall.
|
void |
EmitCalli(NetType functionPointerType)
Invokes the .NET member EmitCalli.
|
void |
EmitCalli(OpCode opcode,
CallingConvention unmanagedCallConv,
NetType returnType,
NetType[] parameterTypes)
Invokes the .NET member EmitCalli.
|
void |
EmitCalli(OpCode opcode,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
NetType[] optionalParameterTypes)
Invokes the .NET member EmitCalli.
|
void |
EmitWriteLine(FieldInfo fld)
Invokes the .NET member EmitWriteLine.
|
void |
EmitWriteLine(LocalBuilder localBuilder)
Invokes the .NET member EmitWriteLine.
|
void |
EmitWriteLine(java.lang.String value)
Invokes the .NET member EmitWriteLine.
|
void |
EndExceptionBlock()
Invokes the .NET member EndExceptionBlock.
|
void |
EndScope()
Invokes the .NET member EndScope.
|
int |
getILOffset()
Gets the value of the .NET property ILOffset.
|
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. |
void |
MarkLabel(Label loc)
Invokes the .NET member MarkLabel.
|
void |
MarkSequencePoint(ISymbolDocumentWriter document,
int startLine,
int startColumn,
int endLine,
int endColumn)
Invokes the .NET member MarkSequencePoint.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
ThrowException(NetType excType)
Invokes the .NET member ThrowException.
|
void |
UsingNamespace(java.lang.String usingNamespace)
Invokes the .NET member 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
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void BeginCatchBlock(NetType exceptionType) throws java.lang.Throwable
exceptionType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void BeginExceptFilterBlock()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Label BeginExceptionBlock() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void BeginFaultBlock()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void BeginFinallyBlock()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void BeginScope()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic 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
localType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic LocalBuilder DeclareLocal(NetType localType, boolean pinned) throws java.lang.Throwable
localType - the argument of type NetTypepinned - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Label DefineLabel() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode) throws java.lang.Throwable
opcode - the argument of type OpCodejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, byte arg) throws java.lang.Throwable
opcode - the argument of type OpCodearg - the argument of type bytejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, ConstructorInfo con) throws java.lang.Throwable
opcode - the argument of type OpCodecon - the argument of type ConstructorInfojava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, double arg) throws java.lang.Throwable
opcode - the argument of type OpCodearg - the argument of type doublejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, FieldInfo field) throws java.lang.Throwable
opcode - the argument of type OpCodefield - the argument of type FieldInfojava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, int arg) throws java.lang.Throwable
opcode - the argument of type OpCodearg - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, Label label) throws java.lang.Throwable
opcode - the argument of type OpCodelabel - the argument of type Labeljava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, Label[] labels) throws java.lang.Throwable
opcode - the argument of type OpCodelabels - the argument of type Label[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, LocalBuilder local) throws java.lang.Throwable
opcode - the argument of type OpCodelocal - the argument of type LocalBuilderjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, long arg) throws java.lang.Throwable
opcode - the argument of type OpCodearg - the argument of type longjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, MethodInfo meth) throws java.lang.Throwable
opcode - the argument of type OpCodemeth - the argument of type MethodInfojava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, NetType cls) throws java.lang.Throwable
opcode - the argument of type OpCodecls - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, SByte arg) throws java.lang.Throwable
opcode - the argument of type OpCodearg - the argument of type SBytejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, short arg) throws java.lang.Throwable
opcode - the argument of type OpCodearg - the argument of type shortjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, SignatureHelper signature) throws java.lang.Throwable
opcode - the argument of type OpCodesignature - the argument of type SignatureHelperjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, Single arg) throws java.lang.Throwable
opcode - the argument of type OpCodearg - the argument of type Singlejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Emit(OpCode opcode, java.lang.String str) throws java.lang.Throwable
opcode - the argument of type OpCodestr - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void EmitCall(OpCode opcode, MethodInfo methodInfo, NetType[] optionalParameterTypes) throws java.lang.Throwable
opcode - the argument of type OpCodemethodInfo - the argument of type MethodInfooptionalParameterTypes - the argument of type NetType[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void EmitCalli(NetType functionPointerType) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, LockRecursionException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
functionPointerType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itLockRecursionException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable
opcode - the argument of type OpCodeunmanagedCallConv - the argument of type CallingConventionreturnType - the argument of type NetTypeparameterTypes - the argument of type NetType[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void EmitCalli(OpCode opcode, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, NetType[] optionalParameterTypes) throws java.lang.Throwable
opcode - the argument of type OpCodecallingConvention - the argument of type CallingConventionsreturnType - the argument of type NetTypeparameterTypes - the argument of type NetType[]optionalParameterTypes - the argument of type NetType[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void EmitWriteLine(FieldInfo fld) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, TypeLoadException, IndexOutOfRangeException, FormatException, UnreachableException, FileLoadException, FileNotFoundException
fld - the argument of type FieldInfojava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itTypeLoadException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itUnreachableException - if the .NET member raises itFileLoadException - if the .NET member raises itFileNotFoundException - if the .NET member raises itpublic void EmitWriteLine(LocalBuilder localBuilder) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, TypeLoadException, IndexOutOfRangeException, InvalidOperationException, FormatException, ArgumentNullException, UnreachableException, ArgumentOutOfRangeException, FileLoadException, FileNotFoundException
localBuilder - the argument of type LocalBuilderjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itTypeLoadException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFileLoadException - if the .NET member raises itFileNotFoundException - if the .NET member raises itpublic void EmitWriteLine(java.lang.String value)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
TypeLoadException,
IndexOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
UnreachableException,
ArgumentOutOfRangeException,
FileLoadException,
FileNotFoundException
value - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itTypeLoadException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFileLoadException - if the .NET member raises itFileNotFoundException - if the .NET member raises itpublic void EndExceptionBlock()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void EndScope()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getILOffset()
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 NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic void MarkLabel(Label loc) throws java.lang.Throwable
loc - the argument of type Labeljava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void MarkSequencePoint(ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
document - the argument of type ISymbolDocumentWriterstartLine - the argument of type intstartColumn - the argument of type intendLine - the argument of type intendColumn - 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 itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void ThrowException(NetType excType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
excType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void UsingNamespace(java.lang.String usingNamespace)
throws java.lang.Throwable
usingNamespace - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLR