Package system.codedom.compiler
Class CodeDomProvider
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.codedom.compiler.CodeDomProvider
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
- Direct Known Subclasses:
CSharpCodeProvider
,VBCodeProvider
public class CodeDomProvider extends Component
The base .NET class managing System.CodeDom.Compiler.CodeDomProvider, System.CodeDom, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.CodeDom.Compiler.CodeDomProvider
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.CodeDom, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.CodeDomstatic java.lang.String
className
Qualified class name: System.CodeDom.Compiler.CodeDomProviderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description CodeDomProvider()
CodeDomProvider(java.lang.Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.CodeDom, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.CodeDom- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.CodeDom.Compiler.CodeDomProvider- 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 classComponent
- 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 classComponent
- 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 classComponent
- 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 classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static CodeDomProvider cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoCodeDomProvider
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
CodeDomProvider
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsDefinedExtension
public static boolean IsDefinedExtension(java.lang.String extension) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
IsDefinedLanguage
public static boolean IsDefinedLanguage(java.lang.String language) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
IsValidIdentifier
public boolean IsValidIdentifier(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
Supports
public boolean Supports(GeneratorSupport generatorSupport) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
Parse
public CodeCompileUnit Parse(TextReader codeStream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
CreateProvider
public static CodeDomProvider CreateProvider(java.lang.String language) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, TypeLoadException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
TypeLoadException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
GetCompilerInfo
public static CompilerInfo GetCompilerInfo(java.lang.String language) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetAllCompilerInfo
public static CompilerInfo[] GetAllCompilerInfo() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException
-
CompileAssemblyFromDom
public CompilerResults CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit... compilationUnits) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
CompileAssemblyFromFile
public CompilerResults CompileAssemblyFromFile(CompilerParameters options, java.lang.String... fileNames) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
CompileAssemblyFromFile
public CompilerResults CompileAssemblyFromFile(CompilerParameters dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
CompileAssemblyFromSource
public CompilerResults CompileAssemblyFromSource(CompilerParameters options, java.lang.String... sources) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
CompileAssemblyFromSource
public CompilerResults CompileAssemblyFromSource(CompilerParameters dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
CreateCompiler
public ICodeCompiler CreateCompiler() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CreateGenerator
public ICodeGenerator CreateGenerator() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CreateGenerator
public ICodeGenerator CreateGenerator(TextWriter output) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CreateGenerator
public ICodeGenerator CreateGenerator(java.lang.String fileName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CreateParser
public ICodeParser CreateParser() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetConverter
public TypeConverter GetConverter(NetType type) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, KeyNotFoundException
-
CreateEscapedIdentifier
public java.lang.String CreateEscapedIdentifier(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
CreateValidIdentifier
public java.lang.String CreateValidIdentifier(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GetLanguageFromExtension
public static java.lang.String GetLanguageFromExtension(java.lang.String extension) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetTypeOutput
public java.lang.String GetTypeOutput(CodeTypeReference type) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GenerateCodeFromCompileUnit
public void GenerateCodeFromCompileUnit(CodeCompileUnit compileUnit, TextWriter writer, CodeGeneratorOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GenerateCodeFromExpression
public void GenerateCodeFromExpression(CodeExpression expression, TextWriter writer, CodeGeneratorOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GenerateCodeFromMember
public void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GenerateCodeFromNamespace
public void GenerateCodeFromNamespace(CodeNamespace codeNamespace, TextWriter writer, CodeGeneratorOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GenerateCodeFromStatement
public void GenerateCodeFromStatement(CodeStatement statement, TextWriter writer, CodeGeneratorOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GenerateCodeFromType
public void GenerateCodeFromType(CodeTypeDeclaration codeType, TextWriter writer, CodeGeneratorOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
getLanguageOptions
public LanguageOptions getLanguageOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFileExtension
public java.lang.String getFileExtension() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-