C# 클래스 Antlr4.Codegen.AbstractTarget

파일 보기 프로젝트 열기: sharwell/antlr4cs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
gen CodeGenerator
targetCharValueEscape string[]

공개 메소드들

메소드 설명
EncodeIntAsCharEscape ( int v ) : string
GetAltLabelContextStructName ( string label ) : string
GetBaseListenerFileName ( bool header ) : string
GetBaseVisitorFileName ( bool header ) : string
GetCodeGenerator ( ) : CodeGenerator
GetElementListName ( string name ) : string
GetElementName ( string name ) : string
GetImplicitRuleLabel ( string ruleName ) : string
GetImplicitSetLabel ( string id ) : string
GetImplicitTokenLabel ( string tokenName ) : string
GetInlineTestSetWordSize ( ) : int
GetLanguage ( ) : string
GetListLabel ( string label ) : string
GetListenerFileName ( bool header ) : string
GetLoopCounter ( GrammarAST ast ) : string
GetLoopLabel ( GrammarAST ast ) : string
GetRecognizerFileName ( bool header ) : string
GetRuleFunctionContextStructName ( Rule r ) : string
GetRuleFunctionContextStructName ( RuleFunction function ) : string
GetSerializedATNSegmentLimit ( ) : int
GetTargetStringLiteralFromANTLRStringLiteral ( CodeGenerator generator, string literal, bool addQuotes ) : string
GetTargetStringLiteralFromString ( string s ) : string
GetTargetStringLiteralFromString ( string s, bool quoted ) : string
GetTokenTypeAsTargetLabel ( Grammar g, int ttype ) : string
GetTokenTypesAsTargetLabels ( Grammar g, int ttypes ) : string[]
GetVisitorFileName ( bool header ) : string
GrammarSymbolCausesIssueInGeneratedCode ( GrammarAST idNode ) : bool
NeedsHeader ( ) : bool
SupportsOverloadedMethods ( ) : bool
WantsBaseListener ( ) : bool
WantsBaseVisitor ( ) : bool

보호된 메소드들

메소드 설명
AbstractTarget ( CodeGenerator gen, string language ) : System.Diagnostics
GenFile ( Grammar g, Template outputFileST, string fileName ) : void
VisibleGrammarSymbolCausesIssueInGeneratedCode ( GrammarAST idNode ) : bool

비공개 메소드들

메소드 설명
GetTemplates ( ) : TemplateGroup
LoadTemplates ( ) : TemplateGroup

메소드 상세

AbstractTarget() 보호된 메소드

protected AbstractTarget ( CodeGenerator gen, string language ) : System.Diagnostics
gen CodeGenerator
language string
리턴 System.Diagnostics

EncodeIntAsCharEscape() 공개 추상적인 메소드

public abstract EncodeIntAsCharEscape ( int v ) : string
v int
리턴 string

GenFile() 보호된 메소드

protected GenFile ( Grammar g, Template outputFileST, string fileName ) : void
g Antlr4.Tool.Grammar
outputFileST Template
fileName string
리턴 void

GetAltLabelContextStructName() 공개 메소드

public GetAltLabelContextStructName ( string label ) : string
label string
리턴 string

GetBaseListenerFileName() 공개 메소드

public GetBaseListenerFileName ( bool header ) : string
header bool
리턴 string

GetBaseVisitorFileName() 공개 메소드

public GetBaseVisitorFileName ( bool header ) : string
header bool
리턴 string

GetCodeGenerator() 공개 메소드

public GetCodeGenerator ( ) : CodeGenerator
리턴 CodeGenerator

GetElementListName() 공개 메소드

public GetElementListName ( string name ) : string
name string
리턴 string

GetElementName() 공개 메소드

public GetElementName ( string name ) : string
name string
리턴 string

GetImplicitRuleLabel() 공개 메소드

public GetImplicitRuleLabel ( string ruleName ) : string
ruleName string
리턴 string

GetImplicitSetLabel() 공개 메소드

public GetImplicitSetLabel ( string id ) : string
id string
리턴 string

GetImplicitTokenLabel() 공개 메소드

public GetImplicitTokenLabel ( string tokenName ) : string
tokenName string
리턴 string

GetInlineTestSetWordSize() 공개 메소드

public GetInlineTestSetWordSize ( ) : int
리턴 int

GetLanguage() 공개 메소드

public GetLanguage ( ) : string
리턴 string

GetListLabel() 공개 메소드

public GetListLabel ( string label ) : string
label string
리턴 string

GetListenerFileName() 공개 메소드

public GetListenerFileName ( bool header ) : string
header bool
리턴 string

GetLoopCounter() 공개 메소드

public GetLoopCounter ( GrammarAST ast ) : string
ast Antlr4.Tool.Ast.GrammarAST
리턴 string

GetLoopLabel() 공개 메소드

public GetLoopLabel ( GrammarAST ast ) : string
ast Antlr4.Tool.Ast.GrammarAST
리턴 string

GetRecognizerFileName() 공개 메소드

public GetRecognizerFileName ( bool header ) : string
header bool
리턴 string

GetRuleFunctionContextStructName() 공개 메소드

public GetRuleFunctionContextStructName ( Rule r ) : string
r Antlr4.Tool.Rule
리턴 string

GetRuleFunctionContextStructName() 공개 메소드

public GetRuleFunctionContextStructName ( RuleFunction function ) : string
function Antlr4.Codegen.Model.RuleFunction
리턴 string

GetSerializedATNSegmentLimit() 공개 메소드

public GetSerializedATNSegmentLimit ( ) : int
리턴 int

GetTargetStringLiteralFromANTLRStringLiteral() 공개 추상적인 메소드

public abstract GetTargetStringLiteralFromANTLRStringLiteral ( CodeGenerator generator, string literal, bool addQuotes ) : string
generator CodeGenerator
literal string
addQuotes bool
리턴 string

GetTargetStringLiteralFromString() 공개 메소드

public GetTargetStringLiteralFromString ( string s ) : string
s string
리턴 string

GetTargetStringLiteralFromString() 공개 메소드

public GetTargetStringLiteralFromString ( string s, bool quoted ) : string
s string
quoted bool
리턴 string

GetTokenTypeAsTargetLabel() 공개 메소드

public GetTokenTypeAsTargetLabel ( Grammar g, int ttype ) : string
g Antlr4.Tool.Grammar
ttype int
리턴 string

GetTokenTypesAsTargetLabels() 공개 메소드

public GetTokenTypesAsTargetLabels ( Grammar g, int ttypes ) : string[]
g Antlr4.Tool.Grammar
ttypes int
리턴 string[]

GetVisitorFileName() 공개 메소드

public GetVisitorFileName ( bool header ) : string
header bool
리턴 string

GrammarSymbolCausesIssueInGeneratedCode() 공개 메소드

public GrammarSymbolCausesIssueInGeneratedCode ( GrammarAST idNode ) : bool
idNode Antlr4.Tool.Ast.GrammarAST
리턴 bool

NeedsHeader() 공개 메소드

public NeedsHeader ( ) : bool
리턴 bool

SupportsOverloadedMethods() 공개 메소드

public SupportsOverloadedMethods ( ) : bool
리턴 bool

VisibleGrammarSymbolCausesIssueInGeneratedCode() 보호된 추상적인 메소드

protected abstract VisibleGrammarSymbolCausesIssueInGeneratedCode ( GrammarAST idNode ) : bool
idNode Antlr4.Tool.Ast.GrammarAST
리턴 bool

WantsBaseListener() 공개 메소드

public WantsBaseListener ( ) : bool
리턴 bool

WantsBaseVisitor() 공개 메소드

public WantsBaseVisitor ( ) : bool
리턴 bool

프로퍼티 상세

gen 보호되어 있는 프로퍼티

protected CodeGenerator,Antlr4.Codegen gen
리턴 CodeGenerator

targetCharValueEscape 보호되어 있는 프로퍼티

protected string[] targetCharValueEscape
리턴 string[]