Package system.reflection.emit
Class ILGenerator
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.emit.ILGenerator
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class ILGenerator extends NetObject
The base .NET class managing System.Reflection.Emit.ILGenerator, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.Reflection.Emit.ILGeneratorstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ILGenerator()ILGenerator(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidBeginCatchBlock(NetType exceptionType)voidBeginExceptFilterBlock()LabelBeginExceptionBlock()voidBeginFaultBlock()voidBeginFinallyBlock()voidBeginScope()static ILGeneratorcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoILGenerator, a cast assert is made to check if types are compatible.LocalBuilderDeclareLocal(NetType localType)LocalBuilderDeclareLocal(NetType localType, boolean pinned)LabelDefineLabel()voidEmit(OpCode opcode)voidEmit(OpCode opcode, byte arg)voidEmit(OpCode opcode, double arg)voidEmit(OpCode opcode, int arg)voidEmit(OpCode opcode, long arg)voidEmit(OpCode opcode, short arg)voidEmit(OpCode opcode, java.lang.String str)voidEmit(OpCode opcode, NetType cls)voidEmit(OpCode opcode, ConstructorInfo con)voidEmit(OpCode opcode, Label label)voidEmit(OpCode opcode, Label[] labels)voidEmit(OpCode opcode, LocalBuilder local)voidEmit(OpCode opcode, SignatureHelper signature)voidEmit(OpCode opcode, FieldInfo field)voidEmit(OpCode opcode, MethodInfo meth)voidEmit(OpCode opcode, SByte arg)voidEmit(OpCode opcode, Single arg)voidEmitCall(OpCode opcode, MethodInfo methodInfo, NetType[] optionalParameterTypes)voidEmitCalli(OpCode opcode, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, NetType[] optionalParameterTypes)voidEmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, NetType returnType, NetType[] parameterTypes)voidEmitWriteLine(java.lang.String value)voidEmitWriteLine(LocalBuilder localBuilder)voidEmitWriteLine(FieldInfo fld)voidEndExceptionBlock()voidEndScope()intgetILOffset()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypevoidMarkLabel(Label loc)voidsetJCOInstance(JCObject instance)voidThrowException(NetType excType)voidUsingNamespace(java.lang.String usingNamespace)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.Emit.ILGenerator- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ILGenerator cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoILGenerator, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ILGeneratorinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
BeginExceptionBlock
public Label BeginExceptionBlock() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DefineLabel
public Label DefineLabel() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DeclareLocal
public LocalBuilder DeclareLocal(NetType localType, boolean pinned) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DeclareLocal
public LocalBuilder DeclareLocal(NetType localType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BeginCatchBlock
public void BeginCatchBlock(NetType exceptionType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BeginExceptFilterBlock
public void BeginExceptFilterBlock() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BeginFaultBlock
public void BeginFaultBlock() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BeginFinallyBlock
public void BeginFinallyBlock() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BeginScope
public void BeginScope() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, byte arg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, double arg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, short arg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, int arg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, long arg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, SByte arg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, Single arg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, ConstructorInfo con) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, Label label) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, Label[] labels) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, LocalBuilder local) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, SignatureHelper signature) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, FieldInfo field) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, MethodInfo meth) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, java.lang.String str) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode, NetType cls) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Emit
public void Emit(OpCode opcode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
EmitCall
public void EmitCall(OpCode opcode, MethodInfo methodInfo, NetType[] optionalParameterTypes) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
EmitCalli
public void EmitCalli(OpCode opcode, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, NetType[] optionalParameterTypes) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
EmitCalli
public void EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
EmitWriteLine
public void EmitWriteLine(LocalBuilder localBuilder) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, TypeLoadException, ArgumentOutOfRangeException, InvalidOperationException
-
EmitWriteLine
public void EmitWriteLine(FieldInfo fld) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, TypeLoadException
-
EmitWriteLine
public void EmitWriteLine(java.lang.String value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, TypeLoadException, ArgumentOutOfRangeException, InvalidOperationException
-
EndExceptionBlock
public void EndExceptionBlock() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
EndScope
public void EndScope() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
MarkLabel
public void MarkLabel(Label loc) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ThrowException
public void ThrowException(NetType excType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
UsingNamespace
public void UsingNamespace(java.lang.String usingNamespace) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getILOffset
public int getILOffset() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-