Package system.codedom.compiler
Class CodeCompiler
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.codedom.compiler.CodeGenerator
-
- system.codedom.compiler.CodeCompiler
-
- All Implemented Interfaces:
IJCOBridgeReflected
,ICodeCompiler
,ICodeGenerator
public class CodeCompiler extends CodeGenerator implements ICodeCompiler
The base .NET class managing System.CodeDom.Compiler.CodeCompiler, System.CodeDom, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.See: https://docs.microsoft.com/en-us/dotnet/api/System.CodeDom.Compiler.CodeCompiler
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.CodeDom, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static String
assemblyShortName
Assembly name: System.CodeDomstatic String
className
Qualified class name: System.CodeDom.Compiler.CodeCompilerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description CodeCompiler()
CodeCompiler(Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CodeCompiler
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoCodeCompiler
, a cast assert is made to check if types are compatible.CompilerResults
CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit compilationUnit)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.CompilerResults
CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] compilationUnits)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.CompilerResults
CompileAssemblyFromFile(CompilerParameters options, String fileName)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.CompilerResults
CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.CompilerResults
CompileAssemblyFromFileBatch(CompilerParameters dupParam0, JCORefOut dupParam1)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.CompilerResults
CompileAssemblyFromSource(CompilerParameters options, String source)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.CompilerResults
CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.CompilerResults
CompileAssemblyFromSourceBatch(CompilerParameters dupParam0, JCORefOut dupParam1)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typevoid
setJCOInstance(JCObject instance)
-
Methods inherited from class system.codedom.compiler.CodeGenerator
CreateEscapedIdentifier, CreateValidIdentifier, GenerateCodeFromCompileUnit, GenerateCodeFromExpression, GenerateCodeFromMember, GenerateCodeFromNamespace, GenerateCodeFromStatement, GenerateCodeFromType, GetTypeOutput, IsValidIdentifier, IsValidLanguageIndependentIdentifier, Supports, ValidateIdentifier, ValidateIdentifiers
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.CodeDom, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.CodeDom- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.CodeDom.Compiler.CodeCompiler- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceICodeCompiler
- Specified by:
getJCOAssemblyName
in interfaceICodeGenerator
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classCodeGenerator
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceICodeCompiler
- Specified by:
getJCOClassName
in interfaceICodeGenerator
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classCodeGenerator
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceICodeCompiler
- Specified by:
getJCOObjectName
in interfaceICodeGenerator
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classCodeGenerator
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceICodeCompiler
- Specified by:
getJCOInstance
in interfaceICodeGenerator
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classCodeGenerator
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classCodeGenerator
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceICodeCompiler
- Specified by:
getJCOType
in interfaceICodeGenerator
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classCodeGenerator
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static CodeCompiler cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoCodeCompiler
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
CodeCompiler
instance- Throws:
Throwable
- in case of error during cast operation
-
CompileAssemblyFromDom
@Deprecated public CompilerResults CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit compilationUnit) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToICodeCompiler method available in ICodeCompiler to obtain an object with an invocable method- Specified by:
CompileAssemblyFromDom
in interfaceICodeCompiler
- Throws:
Throwable
-
CompileAssemblyFromDomBatch
@Deprecated public CompilerResults CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] compilationUnits) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToICodeCompiler method available in ICodeCompiler to obtain an object with an invocable method- Specified by:
CompileAssemblyFromDomBatch
in interfaceICodeCompiler
- Throws:
Throwable
-
CompileAssemblyFromFile
@Deprecated public CompilerResults CompileAssemblyFromFile(CompilerParameters options, String fileName) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToICodeCompiler method available in ICodeCompiler to obtain an object with an invocable method- Specified by:
CompileAssemblyFromFile
in interfaceICodeCompiler
- Throws:
Throwable
-
CompileAssemblyFromFileBatch
@Deprecated public CompilerResults CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToICodeCompiler method available in ICodeCompiler to obtain an object with an invocable method- Specified by:
CompileAssemblyFromFileBatch
in interfaceICodeCompiler
- Throws:
Throwable
-
CompileAssemblyFromFileBatch
@Deprecated public CompilerResults CompileAssemblyFromFileBatch(CompilerParameters dupParam0, JCORefOut dupParam1) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToMETHOD_INTERFACE_NAME method available in METHOD_INTERFACE_NAME to obtain an object with an invocable method- Specified by:
CompileAssemblyFromFileBatch
in interfaceICodeCompiler
- Throws:
Throwable
-
CompileAssemblyFromSource
@Deprecated public CompilerResults CompileAssemblyFromSource(CompilerParameters options, String source) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToICodeCompiler method available in ICodeCompiler to obtain an object with an invocable method- Specified by:
CompileAssemblyFromSource
in interfaceICodeCompiler
- Throws:
Throwable
-
CompileAssemblyFromSourceBatch
@Deprecated public CompilerResults CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToICodeCompiler method available in ICodeCompiler to obtain an object with an invocable method- Specified by:
CompileAssemblyFromSourceBatch
in interfaceICodeCompiler
- Throws:
Throwable
-
CompileAssemblyFromSourceBatch
@Deprecated public CompilerResults CompileAssemblyFromSourceBatch(CompilerParameters dupParam0, JCORefOut dupParam1) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToMETHOD_INTERFACE_NAME method available in METHOD_INTERFACE_NAME to obtain an object with an invocable method- Specified by:
CompileAssemblyFromSourceBatch
in interfaceICodeCompiler
- Throws:
Throwable
-
-