C# 클래스 Antlr4.Codegen.ActionTranslator

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

공개 프로퍼티들

프로퍼티 타입 설명
rulePropToModelMap IDictionary>
thisRulePropToModelMap IDictionary>
tokenPropToModelMap IDictionary>

공개 메소드들

메소드 설명
ActionTranslator ( OutputModelFactory factory, ActionAST node ) : System.Collections.Generic
Attr ( string expr, Antlr.Runtime.IToken x ) : void
GetRuleLabel ( string x ) : string
GetTokenLabel ( string x ) : string
NonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
QualifiedAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
SetAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken rhs ) : void
SetNonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y, Antlr.Runtime.IToken rhs ) : void
Text ( string text ) : void
ToString ( IList chunks ) : string
TranslateAction ( OutputModelFactory factory, RuleFunction rf, Antlr.Runtime.IToken tokenWithinAction, ActionAST node ) : IList
TranslateActionChunk ( OutputModelFactory factory, RuleFunction rf, string action, ActionAST node ) : IList

비공개 메소드들

메소드 설명
GetRulePropertyRef ( Antlr.Runtime.IToken prop ) : RulePropertyRef
GetRulePropertyRef ( Antlr.Runtime.IToken x, Antlr.Runtime.IToken prop ) : RulePropertyRef
GetTokenPropertyRef ( Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : TokenPropertyRef

메소드 상세

ActionTranslator() 공개 메소드

public ActionTranslator ( OutputModelFactory factory, ActionAST node ) : System.Collections.Generic
factory OutputModelFactory
node Antlr4.Tool.Ast.ActionAST
리턴 System.Collections.Generic

Attr() 공개 메소드

public Attr ( string expr, Antlr.Runtime.IToken x ) : void
expr string
x Antlr.Runtime.IToken
리턴 void

GetRuleLabel() 공개 메소드

public GetRuleLabel ( string x ) : string
x string
리턴 string

GetTokenLabel() 공개 메소드

public GetTokenLabel ( string x ) : string
x string
리턴 string

NonLocalAttr() 공개 메소드

public NonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
리턴 void

QualifiedAttr() 공개 메소드

public QualifiedAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
리턴 void

SetAttr() 공개 메소드

public SetAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken rhs ) : void
expr string
x Antlr.Runtime.IToken
rhs Antlr.Runtime.IToken
리턴 void

SetNonLocalAttr() 공개 메소드

public SetNonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y, Antlr.Runtime.IToken rhs ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
rhs Antlr.Runtime.IToken
리턴 void

Text() 공개 메소드

public Text ( string text ) : void
text string
리턴 void

ToString() 공개 정적인 메소드

public static ToString ( IList chunks ) : string
chunks IList
리턴 string

TranslateAction() 공개 정적인 메소드

public static TranslateAction ( OutputModelFactory factory, RuleFunction rf, Antlr.Runtime.IToken tokenWithinAction, ActionAST node ) : IList
factory OutputModelFactory
rf Antlr4.Codegen.Model.RuleFunction
tokenWithinAction Antlr.Runtime.IToken
node Antlr4.Tool.Ast.ActionAST
리턴 IList

TranslateActionChunk() 공개 정적인 메소드

public static TranslateActionChunk ( OutputModelFactory factory, RuleFunction rf, string action, ActionAST node ) : IList
factory OutputModelFactory
rf Antlr4.Codegen.Model.RuleFunction
action string
node Antlr4.Tool.Ast.ActionAST
리턴 IList

프로퍼티 상세

rulePropToModelMap 공개적으로 정적으로 프로퍼티

public static IDictionary> rulePropToModelMap
리턴 IDictionary>

thisRulePropToModelMap 공개적으로 정적으로 프로퍼티

public static IDictionary> thisRulePropToModelMap
리턴 IDictionary>

tokenPropToModelMap 공개적으로 정적으로 프로퍼티

public static IDictionary> tokenPropToModelMap
리턴 IDictionary>