Class TypeProvider
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.workflow.componentmodel.compiler.TypeProvider
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class TypeProvider extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.Workflow.ComponentModel.Compiler.TypeProvider, System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Workflow.ComponentModel.Compiler.TypeProvider
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.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: System.Workflow.ComponentModelstatic java.lang.String
className
Qualified class name: System.Workflow.ComponentModel.Compiler.TypeProviderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TypeProvider()
TypeProvider(java.lang.Object instance)
Internal constructor.TypeProvider(IServiceProvider serviceProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddAssembly(Assembly assembly)
void
AddAssemblyReference(java.lang.String path)
void
AddCodeCompileUnit(CodeCompileUnit codeCompileUnit)
void
addTypeLoadErrorsChanged(EventHandler handler)
void
addTypesChanged(EventHandler handler)
static TypeProvider
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTypeProvider
, a cast assert is made to check if types are compatible.void
close()
void
Dispose()
java.lang.String
GetAssemblyName(NetType type)
static java.lang.String[]
GetEnumNames(NetType enumType)
static NetType
GetEventHandlerType(EventInfo eventInfo)
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 TypeAssembly
getLocalAssembly()
NetObject
GetService(NetType serviceType)
NetType
GetType(java.lang.String name)
NetType
GetType(java.lang.String name, boolean throwOnError)
NetType[]
GetTypes()
static boolean
IsAssignable(NetType toType, NetType fromType)
static boolean
IsEnum(NetType type)
static boolean
IsSubclassOf(NetType subclass, NetType superClass)
boolean
IsSupportedProperty(PropertyInfo property, NetObject declaringInstance)
void
RefreshCodeCompileUnit(CodeCompileUnit codeCompileUnit, EventHandler refresher)
void
RemoveAssembly(Assembly assembly)
void
RemoveAssemblyReference(java.lang.String path)
void
RemoveCodeCompileUnit(CodeCompileUnit codeCompileUnit)
void
removeTypeLoadErrorsChanged(EventHandler handler)
void
removeTypesChanged(EventHandler handler)
void
setJCOInstance(JCObject instance)
void
SetLocalAssembly(Assembly assembly)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Workflow.ComponentModel- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Workflow.ComponentModel.Compiler.TypeProvider- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TypeProvider
public TypeProvider(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
TypeProvider
public TypeProvider() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TypeProvider
public TypeProvider(IServiceProvider serviceProvider) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
-
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 TypeProvider cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTypeProvider
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TypeProvider
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsAssignable
public static boolean IsAssignable(NetType toType, NetType fromType) throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.Throwable
InvalidOperationException
-
IsEnum
public static boolean IsEnum(NetType type) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
IsSubclassOf
public static boolean IsSubclassOf(NetType subclass, NetType superClass) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsSupportedProperty
public boolean IsSupportedProperty(PropertyInfo property, NetObject declaringInstance) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
GetService
public NetObject GetService(NetType serviceType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetAssemblyName
public java.lang.String GetAssemblyName(NetType type) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
NotImplementedException
-
GetEnumNames
public static java.lang.String[] GetEnumNames(NetType enumType) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException
-
GetEventHandlerType
public static NetType GetEventHandlerType(EventInfo eventInfo) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
GetType
public NetType GetType(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotSupportedException, InvalidOperationException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, NullReferenceException, ObjectDisposedException, AbandonedMutexException, FormatException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException, RankException, CultureNotFoundException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotSupportedException
InvalidOperationException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
ArgumentOutOfRangeException
NullReferenceException
ObjectDisposedException
AbandonedMutexException
FormatException
NotImplementedException
MemberAccessException
TargetException
TargetParameterCountException
RankException
CultureNotFoundException
OverflowException
-
GetType
public NetType GetType(java.lang.String name, boolean throwOnError) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, NotImplementedException, FormatException, FileNotFoundException, RankException, ObjectDisposedException, AbandonedMutexException, OverflowException, TargetParameterCountException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
NotImplementedException
FormatException
FileNotFoundException
RankException
ObjectDisposedException
AbandonedMutexException
OverflowException
TargetParameterCountException
-
GetTypes
public NetType[] GetTypes() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, NotImplementedException, FormatException, FileNotFoundException, RankException, ObjectDisposedException, AbandonedMutexException, OverflowException, TargetParameterCountException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
NotImplementedException
FormatException
FileNotFoundException
RankException
ObjectDisposedException
AbandonedMutexException
OverflowException
TargetParameterCountException
-
AddAssembly
public void AddAssembly(Assembly assembly) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, NotSupportedException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
MissingMethodException
TargetInvocationException
FormatException
NotSupportedException
NotImplementedException
MemberAccessException
TargetException
TargetParameterCountException
-
AddAssemblyReference
public void AddAssemblyReference(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NotSupportedException, InvalidOperationException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException
-
AddCodeCompileUnit
public void AddCodeCompileUnit(CodeCompileUnit codeCompileUnit) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, MemberAccessException, TargetException, TargetParameterCountException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NotSupportedException
MemberAccessException
TargetException
TargetParameterCountException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
-
RefreshCodeCompileUnit
public void RefreshCodeCompileUnit(CodeCompileUnit codeCompileUnit, EventHandler refresher) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, MemberAccessException, TargetException, TargetParameterCountException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NotSupportedException
MemberAccessException
TargetException
TargetParameterCountException
-
RemoveAssembly
public void RemoveAssembly(Assembly assembly) throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, FormatException, InvalidOperationException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException
-
RemoveAssemblyReference
public void RemoveAssemblyReference(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, FormatException, InvalidOperationException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException
-
RemoveCodeCompileUnit
public void RemoveCodeCompileUnit(CodeCompileUnit codeCompileUnit) throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, FormatException, InvalidOperationException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException
-
SetLocalAssembly
public void SetLocalAssembly(Assembly assembly) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getLocalAssembly
public Assembly getLocalAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addTypeLoadErrorsChanged
public void addTypeLoadErrorsChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeTypeLoadErrorsChanged
public void removeTypeLoadErrorsChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addTypesChanged
public void addTypesChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeTypesChanged
public void removeTypesChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-