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.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Reflection.Emit.ILGeneratorstatic JCType
classType
The 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 void
BeginCatchBlock(NetType exceptionType)
void
BeginExceptFilterBlock()
Label
BeginExceptionBlock()
void
BeginFaultBlock()
void
BeginFinallyBlock()
void
BeginScope()
static ILGenerator
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoILGenerator
, 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, double arg)
void
Emit(OpCode opcode, int arg)
void
Emit(OpCode opcode, long arg)
void
Emit(OpCode opcode, short arg)
void
Emit(OpCode opcode, java.lang.String str)
void
Emit(OpCode opcode, NetType cls)
void
Emit(OpCode opcode, ConstructorInfo con)
void
Emit(OpCode opcode, Label label)
void
Emit(OpCode opcode, Label[] labels)
void
Emit(OpCode opcode, LocalBuilder local)
void
Emit(OpCode opcode, SignatureHelper signature)
void
Emit(OpCode opcode, FieldInfo field)
void
Emit(OpCode opcode, MethodInfo meth)
void
Emit(OpCode opcode, SByte arg)
void
Emit(OpCode opcode, Single arg)
void
EmitCall(OpCode opcode, MethodInfo methodInfo, NetType[] optionalParameterTypes)
void
EmitCalli(OpCode opcode, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, NetType[] optionalParameterTypes)
void
EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, NetType returnType, NetType[] parameterTypes)
void
EmitWriteLine(java.lang.String value)
void
EmitWriteLine(LocalBuilder localBuilder)
void
EmitWriteLine(FieldInfo fld)
void
EndExceptionBlock()
void
EndScope()
int
getILOffset()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typevoid
MarkLabel(Label loc)
void
setJCOInstance(JCObject instance)
void
ThrowException(NetType excType)
void
UsingNamespace(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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ILGenerator cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoILGenerator
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ILGenerator
instance- 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
-
-