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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic 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
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)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- 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, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
DefineLabel
public Label DefineLabel() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
DeclareLocal
public LocalBuilder DeclareLocal(NetType localType) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentNullException, ArgumentException, NotImplementedException
- Throws:
java.lang.Throwable
NotSupportedException
InvalidOperationException
ArgumentNullException
ArgumentException
NotImplementedException
-
DeclareLocal
public LocalBuilder DeclareLocal(NetType localType, boolean pinned) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
NotSupportedException
InvalidOperationException
ArgumentNullException
ArgumentException
-
BeginCatchBlock
public void BeginCatchBlock(NetType exceptionType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
-
BeginExceptFilterBlock
public void BeginExceptFilterBlock() throws java.lang.Throwable, NotSupportedException, ArgumentNullException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentNullException
-
BeginFaultBlock
public void BeginFaultBlock() throws java.lang.Throwable, NotSupportedException, ArgumentNullException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentNullException
-
BeginFinallyBlock
public void BeginFinallyBlock() throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentNullException
ArgumentException
-
BeginScope
public void BeginScope() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
Emit
public void Emit(OpCode opcode) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, byte arg) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, double arg) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, short arg) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, int arg) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, long arg) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, SByte arg) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, Single arg) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, ConstructorInfo con) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, NotSupportedException, InvalidOperationException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
NotImplementedException
NotSupportedException
InvalidOperationException
ArgumentException
-
Emit
public void Emit(OpCode opcode, Label label) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, Label[] labels) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, LocalBuilder local) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
-
Emit
public void Emit(OpCode opcode, SignatureHelper signature) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
NotImplementedException
ArgumentException
-
Emit
public void Emit(OpCode opcode, FieldInfo field) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, FormatException
-
Emit
public void Emit(OpCode opcode, MethodInfo meth) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
NotSupportedException
InvalidOperationException
-
Emit
public void Emit(OpCode opcode, java.lang.String str) throws java.lang.Throwable, NotImplementedException, ArgumentNullException
- Throws:
java.lang.Throwable
NotImplementedException
ArgumentNullException
-
Emit
public void Emit(OpCode opcode, NetType cls) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException
-
EmitCall
public void EmitCall(OpCode opcode, MethodInfo methodInfo, NetType[] optionalParameterTypes) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
NotSupportedException
InvalidOperationException
-
EmitCalli
public void EmitCalli(OpCode opcode, CallingConventions callingConvention, NetType returnType, NetType[] parameterTypes, NetType[] optionalParameterTypes) throws java.lang.Throwable, InvalidOperationException, NotImplementedException, ArgumentException, ArgumentNullException, NotSupportedException
- Throws:
java.lang.Throwable
InvalidOperationException
NotImplementedException
ArgumentException
ArgumentNullException
NotSupportedException
-
EmitCalli
public void EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, NetType returnType, NetType[] parameterTypes) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
NotImplementedException
ArgumentException
ArgumentNullException
NotSupportedException
InvalidOperationException
-
EmitWriteLine
public void EmitWriteLine(LocalBuilder localBuilder) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
NotImplementedException
NotSupportedException
InvalidOperationException
-
EmitWriteLine
public void EmitWriteLine(FieldInfo fld) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
NotSupportedException
InvalidOperationException
-
EmitWriteLine
public void EmitWriteLine(java.lang.String value) throws java.lang.Throwable, NotImplementedException, ArgumentNullException, ArgumentException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
NotImplementedException
ArgumentNullException
ArgumentException
NotSupportedException
InvalidOperationException
-
EndExceptionBlock
public void EndExceptionBlock() throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
NotSupportedException
InvalidOperationException
ArgumentNullException
ArgumentException
-
EndScope
public void EndScope() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
MarkLabel
public void MarkLabel(Label loc) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
MarkSequencePoint
public void MarkSequencePoint(ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
-
ThrowException
public void ThrowException(NetType excType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
NotSupportedException
InvalidOperationException
-
UsingNamespace
public void UsingNamespace(java.lang.String usingNamespace) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotSupportedException
InvalidOperationException
-
getILOffset
public int getILOffset() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-