C# 클래스 NVelocity.Runtime.Parser.Node.NodeUtils

Utilities for dealing with the AST node structure. *
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
interpolate ( String argStr, Context.IContext vars ) : String

Utility method to interpolate context variables into string literals. So that the following will work: * #set $name = "candy" $image.getURI("${name}.jpg") * And the string literal argument will be transformed into "candy.jpg" before the method is executed.

specialText ( Token t ) : String

Collect all the <SPECIAL_TOKEN>s that are carried along with a token. Special tokens do not participate in parsing but can still trigger certain lexical actions. In some cases you may want to retrieve these special tokens, this is simply a way to extract them.

tokenLiteral ( Token t ) : String

complete node literal *

메소드 상세

interpolate() 공개 정적인 메소드

Utility method to interpolate context variables into string literals. So that the following will work: * #set $name = "candy" $image.getURI("${name}.jpg") * And the string literal argument will be transformed into "candy.jpg" before the method is executed.
public static interpolate ( String argStr, Context.IContext vars ) : String
argStr String
vars Context.IContext
리턴 String

specialText() 공개 정적인 메소드

Collect all the <SPECIAL_TOKEN>s that are carried along with a token. Special tokens do not participate in parsing but can still trigger certain lexical actions. In some cases you may want to retrieve these special tokens, this is simply a way to extract them.
public static specialText ( Token t ) : String
t Token
리턴 String

tokenLiteral() 공개 정적인 메소드

complete node literal *
public static tokenLiteral ( Token t ) : String
t Token
리턴 String