C# 클래스 SharpTAL.CodeGenerator

상속: SharpTAL.TemplateProgram.AbstractProgramInterpreter, ICodeGenerator
파일 보기 프로젝트 열기: lck/SharpTAL

보호된 프로퍼티들

프로퍼티 타입 설명
FileBodyTemplate string

공개 메소드들

메소드 설명
CodeGenerator ( ) : System
GenerateCode ( TemplateInfo ti ) : string

보호된 메소드들

메소드 설명
FormatCSharpExpression ( string expression ) : string
FormatCSharpStatements ( string code ) : string
FormatCodeBlock ( CmdCodeBlock codeBlock ) : string
FormatExpression ( string expression ) : string
FormatStringExpression ( string expression ) : string
Handle_CMD_CODE_BLOCK ( ICommand command ) : void
Handle_CMD_ENDTAG_ENDSCOPE ( ICommand command ) : void
Handle_CMD_OUTPUT ( ICommand command ) : void
Handle_CMD_START_SCOPE ( ICommand command ) : void
Handle_CMD_START_TAG ( ICommand command ) : void
Handle_METAL_DEFINE_MACRO ( ICommand command ) : void
Handle_METAL_DEFINE_PARAM ( ICommand command ) : void
Handle_METAL_DEFINE_SLOT ( ICommand command ) : void
Handle_METAL_FILL_PARAM ( ICommand command ) : void
Handle_METAL_FILL_SLOT ( ICommand command ) : void
Handle_METAL_IMPORT ( ICommand command ) : void
Handle_METAL_USE_MACRO ( ICommand command ) : void
Handle_META_INTERPOLATION ( ICommand command ) : void
Handle_TAL_ATTRIBUTES ( ICommand command ) : void
Handle_TAL_CONDITION ( ICommand command ) : void
Handle_TAL_CONTENT ( ICommand command ) : void
Handle_TAL_DEFINE ( ICommand command ) : void
Handle_TAL_OMITTAG ( ICommand command ) : void
Handle_TAL_REPEAT ( ICommand command ) : void
Handle_TAL_REPLACE ( ICommand command ) : void
WriteToBody ( string format ) : void
WriteToBodyNoFormat ( string text ) : void
WriteToGlobals ( string format ) : void

비공개 메소드들

메소드 설명
ProcessProgramMacros ( Program templateProgram, string programNamespace, List programNamespaces ) : void
SafeVariableName ( string str ) : string
WriteCmdInfo ( ICommand command ) : void

메소드 상세

CodeGenerator() 공개 메소드

public CodeGenerator ( ) : System
리턴 System

FormatCSharpExpression() 보호된 메소드

protected FormatCSharpExpression ( string expression ) : string
expression string
리턴 string

FormatCSharpStatements() 보호된 메소드

protected FormatCSharpStatements ( string code ) : string
code string
리턴 string

FormatCodeBlock() 보호된 메소드

protected FormatCodeBlock ( CmdCodeBlock codeBlock ) : string
codeBlock SharpTAL.TemplateProgram.Commands.CmdCodeBlock
리턴 string

FormatExpression() 보호된 메소드

protected FormatExpression ( string expression ) : string
expression string
리턴 string

FormatStringExpression() 보호된 메소드

protected FormatStringExpression ( string expression ) : string
expression string
리턴 string

GenerateCode() 공개 메소드

public GenerateCode ( TemplateInfo ti ) : string
ti TemplateInfo
리턴 string

Handle_CMD_CODE_BLOCK() 보호된 메소드

protected Handle_CMD_CODE_BLOCK ( ICommand command ) : void
command ICommand
리턴 void

Handle_CMD_ENDTAG_ENDSCOPE() 보호된 메소드

protected Handle_CMD_ENDTAG_ENDSCOPE ( ICommand command ) : void
command ICommand
리턴 void

Handle_CMD_OUTPUT() 보호된 메소드

protected Handle_CMD_OUTPUT ( ICommand command ) : void
command ICommand
리턴 void

Handle_CMD_START_SCOPE() 보호된 메소드

protected Handle_CMD_START_SCOPE ( ICommand command ) : void
command ICommand
리턴 void

Handle_CMD_START_TAG() 보호된 메소드

protected Handle_CMD_START_TAG ( ICommand command ) : void
command ICommand
리턴 void

Handle_METAL_DEFINE_MACRO() 보호된 메소드

protected Handle_METAL_DEFINE_MACRO ( ICommand command ) : void
command ICommand
리턴 void

Handle_METAL_DEFINE_PARAM() 보호된 메소드

protected Handle_METAL_DEFINE_PARAM ( ICommand command ) : void
command ICommand
리턴 void

Handle_METAL_DEFINE_SLOT() 보호된 메소드

protected Handle_METAL_DEFINE_SLOT ( ICommand command ) : void
command ICommand
리턴 void

Handle_METAL_FILL_PARAM() 보호된 메소드

protected Handle_METAL_FILL_PARAM ( ICommand command ) : void
command ICommand
리턴 void

Handle_METAL_FILL_SLOT() 보호된 메소드

protected Handle_METAL_FILL_SLOT ( ICommand command ) : void
command ICommand
리턴 void

Handle_METAL_IMPORT() 보호된 메소드

protected Handle_METAL_IMPORT ( ICommand command ) : void
command ICommand
리턴 void

Handle_METAL_USE_MACRO() 보호된 메소드

protected Handle_METAL_USE_MACRO ( ICommand command ) : void
command ICommand
리턴 void

Handle_META_INTERPOLATION() 보호된 메소드

protected Handle_META_INTERPOLATION ( ICommand command ) : void
command ICommand
리턴 void

Handle_TAL_ATTRIBUTES() 보호된 메소드

protected Handle_TAL_ATTRIBUTES ( ICommand command ) : void
command ICommand
리턴 void

Handle_TAL_CONDITION() 보호된 메소드

protected Handle_TAL_CONDITION ( ICommand command ) : void
command ICommand
리턴 void

Handle_TAL_CONTENT() 보호된 메소드

protected Handle_TAL_CONTENT ( ICommand command ) : void
command ICommand
리턴 void

Handle_TAL_DEFINE() 보호된 메소드

protected Handle_TAL_DEFINE ( ICommand command ) : void
command ICommand
리턴 void

Handle_TAL_OMITTAG() 보호된 메소드

protected Handle_TAL_OMITTAG ( ICommand command ) : void
command ICommand
리턴 void

Handle_TAL_REPEAT() 보호된 메소드

protected Handle_TAL_REPEAT ( ICommand command ) : void
command ICommand
리턴 void

Handle_TAL_REPLACE() 보호된 메소드

protected Handle_TAL_REPLACE ( ICommand command ) : void
command ICommand
리턴 void

WriteToBody() 보호된 메소드

protected WriteToBody ( string format ) : void
format string
리턴 void

WriteToBodyNoFormat() 보호된 메소드

protected WriteToBodyNoFormat ( string text ) : void
text string
리턴 void

WriteToGlobals() 보호된 메소드

protected WriteToGlobals ( string format ) : void
format string
리턴 void

프로퍼티 상세

FileBodyTemplate 보호되어 있는 정적으로 프로퍼티

protected static string FileBodyTemplate
리턴 string