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.StringassemblyFullNameFully assembly qualified name: System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: System.Workflow.ComponentModelstatic java.lang.StringclassNameQualified class name: System.Workflow.ComponentModel.Compiler.TypeProviderstatic JCTypeclassTypeThe 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 voidAddAssembly(Assembly assembly)voidAddAssemblyReference(java.lang.String path)voidAddCodeCompileUnit(CodeCompileUnit codeCompileUnit)voidaddTypeLoadErrorsChanged(EventHandler handler)voidaddTypesChanged(EventHandler handler)static TypeProvidercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTypeProvider, a cast assert is made to check if types are compatible.voidclose()voidDispose()java.lang.StringGetAssemblyName(NetType type)static java.lang.String[]GetEnumNames(NetType enumType)static NetTypeGetEventHandlerType(EventInfo eventInfo)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 TypeAssemblygetLocalAssembly()NetObjectGetService(NetType serviceType)NetTypeGetType(java.lang.String name)NetTypeGetType(java.lang.String name, boolean throwOnError)NetType[]GetTypes()static booleanIsAssignable(NetType toType, NetType fromType)static booleanIsEnum(NetType type)static booleanIsSubclassOf(NetType subclass, NetType superClass)booleanIsSupportedProperty(PropertyInfo property, NetObject declaringInstance)voidRefreshCodeCompileUnit(CodeCompileUnit codeCompileUnit, EventHandler refresher)voidRemoveAssembly(Assembly assembly)voidRemoveAssemblyReference(java.lang.String path)voidRemoveCodeCompileUnit(CodeCompileUnit codeCompileUnit)voidremoveTypeLoadErrorsChanged(EventHandler handler)voidremoveTypesChanged(EventHandler handler)voidsetJCOInstance(JCObject instance)voidSetLocalAssembly(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.ThrowableInternal 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: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 TypeProvider cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTypeProvider, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
TypeProviderinstance- 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.ThrowableInvalidOperationException
-
IsEnum
public static boolean IsEnum(NetType type) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
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.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
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.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionNotImplementedException
-
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.ThrowableArgumentNullException
-
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.ThrowableArgumentNullExceptionArgumentExceptionNotSupportedExceptionInvalidOperationExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionNullReferenceExceptionObjectDisposedExceptionAbandonedMutexExceptionFormatExceptionNotImplementedExceptionMemberAccessExceptionTargetExceptionTargetParameterCountExceptionRankExceptionCultureNotFoundExceptionOverflowException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotImplementedExceptionFormatExceptionFileNotFoundExceptionRankExceptionObjectDisposedExceptionAbandonedMutexExceptionOverflowExceptionTargetParameterCountException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotImplementedExceptionFormatExceptionFileNotFoundExceptionRankExceptionObjectDisposedExceptionAbandonedMutexExceptionOverflowExceptionTargetParameterCountException
-
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.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionNotSupportedExceptionNotImplementedExceptionMemberAccessExceptionTargetExceptionTargetParameterCountException
-
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.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNotSupportedExceptionMemberAccessExceptionTargetExceptionTargetParameterCountException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullException
-
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.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNotSupportedExceptionMemberAccessExceptionTargetExceptionTargetParameterCountException
-
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:
closein 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
-
-