Package system.codedom.compiler
Interface ICodeGenerator
-
- All Superinterfaces:
IJCOBridgeReflected
- All Known Implementing Classes:
CodeCompiler
,CodeGenerator
,ICodeGeneratorImplementation
public interface ICodeGenerator extends IJCOBridgeReflected
The base .NET class managing System.CodeDom.Compiler.ICodeGenerator, System.CodeDom, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.See: https://docs.microsoft.com/en-us/dotnet/api/System.CodeDom.Compiler.ICodeGenerator
-
-
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.ICodeGenerator
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
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
static final String assemblyShortName
Assembly name: System.CodeDom- See Also:
- Constant Field Values
-
className
static final String className
Qualified class name: System.CodeDom.Compiler.ICodeGenerator- See Also:
- Constant Field Values
-
-
Method Detail
-
ToICodeGenerator
static ICodeGenerator ToICodeGenerator(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoICodeGenerator
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ICodeGenerator
instance- Throws:
Throwable
- in case of error during cast operation
-
getJCOAssemblyName
String getJCOAssemblyName()
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
String getJCOClassName()
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
String getJCOObjectName()
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
Object getJCOInstance()
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Returns:
- An
Object
representing the instance of the instantiated Class
-
getJCOType
JCType getJCOType()
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Returns:
- A
JCType
representing the Type of the instantiated Class
-
Supports
boolean Supports(GeneratorSupport supports) throws Throwable
- Throws:
Throwable
-
CreateEscapedIdentifier
String CreateEscapedIdentifier(String value) throws Throwable
- Throws:
Throwable
-
CreateValidIdentifier
String CreateValidIdentifier(String value) throws Throwable
- Throws:
Throwable
-
GetTypeOutput
String GetTypeOutput(CodeTypeReference type) throws Throwable
- Throws:
Throwable
-
GenerateCodeFromCompileUnit
void GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) throws Throwable
- Throws:
Throwable
-
GenerateCodeFromExpression
void GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o) throws Throwable
- Throws:
Throwable
-
GenerateCodeFromNamespace
void GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) throws Throwable
- Throws:
Throwable
-
GenerateCodeFromStatement
void GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o) throws Throwable
- Throws:
Throwable
-
GenerateCodeFromType
void GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) throws Throwable
- Throws:
Throwable
-
-